Tag: Powershell 3.0
-
PowerShell 3.0 Script creates AD user and Exchange Mailbox.
This interactive script requires PowerShell 3.0 . It creates an Active Directory user and their corresponding mailbox using a remote session at the same time. It should work out of the box, but specific variables will have to be edited to reflect the Active Directory configuration of the organization in question. function New-Employee { Param…
-
PowerShell script utilizes “Using” scope modifier to create VM from existing .vhdx file.
The following interactive PowerShell 3.0 script creates a new virtual machine. It utilizes the ‘Using’ scope modifier to pass local variables to remote machines with the invoke-command cmdlet. An existing .vhdx file is copied to a new location and renamed . Same file is used to create the virtual machine. The script assumes the VM…