The default
filtering dialect is WQL, where you choose objects based on WMI. For example, if you wanted
to locate the BITS service on a system, you??™d type winrm enum wmicimv2/* -filter:???select *
from win32_service where Name=\???BITS\??? ???. Figure 17.1 shows the results of issuing this
command.
Figure 17.1
Filtering is an important
part of using
the WinRM utility
because it lets you
limit the output.
-fragment:VALUE Defines the section within the instance XML that you want to update or
retrieve for a given operation. WinRM requires that you supply the name of the object and the
fragment particulars as an object method. For example, to retrieve the description of the BITS
service, you would type winrm get wmicimv2/Win32_Service?name=BITS -fragment:
Description/text().
-options:{KEY=???VALUE???[;KEY=???VALUE???]} Defines arguments used for provider-specific
needs. You must consult the documentation for your provider to use this switch. If you need to
provide a null value, use $null as the input.
-SPNPort Specifies a port number to append to the Service Principal Name (SPN) of the
remote service. The utility uses the SPN for authentication purposes when using Negotiate or
Kerberos authentication.
Pages:
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019