Posts Tagged ‘Automation’

How to: Create a VM within a few second in Hyper-V 2012 R2

In some cases I’ve to create multiple VM’s within my Hyper-V environment. You can choose to create and configure each VM manually, but you can also use PowerShell. Now you can see how powerfull PowerShell really is! I’ve created multiple VM’s within a few seconds and ready to rock! I’ve created the following script. The only thing you’ve to do, is changing some variables 🙂

In this example the script will create a new VM named RES-MGN01. The VM will be configured with 2 GB, using Dynamic Memory. The VM is using a differencing disk (VHDK) with a Windows Server 2012 R2 sysprepped parent VHDX, placed on an SSD disk (P: drive) in my server. The virtual switch the VM is connected to, is named NIC – WAN.

$VMName = “RES-MGN01”
$VMMemMaxBytes = 2048MB
$VHDXName = “OS.vhdx”
$VMMemStartup = 512MB
$VMMemMinBytes = 512MB
$VMPath = “E:\”
$VHDParent = “P:\Hyper-V Parents\TMPL-W2012R2DC\Virtual Hard Disks\TMPL-W2012R2DC.vhdx”
$VMSwitchName = “NIC – WAN”

New-VM -Name $VMName -Path $VMpath$VMName -Generation 2 -SwitchName $VMSwitchName

Set-VM -Name $VMName -DynamicMemory -MemoryStartupBytes 512MB -MemoryMinimumBytes $VMMemMinBytes -MemoryMaximumBytes $VMMemMaxBytes

New-VHD -ParentPath $VHDParent -Path $VMPath\$VMName\$VMName\$VHDXName -Differencing

Add-VMHardDiskDrive -VMName $VMName -Path $VMPath\$VMName\$VMName\$VHDXName

Add-VMDvdDrive -VMName $VMName

Start-VM -Name $VMName

2014-01-14_11h48_41    2014-01-14_11h49_20    2014-01-14_11h50_27

2014-01-14_11h51_18    2014-01-14_11h52_12

Free ebook: Microsoft System Center: Cloud Management with App Controller

Microsoft has published a free ebook “Microsoft System Center: Cloud Management with App Controller. This book gives all the capabilities of System Center App Controller and how you can implemend this great software in Cloud environments.

Download the free ebook here.

8321_9780735683082f_thumb_28A8E1A1

Z-Hire Active Directory, Exchange, Lync User Creation Tool

Z-Hire automates the IT account creation process for Exchange mailbox, Active Directory, Lync accounts, Office 365 cloud and SalesForce cloud deployments. With just a click of the button, your Exchange mailbox, and Active directory user and Lync accounts will be created simultaneousy. This tool can also create and set custom settings for Office 365 accounts using templates. Z-Hire serves as the platform for new hire accounts by allowing auto-creation of major IT user accounts with the option for custom scripts. Z-hire will increase your new hire user account deployment time by 600%, without the need for complicated and expensive identity management solutions. This tool makes creating Active Directory users a breeze. Some of the features include:

– Environment Auto detection (AD/Exchange/Lync/Office 365/SalesForce)
– Copy existing Active Directory User to Z-Hire Template (new in version 4.8.1)
– Support for Active Directory user, Exchange Mailbox, Lync 2010, Office 365 user and SalesForce user accounts
– Template based deployment (allows consistency for all user accounts)
– Office 365 account creation with major attributes
– Active Directory user account creation with major attributes
– Active Directory group selection
– Active Directory user duplicate SamAccountName verification
– Lync 2010 account creation supporting all policies
– SalesForce user creation support all major attributes
– Faster performance (compared to previous version)
– Best of all, this AD User Creation Tool is free!

System Requirements
– Windows 7 X64 w/ .NET 3.5 (Domain Joined)
– Windows Server 2008 X64  w/ .NET 3.5 (Domain Joined)
– Windows Server 2008 R2 X64  w/ .NET 3.5 (Domain Joined)

Permission Requirements
– Ability to create Active Directory user
– Ability to create Exchange Mailbox
– Ability to create / enable Lync user

Supported Environments
– Active Directory (all versions)
– Exchange 2007 (all versions)
– Exchange 2010 (all versions)
– Lync 2010 (both Standard and Enterprise versions)
– Office 365 Cloud
– SalesForce CRM Cloud

Download Z-Hire tool on Microsoft Gallery