Intune Initial Scripts Backup
This commit is contained in:
11
dump/SCCM-Powershell.txt
Normal file
11
dump/SCCM-Powershell.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
Right-click the Windows PowerShell icon and choose "Run as administrator".
|
||||
Type CD 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin' and hit enter.
|
||||
Type Import-Module .\ConfigurationManager.psd1 and run it.
|
||||
Here's the crucial missing step. Enter New-PSDrive -Name [yoursitecode] -PSProvider "AdminUI.PS.Provider\CMSite" -Root "[your SCCM server's FQDN]" -Description "SCCM Site"
|
||||
Now we can connect to the site. Enter CD ABC:, where ABC is your site code. The colon is necessary!
|
||||
|
||||
|
||||
=============================================================================================================================================
|
||||
Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'
|
||||
New-PSDrive -Name SCCM-Drive -PSProvider "AdminUI.PS.Provider\CMSite" -Root "PNCRASCCM001.ccx.carecentrix.com" -Description "SCCM Site"
|
||||
Reference in New Issue
Block a user