powershell bulk rename computers in ad with test is pc online adn is new name already taken
For windows 7,8,10,11 i server 2008> Powershell > v3.0
- Run PowerShell with "Run As Administrator“
- adc.csv - delimiter must be „ , “
oldname,newname
WEDSKS0022,RKVKS0110
WEDSKS0117,RKVKS1413
- .\pedja_bulk_rename_adc.ps1
- script will restart client computers
- log file nisuprosli 30-03-2022-1003.csv with list of computers that are not renamed
Powershell script frstly check is PC online and is new name maybe taken and then will rename PC
Od windowsa 7,8,10,11 i servera 2008> Powershell mora biti preko v3.0
- Zip fajl iz priloga se raspakuje u neki folder
- Otvori se PowerShell sa "Run As Administrator“
- Cd u folder gde se nalaze raspakovani fajlovi
- Pripremi se adc.csv - delimiter mora biti „ , “
oldname,newname
WEDSKS0022,RKVKS0110
WEDSKS0117,RKVKS1413
- .\pedja_bulk_rename_adc.ps1
- I nakon unosa admin ad usera skripta počinje da radi
- U folderu dobićete fajl naziva nisuprosli 30-03-2022-1003.csv sa spiskom pc čiji rename nije uspeo, pa to možete iskoristiti za naredna puštanja bulk rename-a
Powershell skripta preimenovaće računare po adc.csv-u, proveri prvo da li je PC online ili ne, pa proveri da li novo ime možda postoji na mreži, pa tek onda vrši rename računara uz restart.
Pozdrav