Gwith

4.6 Lab (My Answer)

Apr 30th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Startup-Services {
  2. param(
  3. [string]$computername = 'localhost'
  4. )
  5.  
  6.     Get-CimInstance -ClassName win32_Service -computername $computername `
  7.     | Format-list -Property name, startmode, state
  8. }
  9.  
  10. Startup-Services
Advertisement
Add Comment
Please, Sign In to add comment