If you are on *nix machine and need to get access to remote Windows host running PowerShell inside - read the following (article in progress).
At the moment, I can make russian screenshots only.
1) First of all, you need to install Telnet server
on your Windows host. Go to Control Panel
-> Applications
-> Windows components
. Turn on Telnet server
and press OK. You may be prompted for your Windows DVD.
2) New group TelnetClients
was created. Add this group to the accounts you are planning to use with Telnet.
3) Telnet
service (TlntSvr) was created but it is disabled by default. Go to services and set startup type to Automatic
or Manual
. If you choose Manual
you must start the service manually each time you need it of course.
1) Install Telnet client to your *nix machine. Checking Ubuntu and PuTTY.
sudo apt-get install putty
1) Just run PuTTY, choose Telnet protocol and enter host address.
2) You will be prompted (in terminal) for username and password. Remember, Windows username must exists in the TelnetClients
group, otherwise PuTTY will be closed immediately after typing password ;)
3) Now you are in the Windows command prompt (cmd.exe).
4) Don't forget about codepage. The default is OEMCP
, so if you need UTF-8 just run in prompt:
chcp 65001
Well, some commands may fail here. For example, PowerShell prompt was not appeared when you just run powershell.exe
in cmd.exe
prompt. However, you may run powershell commands directly from the cmd.exe
prompt...
C:\> powershell get-host
To be continued...