Forcing Azure AD Connect Sync
Aug29

Forcing Azure AD Connect Sync

KB ID 0001590 Problem If you are using Azure AD Connect, (AAD Connect) to sync your on-premise Active Directory with Azure AD (i.e. for Office 365), then there may be times when you need to manually ‘force a replication’ because by default it’s going to take 30 minutes between each normal ‘delta replication’ Solution If you are directly on the server that’s running Azure AD connect, then use the...

Read More
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