Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run this on a computer with an installed console
- #Load Configuration Manager PowerShell Module
- Import-module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
- #Get SiteCode
- $SiteCode = Get-PSDrive -PSProvider CMSITE
- Set-location $SiteCode":"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement