Migrating an old VMWare Vcenter environment to newer vcsa 6.5 can be challenging. In the process I found myself doing other tasks like converting RDMs (Mapped Raw LUN) to .vmdk files.
Migrating RDMs attached to virtual machines on my Vcenter 5.5 environment to .vmdk disk files appeared like a tedious handy task especially when you have these LUNs attached to many ESXi hosts. With the help of powershell and Powercli the task becomes much easier.
I found it comfortable and safer to detach each LUN from all ESXi servers, so this script answers my current need and may be modified as needed. Im aware that it can still be improved and I hope to publish new and improved versions later.
The script asks for the “LUN canonicalName” and performs a Detach action on each Host from the list you provide.
You can find the LUN canonicalName here:
Prepare a text file with the ESX servers list in c:\temp\esxList.txt, one in each line like so:
In this post I recomposed (Source:Ian Farr) a Powershell script which will ask for the locked user account name and then will scan the active directory DCs security log for relevant events and will present the user lock time and source of the lock out like so:
How to: Find the source of Account Lockouts in Active Directory
It is a very common problem in Active Directory when Users change their password in a domain environment, they might get locked out repeatedly and it can be a frustrating process to identify the source of the lockout.
Try the following steps to track the locked out user and also find the source of AD account lockouts. This procedure assume that you know the username which is locked out.