bof08 - powershell & configmgr – examples from the real word

21

Upload: sora

Post on 12-Feb-2016

72 views

Category:

Documents


0 download

DESCRIPTION

BOF08 - PowerShell & ConfigMgr – Examples from the Real Word. @Kaidja @Agerlund. Who are we. Kent Agerlund Chief System Management Architect Coretech, Denmark Microsoft MVP: Configuration Manager Enterprise Client Management - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word
Page 2: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

BOF08 - PowerShell & ConfigMgr – Examples from the Real Word

@Kaidja@Agerlund

Page 3: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Who are we• Kent Agerlund• Chief System Management Architect• Coretech, Denmark • Microsoft MVP: Configuration Manager Enterprise Client Management • Microsoft Certified Trainer, MCITP Enterprise Administrator

• Kaido Järvemets• Chief System Management Architect• PowerShell Über Geek and owner of http://cm12sdk.net/• Coretech, Denmark• Microsoft MVP: Configuration Manager Enterprise Client Management • Microsoft Certified IT Professional (MCITP)

Page 4: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

• How many are using PSH today• How many are using PSH with CM today

We want to hear from you

Page 5: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Agenda010100000110111101110111011001010111001001010011011010000110010101101100011011000010000001110011011101010111000001110000011011110111001001110100PowerShell support

010101000110111101110000001000000011000100110000Top 10

010011110111000001100101011011100010000001100100011010010111001101100011011101010111001101110011011010010110111101101110

Open discussion

Page 6: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

PowerShell Support• Why PowerShell• ConfigMgr 2012 SP1

• Adds more than 471 cmdlets• ConfigMgr 2012 SP1

CU1• 40 New cmdlets

• Server side• PowerShell & WMI

• Client side• Still WMI

Page 7: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Top 10 – CM12SDK.NET1. Remove package from Distribution Point2. How to import a New Computer into ConfigMgr3. How to create a Collection with Incremental Updates 4. How to create a ConfigMgr Console Folder5. How to work with Collection Refresh Schedules6. How to create boundaries using Excel file7. How to work with Application approvals8. Managing Content9. Managing Content Location10.How to move console items

Page 8: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#10 - How to move console items• Use Case

• So cooooooool when creating the base collection hierarchy

• How• No CMDLET, WMI only

• Demo• What else do we need in this

example

Page 9: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#9 – Managing Content Location• Use Case

• Time saving & Control• How

• Set-CMDeploymentType & Set-CMPackage• Demo• What else do we need in this

example

Page 10: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#8 - Managing Content• Use Case

• Automate the package/Application process = More time for coffee• How

• New-CMDistributionPointGroup, New-CMCloudDistributionPoint • Add-CMDistributionPointToGroup, Add-CMDistributionPoint*, • Set-CMDistributionPoint, Update-CMDistributionPoint etc

• No CMDLET for adding the package to DP Group (WMI only)• Demo• What else do we need in this example

*Only Cumulative Update 1

Page 11: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#7 - How to work with Application approvals• Use Case

• Because a we need it• How

• Approve-CMApprovalRequest, • Deny-CMApprovalRequest• Get-CMApprovalRequest

• Demo• What else do we need in this

example

Page 12: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#6 - How to create boundaries using Excel file• Use Case

• Time saving• How

• New-CMBoundary, Remove-CMBoundary, Get-CMBoundary, Set-CMBoundary

• New-CMBoundaryGroup, Remove-CMBoundary, Get-CMBoundaryGroup, Set-CMBoundaryGroup

• Add-CMBoundaryToGroup, Remove-CMBoundaryFromGroup

• Demo• What else do we need in this

example

Page 13: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#5 - How to work with Collection Refresh Schedules• Use Case

• Control and performance = happy SQL• How

• New-CMSchedule (only for new collection)• NO CMDLET for modifying the Collection Refresh schedule,

WMI only• Demo• What else do we need in this

example

Page 14: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#4 - How to create a ConfigMgr Console Folder• Use Case

• We neeeeeeeed them – no questions asked • How

• No CMDLET, only WMI

• Demo• What else do we need in this

example

Page 15: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#3 - How to create a Collection with Incremental Updates• Use Case

• Control and performance • How

• New-CMDeviceCollection, New-CMUserCollection• Demo• What else do we need in this example

Page 16: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

#2 - How to import a New Computer into ConfigMgr• Use Case

• OSD Prestage• How

• Import-CMComputerInformation*• WMI

• Demo• What else do we need in this example

*Broken in SP1 but works in Cumulative Update 1

Page 17: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

# 1 - Remove package from Distribution Point• Why

• Because removing manually is a trivial task• How

• No CMDLET, WMI only• Demo• What else do we need in this

example

Page 18: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Runner-up• Create new update

package when running ADR

• Role Based Administration

• Reading IIS on DP’s• Delete empty folders• Collection cleanup

Page 19: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Links and Questions• Connect with Kent & Kaido• Mail: [email protected] / [email protected] • Twitter: @Agerlund - @Kaidja• Blog: • http://blog.coretech.dk/author/kea / • http://blog.coretech.dk/author/kaj/ • http://cm12sdk.net • All PowerShell scripts will be available at our blog

Page 20: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Evaluation

Complete your session evaluations today and enter to win prizes daily. Provide your feedback at a CommNet kiosk or log on at www.2013mms.com.Upon submission you will receive instant notification if you have won a prize. Prize pickup is at the Information Desk located in Attendee Services in the Mandalay Bay Foyer. Entry details can be found on the MMS website.

We want to hear from you!

Page 21: BOF08 - PowerShell  &  ConfigMgr –  Examples from the Real Word

Resources

http://channel9.msdn.com/Events

Access MMS Online to view session recordings after the event.