PowerShell: Add All Members of an OU to a Security Group
KB ID 0001589 Problem I’ve written in the past about ‘Bulk Adding Users from CSV files, into Groups’. But what if you want to add ALL users in a particular OU into a security group? Solution The syntax is; Get-ADUser -SearchBase ‘OU=Source-OU,OU=PNL,DC=pnl,DC=com’ -Filter * | ForEach-Object {Add-ADGroupMember -Identity ‘SG-Test-Group’ -Members $_ } Here I’ve got 20 users that need adding to a group, in this...
Azure AD Connect: Correct Or Remove Duplicate Values
KB ID 0001588 Problem I was doing some work for a School recently, their staff were already using Office 365 and their tenancy was all setup. Now they wanted to roll Office 365 out to the pupils, and sync to their on premises Active Directory. Now we could have simply excluded the staff from the Azure AD Connect Sync, but they want to manage their passwords etc. on-premises. Microsoft will tell you if you DON’T have an...
PowerCLI: vMotion Multiple VMs
KB ID 0001585 Problem vMotioning one VM is pretty simple to do; Get-VM VM1 | Move-VM -Destination (Get-VMHost ESX-02.pnl.com) And moving ALL the VMs on one host, to another is pretty straight forward also; Get-VMHost ESX-01.pnl.com | Get-VM | Move-VM -Destination (Get-VMHost ESX-02.pnl.com) But what if you have a list of VMs you want to move, and you are too lazy, (sorry too skilled), do do them manually or one at a time? Solution...
VMware Converter ‘Unable to Connect to the Network Share’
KB ID 0001583 Problem I don’t think, Ive ever run the VMware Standalone Converter, without at least one error message or popup complaining about something! Today I was trying to convert a clients old Windows Server 2003 document management server, when trying to deploy the agent this happened; Unable to connect to the network share ‘{Sever-name-or-IP} \ADMIN$’. Solution It’s a pretty descriptive error, can you...
Mailbox Move ‘StalledDueToMailboxLock’
KB ID 0001581 Problem I was doing a migration from Exchange 2007 (on prem) to Exchange 2013 (on prem), this week. I had a number of mailboxes that were ‘StalledDueToMailboxLock’. Solution Nice easy fix, on the Source and Destination Exchange severs, restart the ‘Microsoft Exchange Mailbox Replication Service’. Wont this break my Mailboxes! No, it will interrupt the migration process, (which is already stalled)....
Virtualising Hyper-V ‘Validation Fails’
KB ID 0001580 Problem Normally if you saw this error, it would mean that you didn’t have the advanced virtual extensions turned on, in the physical machine’s BIOS. But here I’m installing on Hyper-V in a vSphere/ESX environment; Validation Results The validation process found problems on the server which you want to install features. The selected features are not compatible with the current configuration of your...