This videos look at how to use Remote Shell and Windows PowerShell to run remote commands on anther computer. Doing this allows an administrator to writes scripts to make changes on computers without having to physically visit the computer.
Remote Shell demo 02:50
PowerShell 05:10
PowerShell Demo 06:00
Remote Shell
A remote shell on Windows 7 gives you the same functional as a command prompt. The only different is you are running the commands on a different computer.
Windows Remote Management Service
The Windows Remote Management Service must be running and configured in order to allow command from remote to be run. This can be done by running the command
WinRm QuickConfig
The command WinRm QuickConfig configures the Windows Remote Management Service to delayed start. This means when the computer starts up the Windows Remote Management Service will be started after the all other services on the computer. WinRM QuickConfig also makes the necessary changes to the Windows Firewall in order to all remote commands to come through.
If your computers are in a work group there will be no trust relationship between the two computers. A trust relationship will need to be setup using certificates. In order to do so you will need to run the following command on the admin computer.
winrm set winrm/config/client @(TrustedHosts="computername"}
Winrs
Once your computers are configured you can run remote command on the other computer using the winrs command, syntax below.
winrs -r: http://comptuername:5985 --u:username Command
WindowsPowerShell
Windows Power Shell is a modern day command prompt. It differs from the old command prompt in that it interface with API's like .net a lot easier. Using Windows Power Shell allows more powerful scripting then what the command line offers. To use it to run remote commands on anther system you need PowerShell version 2. This comes with Windows 7 but on systems like Windows Vista you will need to install it.
ICM
ICM is the PowerShell command that lets you run commands on anther system. The syntax is
icm comptuername {Commands}
See http://YouTube.com/ITFreeTraining or http://itfreetraining.com for are always free training videos. This is only one video from the many free courses available on YouTube.
Remote Shell demo 02:50
PowerShell 05:10
PowerShell Demo 06:00
Remote Shell
A remote shell on Windows 7 gives you the same functional as a command prompt. The only different is you are running the commands on a different computer.
Windows Remote Management Service
The Windows Remote Management Service must be running and configured in order to allow command from remote to be run. This can be done by running the command
WinRm QuickConfig
The command WinRm QuickConfig configures the Windows Remote Management Service to delayed start. This means when the computer starts up the Windows Remote Management Service will be started after the all other services on the computer. WinRM QuickConfig also makes the necessary changes to the Windows Firewall in order to all remote commands to come through.
If your computers are in a work group there will be no trust relationship between the two computers. A trust relationship will need to be setup using certificates. In order to do so you will need to run the following command on the admin computer.
winrm set winrm/config/client @(TrustedHosts="computername"}
Winrs
Once your computers are configured you can run remote command on the other computer using the winrs command, syntax below.
winrs -r: http://comptuername:5985 --u:username Command
WindowsPowerShell
Windows Power Shell is a modern day command prompt. It differs from the old command prompt in that it interface with API's like .net a lot easier. Using Windows Power Shell allows more powerful scripting then what the command line offers. To use it to run remote commands on anther system you need PowerShell version 2. This comes with Windows 7 but on systems like Windows Vista you will need to install it.
ICM
ICM is the PowerShell command that lets you run commands on anther system. The syntax is
icm comptuername {Commands}
See http://YouTube.com/ITFreeTraining or http://itfreetraining.com for are always free training videos. This is only one video from the many free courses available on YouTube.
MCTS 70-680: Windows7 Remote Shells microsoft store | |
114 Likes | 114 Dislikes |
34,344 views views | 148K followers |
Education | Upload TimePublished on 24 Oct 2011 |
Không có nhận xét nào:
Đăng nhận xét