• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 774
  • Last Modified:

C# Or Powershell Unjoin, Rename, Reboot, Rejoin Remote Computer

Is there a sample code anywhere I can Unjoin, Rename, Reboot, Rejoin a Remote Computer by C# OR POWERSHELL ???
Please help if you can. I would really appreciate it.
1 Solution
Well, you have the Remove-Computer, Rename-Computer, Restart-Computer, and Add-Computer cmdlets.  In PowerShell 2.0 you'd mostly have to use PowerShell Remoting since the cmdlets didn't support working against remote machines (except Restart-Computer).  With PS 3.0, they do support remote machines so you don't have to use PS Remoting (also Rename-Computer was only introduced with PS 3.0).

You can see documentation for all of these at
pauledwardianAuthor Commented:
OK thanks anyways...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

WEBINAR: GDPR Implemented - Tips & Lessons Learned

Join the WatchGuard team on Thursday, March 29th as we recount some valuable lessons learned in weighing the needs of a business against the new regulatory environment, look ahead at the two months left before implementation, and help you understand the steps you can take today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now