Information Technology Reference
In-Depth Information
Windows PowerShell does not always have to be used remotely. For exam-
ple, you can use Windows PowerShell when configuring a Windows Server
2012 R2 Server Core installation locally.
Windows Remote Management
The Windows Remote Management (WinRM) utility is Microsoft's version of the
WS-Management protocol, an industry-standard protocol that allows different vendors'
operating systems and hardware to work together. There are three main ways to access the
WinRM utility:
WinRM command-line tool
WinRM scripting objects
Windows Remote Shell command-line tool
The WinRM utility allows you to execute commands remotely and obtain management
data from local and remote computers. You can use the WinRM utility on both Windows-
based operating systems and non-Windows-based operating systems.
When using the WinRM utility, you can use the -machine switch to indicate the remote
machine to which you are connecting. When connecting to a machine, you can connect
using the localhost name, the NetBIOS name, the fully qualified domain name (FQDN), or
the IP address of the remote machine. The following is an example of a WinRM command
using a FQDN name on the secure port 443:
winrm get -machine:server.stellacon.local -port:443
Table 4.3 shows the command-line WinRM commands and descriptions of what each
command does.
Table 4.3
WinRM commands and descriptions
Command
Description
Retrieves management information
WinRM g or WinRM get
WinRM s or WinRM set
Modifies management information
WinRM c or WinRM create
Creates a new instance on the managed resources
WinRM id or WinRM delete
Removes an instance from a managed resource
Lists all instances of a managed resource
WinRM e or WinRM enumerate
WinRM i or WinRM invoke
Executes a method on a managed resource
WinRM id or WinRM identity
Determines whether a WS-Management implementation
is running on a remote machine
 
Search WWH ::




Custom Search