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
VMware Converter ‘Unable to Connect to the Network Share’
Aug22

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

Read More
Cisco ASA: NAT 2 Public IPs to 1 Private IP
Aug20

Cisco ASA: NAT 2 Public IPs to 1 Private IP

KB ID 0001582 Problem I got asked today if this could be done. My first response was ‘why?’ I cant really think of a use case for this. But a client had this on their previous firewall and were migrating to a virtual ASA, and wanted the config replicating. So I built something like this; Solution To be fair, my first thought was ‘why not simply add an additional internal IP to the web server, and NAT the second...

Read More
Mailbox Move ‘StalledDueToMailboxLock’
Aug17

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

Read More
Virtualising Hyper-V ‘Validation Fails’
Aug13

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

Read More
vSphere: Migrating vSwitch PortGroups and VLANS
Jul30

vSphere: Migrating vSwitch PortGroups and VLANS

KB ID 0001578 Problem Over the past few weeks I’ve been doing some work for a client that involves me adding some new ESX hosts. These will be setup the same as their existing ESX hosts. That’s fine, but they use standard vSwitches and have A LOT of port groups and VLANs. I could sit and create them all manually, and tag them onto the the correct VLANs, but something that’s boring and repetitive is better solved with...

Read More