henrydenhengst

powershell general

May 5th, 2015
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $list
  2. $list = get-wmiobject win32_product
  3. (Get-WmiObject win32_operatingsystem) | select caption,OSArchitecture,OSLanguage
  4. Get-AppvClientApplication
  5. Get-WmiObject win32_product | select name,version | sort name                                                                                                                            
  6. Get-WmiObject win32_product | where {$_.name -ilike "*app-v*" } | select name, version | ft
  7. Get-WmiObject win32_product | where {$_.name -ilike "*McAfee*" } | select name, version | ft
  8. Get-WmiObject win32_product | where {$_.name -ilike "*MOVE*" } | select name, version | ft
  9. Get-WmiObject win32_product | where {$_.name -ilike "*notifier*" } | select name, version | ft
  10. gwmi win32_userprofile  | select sid,localpath,roamingpath | ft
  11. Get-WmiObject -Query "SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem='NTFS'" -ComputerName '.' | Select-Object Name, Label, Blocksize | ft
  12. gwmi SoftwareLicensingProduct  | where {$_.applicationid -eq "55c92734-d682-4d71-983e-d6ec3f16059f"} | where {$_.licensestatus -eq 1 } | fl *
  13. gwmi Win32_UserAccount -filter "LocalAccount=True" | where {$_.name -eq "Guest"} | fl *
  14. Get-WmiObject -Class Win32_OperatingSystem -Property DataExecutionPrevention_SupportPolicy
  15. Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
  16. $host.Version
Advertisement
Add Comment
Please, Sign In to add comment