PowerShell Basics for Dummies - Get-Service
Get-Service:
- Gets the services running on the specified computers. The default is the local computer.
Get-Service -ComputerName "Server1"
- This command gets the services on the "Server1" remote computer.
- Because the ComputerName parameter of Get-Service does not use Windows PowerShell remoting, you can use this parameter even if the computer is not configured for remoting in Windows PowerShell.
Get-Service "wmi*"
- This command retrieves services with service names that begin with WMI
No comments:
Post a Comment