Connect to SCCM using PowerShell

You might know that now you can access to your SCCM site using PowerShell trough the SCCM console. To do so, right click on the “Application Menu” on the upper left and choose “Connect via Windows PowerShell :

image

Simple, isn’t it?

But, how would you do when you try to connect remotely from a computer without the console installed?

First of all, you must create a folder called Configuration Manager in “C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules” and copy all the content from “<cm12 adminconsole installation folder>\bin” to the previously created folder.

image

Then, Run as Administrator PowerShell (x86)

Import the Configuration Manager :

Import-Module ConfigurationManager

Connect to your site :

cd <yourSiteCode>: (do not forget the trailing colon)

image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: