PowerShell script for domain join remotely

Hi Friends

Hope you all are enjoying life at the fullest at the time while this post reached you. I am going to use this post to compile some handy scripts which may be used by admins in day to day activities. This is first tool in the series.

Information about this tool (not tested)

I have used “Computer name” parameter in this script so you have to make it sure that computer name should be resolved. You can use any mechanism for it (DNS,NETBios). Other consideration is that since .ps1 files are not allowed to upload here so have pasted script in word file. You need to download the file and do copy-paste of content in ISE and the save file as .ps1.

This script supports adding multiple computers remotely to domain. Help file is also been added in script. I have converted script  to function so to test call function at the end by typing function name or to use directly delete the first line of script(Function Add-Domain {) and last line of script (}).

Note : Primary use of this script is for testing and training.


You can use download link above to download the script file.

So that’s all in this post. See you soon with some other technical stuff. By then take good care of yourself. Bye.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s