• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • 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.
0
pauledwardian
Asked:
pauledwardian
1 Solution
 
footechCommented:
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

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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