Use Powershell with SCCM 2012

Hi,

I would like to use powershell to create Collection, add Applications and so on. But I have not found any native PS module or library to SCCM 2012. I am new to poweshell.

So what options do I have to script administrative tasks with powershell in SCCM 2012?

 

July 27th, 2012 7:24am

You can get some sample powershell script details over here 

http://social.technet.microsoft.com/wiki/contents/articles/7075.system-center-2012-configuration-manager-survival-guide-en-us.aspx#PowerShell

Free Windows Admin Tool Kit Click here and download it now
July 27th, 2012 7:42am

See Kaido's website: http://cm12sdk.net/. You might also want to wait for SP1. It will add powershell support.
July 27th, 2012 7:53am


SCCM 2012 SP1 comes with native PowerShell support. Read more here.

Please share with us if this helps. Thanks!

Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2013 11:16am

Hi All,

In SCCM 2012 Sp1, run Windows 32 bit power shell with Run As administrator.

and use mentioned commands.

Step1.
Open Windows 32 bit powershell with Run As Administrator.

Step2. type mentioned command

Import-Module 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1'


Step3. Connect with PS drive of SCCM

Set-Location NSP:
note: NSP means Site Code

after that you can execute SCCM power shells.

Helpful Articles

http://cm12sdk.net/?page_id=1623

http://technet.microsoft.com/en-us/library/jj821831(v=sc.10).aspx

http://myitforum.com/myitforumwp/2012/12/21/configmgr-2012-sp1-powershell-cmdlet-reference/

http://blogs.technet.com/b/neilp/archive/2013/01/07/running-2012-configuration-manager-sp1-powershell-cmdlets-from-an-orchestrator-run-net-script-activity.aspx

October 9th, 2013 9:19am

Hi.. How to set mandatory assignment time using powershell.. Condition: Advert start time 1 hour delay compare to dead line time..
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2014 2:53pm

Can I politely ask you why wouldn't you just use the GUI?
August 14th, 2015 5:50pm

Can I politely ask you why wouldn't you just use the GUI?

There are many reasons for that. Question: why are you using the GUI? It's just a matter of personal preference IMHO.
Free Windows Admin Tool Kit Click here and download it now
August 15th, 2015 5:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics