PowerShell: Add All Members of an OU to a Security Group
Aug28

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...

Read More
Azure AD Connect: Correct Or Remove Duplicate Values
Aug28

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...

Read More
macOS:  Find your DHCP Server Address
Aug27

macOS: Find your DHCP Server Address

KB ID 0001587 Problem In Windows this is easy to find, ‘ipconfig /all’ will tell you 🙂 On macOS it’s not so simple. Solution First you need to know which network card we are talking about! Your wireless network card is nearly always en0 (that’s a zero), if you are on a wired connection simply run ifconfig and find the right network card. to double check you can run; ipconfig getifaddr en0 Then to see your DHCP...

Read More
PowerCLI: vMotion Multiple VMs
Aug23

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...

Read More
VMware Converter Slow!
Aug23

VMware Converter Slow!

KB ID 0001584 Problem I was P2Ving a server for a client this week. I did a ‘trial run’ just to make sure everything would be OK, and got this; Yes, that says 13 days and 29 minutes! Suddenly doing this at 1700hrs on a Friday became a moot point! (Note: I was using VMware vCenter Converter Standalone version 6.2) Solution At first I assumed this was a network problem, so I moved everything onto the same Gigabit switch, and...

Read More