다음을 통해 공유


PowerShell Begleit-Skripte zum MVA Kurs Servermanagement und Automatisierung inkl. PowerShell 4.0

Im Rahmen eines MVA Kurs zum Thema Servermanagement und Automatisierung inkl. PowerShell 4.0 sind folgende Demo-Skripte entstanden. Viel Spass damit und – ganz wichtig: USE AT YOUR OWN RISK! Zwinkerndes Smiley

Active Directory Administration Light With PowerShell:

CreateABunchOfADUsers.ps1 creates a group and 100 users, puts the users into the group
PingMyHosts.ps1 gathers a list of Servers from AD and pings them

 

Hyper-V And The PowerShell:

Networking.ps1 creates a NIC Team and a hyper-V Switch, sets some IP settings
Create-VMs.ps1 creates a bunch of VMs based on a sysprep’ed .vhdx file
CheckIntegrationServicesOnHostVersusVMs.ps1 scans a list of Hosts for vms and compares it’s version of the Integration Services with the one of the host.

 

PowerShell 4.0 – Desired State Configuration (DSC) Sample Script For A Webserver:

myDSCWebConfig.ps1

a sample DSC configuration for a webserver incl. webcontent – parameterized – siehe auch: PowerShell 4.0 und die Desired State Configuration (DSC) - Mein Start

MyDSCLocalConfigurationManager.ps1

a sample Local Configuration Manager (LCM) configuration that activates the “self-healing”, “auto-repair” functionality of the DSC target server. siehe auch: PowerShell 4.0 und die Desired State Configuration (DSC) - Der LCM und die Autokorrektur
MySite Sample Website Content used in the demo

(please remove the .txt from zip)

PowerShell Skripte zum MVA Kurs.zip