?
Solved

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

Posted on 2013-01-18
2
Medium Priority
?
733 Views
Last Modified: 2013-01-20
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
Comment
Question by:pauledwardian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
footech earned 1500 total points
ID: 38795799
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
 

Author Closing Comment

by:pauledwardian
ID: 38797939
OK thanks anyways...
0

Featured Post

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question