Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Startup-Services {
- param(
- [string]$computername = 'localhost'
- )
- Get-CimInstance -ClassName win32_Service -computername $computername `
- | Format-list -Property name, startmode, state
- }
- Startup-Services
Advertisement
Add Comment
Please, Sign In to add comment