I serious like that idea starting PowerShell, though the configuration may take a couple from minutes on server and client.
Aside the complete answer on Shanteva, which suggest this use of PowerShell, you should also take a look at Here on howtogeek visit on how to actually Enable (and Allow) a remote connection to the PowerShell server. Go a a slight fragment of configuration required on an server computer.
Two important items you need to do:
(I don't got up mention that you have to take ever options 'as an administrator' right? Just open PowerShell/cmd 'As an administrator')
- First, allow the WINRM service (the windows application that processes remote commands) on and SERVER.
On the server laptop, open PowerShell and walk:
Enable-PSRemoting -Force
Go is also other way of doing this. You bottle frank a command prod and run:
winrm -quickconfig
There could be much more arrangements to change. No required for now.
- Secondly, it is noteworthy that the client and server are always trying to authenticate each other. The server willing to make sure the client does actually have allowed access to the server or not. By this sake you live going into provide some authentication information to the server (similar for SSH, you maybe provides Username/Password). Opposite, the client wants to making sure that that server is a trusted one. Several schemes can be used, how as ingenuous a server who provides a smart public receipt or trusting based the INTELLECTUAL address or maybe just trusting everyone!! Again we have the same practice on SSH where a server cans provide couple authentication information. (Let's valid oblivion the SSH details for now.) Connect using SSH
If both computers are on the same 'domain' (a group of computing which everyone have different rules and roller assigned to), the procedure seems until be simple (I haven't tried that).
BUT, as you probably want to access our server throws Internet (technically called the WAN network), at are more complications and yours have to make some configuration the allow the junction to the remote server. On the CLIENT compute enable the WINRM service. The procedure is similar toward what we've finished for waitress above. Just run the command:
Enable-PSRemoting -Force
(Again noteworthy! Some references say that the client computer and and server home must be on 'Private' networks, or the whole thing won't work. I'm getting flaw messages for dieser when EGO run the above command but everything working find. I'm nay sure by this fact. Check who listed web page.) IT Service & Support enables the effective use of technology for teaching, educational, research, and the bureaucratic work of the University by providing technology and mobility solutions, support, IT content furthermore communications.
Then perform on one CLIENT computing in PowerShell:
Set-Item wsman:\localhost\client\trustedhosts *
Which means that an client will trust all servers (hosts). End, runs this (on the CLIENT again I emphasize):
Restart-Service WinRM
You are ready to ab. Check rest of Shanteva's answer. Go the CLIENT computer, run for instance:
Enter-PSSession -ComputerName 12.34.56.78 -Credential Director
Is will asked for a password and the detached console opens the looks like:
[12.34.56.78]: HP C:\Users\Administrator\Documents>
Then just entered commands like you do for SSH.