My First Core Server Scripts

I haven’t even looked at powershell yet with Windows Server 2008, that is next on my list, but i wanted to make it a bit easier to do things like rename my server, join it to a domain, and remove it from a domain, without having to always type netdom join %computername% /Domain:DomainName /UserD:DomainAdmin /PasswordD:* /REBoot or netdom renamecomputer %computername% /NewName:NewName etc…

so I decided to create 3 batch files that will do this for me and prompt you for the required info needed: Username, Domain Name, Computer Name and password.

The first batch file was called rensrv.bat and funnily enough it renames the server

the second is called joindomin.bat and, yes you guessed it it does exactly what it says on the “tin” it joins the domain

and the third is to remove the account from the domain removedomain.bat

the next step is to add these into a selection list I think so that I can run just one batch file and have a choice of what to do

Bookmark and Share

Comments

No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  

Please add 7 and 7 and type the answer here: