txhockeyman Posted January 30, 2017 Report post Posted January 30, 2017 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. Quote Share this post Link to post Share on other sites More sharing options...
0 ericl1996 Posted January 31, 2017 Report post Posted January 31, 2017 (edited) 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 January 31, 2017 by ericl1996 Quote Share this post Link to post Share on other sites More sharing options...
0 NullSID Posted February 18, 2017 Report post Posted February 18, 2017 That's similar to what I did except I had to do it on 300 computers and join them to a new domain. Quote Share this post Link to post Share on other sites More sharing options...
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.
Share this post
Link to post
Share on other sites