powershell tipps & tricks im configuration manager
Post on 20-Aug-2015
802 Views
Preview:
TRANSCRIPT
Configuration Manager
ConfigMgr & Powershell
Tips & Tricks & Tools
David O’BrienCONSULTANT/ MVP
David.OBrien@gmx.de
Twitter: @David_OBrien
WWW.David-OBrien.NET
Agenda
• Overview of Powershell in ConfigMgr 2012 R2• What‘s it all about?
• Handy cmdlets you should know
• ConfigMgr extensions from the community• Right-Click Tools by Ryan Ephgrave
• Dell Warranty Checker
• OSD Front End by Nickolaj Andersen
• ConfigMgr inventory / documentation script
Who is David O‘Brien?
• 28 years old, married, live in Cologne / Germany• Work as IT Consultant at sepago GmbH• Blog: www.david-obrien.net• Twitter: @david_obrien• My areas of interest
• Microsoft System Center• ConfigMgr – SCOrch
• Powershell
• Microsoft MVP for Enterprise Client Management (2013)• https://mvp.microsoft.com/en-us/mvp/David%20O%27Brien-5000267
• CCIA
Powershell in ConfigMgr 2012 R2
• Import-Module (Join-Path $(Split-Path $env:SMS_ADMIN_UI_PATH) ConfigurationManager.psd1)
• All cmdlets need to be executed from PSDrive
• 560 commands
• All commands in GUI can be done via Powershell• For scripting help -> SMSProv.Log• WMIExplorer -> https://wmie.codeplex.com/Wikipage?ProjectName=wmie
• X64 • Except a few
• Found on: http://technet.microsoft.com/library/dn236347.aspx
• WMI still the way to go in many situations• I‘m still confused which way is generally best
X86 Powershell cmdlets
Add-CMDistributionPoint Export-AntiMalwarePolicy
Get-CMAntiMalwarePolicy Get-CMClientSettings
New-CMSecondarySite New-CMTaskSequenceMedia
New-CMVhd Publish-CMPrestageContent
Publish-CMPrestageContentTaskSequence Set-CMAntiMalwarePolicy
Set-CMClientSettings Set-CMDistributionPoint
Set-CMVhd Start-CMDistributionPointUpgrade
Handy cmdlets you should know
• Crap, the console died again...
• Quick, is that Device a member of that Collection?
• Where did you deploy that Task Sequence to?
ConfigMgr Console Extensions from the Community• What are Console extensions?
• Extend the abilities of the already installed default console• Create completely new features
• Why are they useful?• Community members created them out of real life requirements!
• How do you build them?• Basically just XML files put into the right place executing a script or
application
DEMO
ConfigMgr documentation script
• Thank you Carl!• Go download his scripts if you do Citrix!!!• If you don‘t do Citrix... Go download them anyway
and learn some nice Powershell!• www.carlwebster.com
• Rewrote Carl‘s scripts to document Configuration Manager 2012• Documenting already about 80% off all settings in a CM12 environment
• Skipping more marketing blah-blah...
DEMO
Danke
Herzlichen DankDavid O‘Brien, @David_OBrienwww.david-obrien.net
Bewertung der Session: Configmgr.ch• Xing: https://www.xing.com/net/cmce
• Facebook: https://www.facebook.com/groups/411231535670608/
• Linkedin: http://www.linkedin.com
• Twitter: https://twitter.com/configmgr_ch
Nächster Event: Freitag 13. Juni Digicomp Bern (begrenzte Anzahl Teilnehmer)
1
2
3
4
5
6
http://msdn.microsoft.com/en-us/library/hh948631.aspx (MSDN Console Extensions)http://blogs.technet.com/b/neilp/archive/2012/03/18/long-live-right-click-tools-system-center-2012-configuration-manager-console-extensions.aspx (Technet Blog)http://itx-solutions.nl/2012/12/sccm2012ce/ (Computer Naming Extension)https://psrightclicktools.codeplex.com/ (Powershell Right Click Tools)http://www.petervanderwoude.nl/post/right-click-option-showing-the-collection-membership-of-a-resource-in-configmgr-2012-via-powershell/ (Show Coll Membership)http://www.scconfigmgr.com/2013/10/11/get-dell-warranty-status-within-configmgr-2012-console/ (Get Dell Warranty Status)
7
8
9
top related