powershell tipps & tricks im configuration manager

18

Click here to load reader

Upload: digicomp-academy-ag

Post on 20-Aug-2015

787 views

Category:

Business


0 download

TRANSCRIPT

Page 1: PowerShell Tipps & Tricks im Configuration Manager

Configuration Manager

ConfigMgr & Powershell

Tips & Tricks & Tools

David O’BrienCONSULTANT/ MVP

[email protected]

Twitter: @David_OBrien

WWW.David-OBrien.NET

Page 2: PowerShell Tipps & Tricks im Configuration Manager

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

Page 3: PowerShell Tipps & Tricks im Configuration Manager

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

Page 4: PowerShell Tipps & Tricks im Configuration Manager

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

Page 5: PowerShell Tipps & Tricks im Configuration Manager

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

Page 6: PowerShell Tipps & Tricks im Configuration Manager

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?

Page 7: PowerShell Tipps & Tricks im Configuration Manager

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

Page 8: PowerShell Tipps & Tricks im Configuration Manager

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

Page 9: PowerShell Tipps & Tricks im Configuration Manager

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)

Page 10: PowerShell Tipps & Tricks im Configuration Manager

1

Page 11: PowerShell Tipps & Tricks im Configuration Manager

2

Page 12: PowerShell Tipps & Tricks im Configuration Manager

3

Page 13: PowerShell Tipps & Tricks im Configuration Manager

4

Page 14: PowerShell Tipps & Tricks im Configuration Manager

5

Page 15: PowerShell Tipps & Tricks im Configuration Manager

6

Page 16: PowerShell Tipps & Tricks im Configuration Manager

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

Page 17: PowerShell Tipps & Tricks im Configuration Manager

8

Page 18: PowerShell Tipps & Tricks im Configuration Manager

9