Tag: Windows PowerShell
-
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…
-
How to Customize Exchange 2010 RBAC Roles for Delegating User/Contact Management Part 2.
As a follow up to the last post, I decided to further restrict the Support Staff users’ access to the available Custom ‘Address Book Management’ Role cmdlets. The following commands enabled me accomplish this objective: 1) C:\>Get-ManagementRoleEntry -Identity “Address Book Management\*” | ?{$_.Name -ne “Get-User”} | Remove-ManagementRoleEntry ( This command removes all available cmdlets from…