Advertisement
easternnl

Enter SCCM with PowerShell

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