Have you ever needed to perform the same task on more than one server? In this session you will see demos on how you can manage Windows systems using Windows PowerShell. You will get to see different techniques for remote management, demos of managing Hyper-V with and without System Center Virtual Machine Manager as well as several other demos!
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Practical PowerShell for the Windows Administrator
1. Practical PowerShell for the
Windows Administrator
Jan Egil Ring
Senior Consultant, Infrastructure
jan.egil.ring@crayon.com
2. Agenda
• Specific scenarios
• System Center Virtual Machine
Manager
• Hyper-V
• DNS
• DHCP
• Profile- and module-management
January 22, 2012 NIC 2012
3. Hyper-V Administration using System
Center Virtual Machine Manager
• Manage Hyper-V, VMware and XenServer
• Built on top of PowerShell
• Makes it easy to do bulk management, generate
reports and so on.
• Automate baselines, best practices and tuning
• Demo: Generate reports of your virtual
infrastructure and VM bulk-provisioning
Recommended TechEd-video, Failover Clustering & Hyper-V :
http://channel9.msdn.com/Events/TechEd/Europe/2010/WSV403
4. Hyper-V administration using
PowerShell
• Hyper-V PowerShell-module in Windows 8
(both client and server) with ~150 cmdlets
• No PowerShell-module for managing Hyper-V
in Windows Server 2008/2008 R2 from
Microsoft
• Community module from James O`Neill
(pshyperv.codeplex.com)
5. DNS
• Real world example: The domain is being
upgraded to the latest version, and there has
been made a decision not to re-use any IP
addresses for the DNS servers
• Mission: Change DNS server settings on all
servers in the domain
• Possible solution: Get/Set-DNSServerSearchOrder
PowerShell Network Adapter Configuration Module by Jan Egil Ring:
http://psnetadapterconfig.codeplex.com
6. DHCP administration using PowerShell
• Builtin PowerShell module in Windows Server
8
• Wrapper-module around netsh available for
downlevel server OS
• Demo: Bulk-create over 200 DHCP-scopes
PowerShell Module for DHCP by Jeremy Engel: http://bit.ly/gxMLJJ
8. Profile- and module-management
• Design how you will manage PowerShell
profiles and modules in your environment
• Company-specific module and script
repository
• Redirected Documents-folder and default
PowerShell profile for admins
Corporate Powershell Module Repository by PowerShell MVP Tome Tanasovski:
http://powertoe.wordpress.com/2010/08/10/corporate-powershell-module-repository-part-1-design-and-
infrastructure
9. Call to action
If not already using PowerShell, start using it
(quickest way to start: stop using cmd.exe)
Use the PowerShell community to Get-Help
10. Resources
TechNet Wiki
Windows PowerShell Survival Guide
http://social.technet.microsoft.com/wiki/contents/articles/windows-powershell-survival-guide.aspx
Articles
James O`Neill - best practices:
http://jamesone111.wordpress.com/2011/10/24/maximize-the-reuse-of-your-powershell/
Jeff Hicks - turn CLI tools into PowerShell:
http://jdhitsolutions.com/blog/2011/10/turning-cli-tools-into-powershell-tools-deep-dive-demos
Windows PowerShell: Scripting Crash Course:
http://technet.microsoft.com/nb-no/magazine/hh551144(en-us).aspx
11. Microsoft Technology User Group Script Club
Part of the Microsoft Technology User Group in Oslo
Regular workshops exploring various topics around
automation and scripting with a focus on PowerShell.
Meetings is announced at www.mtug.no
If you want to find or create a PowerShell usergroup or script
club, check out http://powershellgroup.org
Fordelen med å benytte prestaging er at vi får de fordelene utrulling via SCCM gir (gjøre hva som helst i tasksequence) og det blir en dynamisk løsning (enkelte å legge til f.eks. installasjon av en agent eller annen software kun ved å legge til dette i SCCM).Årsaken til å måtte prestage MAC-adresse er for å unngå å aktivere Unknown computer support i SCCM (noe som utgjør en sikkerhetsrisiko, og som ikke er best practice), i tillegg får vi dyttet maskina i riktig Collection slik at OS-utrulling kan gjøres med Zero-Touch.