Adventures in Powershell. These posts have been created as a record of the successful powershell commands I have used.
Open the SCCM console and open Powershell ISE from the top left. Powershell ISE will open with a script containing the SCCM connection values.
Run the script to make a powershell drive connection to SCCM.
Test the connection using an SCCM cmdlet