Advertisement
hollerith

enumnums

Jun 29th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :: Windows Enumerations
  2. Get-WMIObject -Class Win32_UserAccount -filter "LocalAccount = True" | Select Caption, FullName, Domain, LocalAccount, AccountType | sort AccountType
  3.  
  4. function Global:prompt {"PS [$Env:username]$PWD`n>"}
  5.  
  6. Get-Service | out-host -paging
  7.  
  8. $errors = Get-EventLog System | Where EventType -eq Error | Sort-Object Time -descending
  9. $errors[0..10]
  10.  
  11. Get-Item -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion | Select-Object -ExpandProperty PropertyÉ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement