Jump to content

Recommended Posts

Posted

I don't know if this is the right forum to post this in, but I thought I would start here:

Has anyone written a script (VB or otherwise) that runs on the local workstation, or developed some other automated way to remove a workstation from the domain before Ghosting? We don't want to go in and remove all the workstations that are going to be Ghosted that night at 3:00 AM by hand. It would be nice if we could run a script in Windows on each workstation, or on the server that removed itself or a group of machines from the domain before Ghosting, or on the CD we use to boot to DOS to Ghost the PC's. We are talking about 50-100 different workstations per night that will need to be removed. They might be the same every week or they may forget one or two, so I don't think we can pull from a file to get the workstation names. Any thoughts on this? If you need further clarification, let me know.

Thanks,

Matthew


Posted

if the clients are XP you can use WMI

the Win32_ComputerSystem Class

method :

UnjoinDomainOrWorkgroup

params :

string Password,

string UserName,

uint32 FUnjoinOptions = 0

greetings/\/\o\/\/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...