Solved

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

Posted on 2013-01-18
2
696 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
2 Comments
 
LVL 39

Accepted Solution

by:
footech earned 500 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now