This example gets the WMI classes in the root or default namespace of the local computer. Get-WmiObject -Class Win32_Service -ComputerName 10.1.4.62 Example 3: Get WMI classes in the root or default namespace of the local computer By default, the current user account must be a member of theĪdministrators group on the remote computer. The ComputerName parameter specifies the IPĪddress of a remote computer. This example gets the services on a remote computer. Get-WmiObject -Class Win32_Process Example 2: Gets services on a remote computer This example get the processes on the local computer. Examples Example 1: Get processes on the local computer This makes it easier to include the source computer name in You can use the ComputerName parameter of the Get-WmiObject cmdlet even if your computerĭoes not meet the requirements for Windows PowerShell remoting or is not configured for remoting inīeginning in Windows PowerShell 3.0, the _Server property of the object that Get-WmiObject The Get-WmiObject cmdlet does not use Windows PowerShell remoting to perform remote operations. If the Query parameter is specified, the cmdlet runs a WMI query language (WQL) Is specified, the cmdlet gets information about the WMI classes that are available in a specified To specify a remote computer, use the ComputerName parameter. The Get-WmiObject cmdlet gets instances of WMI classes or information about the available WMIĬlasses. Starting in PowerShell 3.0, this cmdlet has been superseded by Get-CimInstance. Gets instances of Windows Management Instrumentation (WMI) classes or information about theĪvailable classes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |