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.PowerCLIScope CurrentUser