I need some assistance in the PowerShell scripting, so I can get the next available number of the Workstation based on Active Directory AD computer object.
My AD naming convention for computer objects like the below:
PRDVM001 PRDVM002 PRDVM003 ... PRDVM055So how can I get the return from the Powershell script which basically says:
The next available AD computer name is PRDVM055
I just need to make sure that PRDVM055 is not already created in all of the AD domain before and is the largest number.