Skip to content

Rename Domain Joined Computer Powershell

Featured Replies

Looking to rename but have no idea how to package this.

My script is below and think I'd have to bypass execution policy.

 

Rename-Computer -NewName "PC0001" -DomainCredential Domain01\Admin01 -Restart

 

Just not sure how to create a package for something like this..

 

Thanks for any replies.

 

 

Why spend time packaging and deploying?

If you are a domain admin just use this script to rename remotely instead.

 

Rename-Computer -Computername "PC0001" -NewName "PC0002" -DomainCredential Domain01\Admin01 -Force -Restart

Edited by ericl1996

  • 3 weeks later...

That's similar to what I did except I had to do it on 300 computers and join them to a new domain.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.