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.
pauledwardianAsked:
Who is Participating?
 
footechConnect With a Mentor Commented:
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
http://technet.microsoft.com/en-us/library/hh849827.aspx
0
 
pauledwardianAuthor Commented:
OK thanks anyways...
0
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.

All Courses

From novice to tech pro — start learning today.