Powershell‎ > ‎

Training Notes

Downloads

Windows 7 SDK

admFiles_PowerShell.msi

PowerShellHelp.exe

PowerShellScriptOMaticCompiledRelease.exe

Primal Forms Community Tools

wmi administrative tools

 

Write-host "service status is $((get-service wmi).status)"

convert object array to string array

$ary = Get-QADComputer | foreach {$_.name} $ary = [String[]]$ary Get-WmiObject -ComputerName $ary

View alternate stream 

 notepad filename:streamname

notepad filename.ps1:zone.identifier

SDK Favorites

  1. WQL (SQL for WMI)
  2. Scripting API Objects
  3. SWbemServices Object
  4. SWbemLocator.ConnectServer Method
  5. SWbemLocator Object
  6. Assembly Class (System.Reflection namespace)
    1. Interaction Members
  7. Win32_PingStatus Class
  8. Win32_UserAccount Class
  9. Win32_Processor Class
  10. Constructing a Moniker String
  11. System.Management Namespace  #WMI under .net
    1. ManagementObjectSearcher Class
  12. system.directoryservices.directoryentry
  13. IADS Reference
  14. system.directoryservices.directorysearcher
  15. LDAP Dialect
    1. Search Filter Syntax
  16. ddd