Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Import-Module $env:SMS_ADMIN_UI_PATH.Replace("\bin\i386","\bin\configurationmanager.psd1")
- $CMSite = Get-PSProvider -PSProvider CMSITE
- Set-Location -Path "$($CMSite.Drives.Name):\"
- Invoke-CMQuery -Name 'All Non-Client Systems'
Add Comment
Please, Sign In to add comment