PowerShell and ConfigMgr

I just set up a new computer to import all of the various PowerShell modules so I can have them all in one place.

I discovered that in order to connect to my SCCM site, I had to install the ConfigManager Console and use the following import-module command.

Import-Module (Join-Path $(Split-Path $env:SMS_ADMIN_UI_PATH) ConfigurationManager.psd1)

Now I can work with SCCM on the same computer where I develop all of my scripts.

And, this is how to import VMWare.PowerCLI

Find-Module VMware.PowerCLI
InstallModule Name VMware.PowerCLI –Scope CurrentUser


Published by


Senior Infrastructure Specialist SCCM, SQL Server, VMware, Citrix

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s