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
Page 1 of 1
VB Code to remove WS from Domain
#2
Posted 14 October 2004 - 12:13 PM
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\/\/
the Win32_ComputerSystem Class
method :
UnjoinDomainOrWorkgroup
params :
string Password,
string UserName,
uint32 FUnjoinOptions = 0
greetings/\/\o\/\/
- ← [C++] Upper case string to lower case string
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Removing spaces →
Share this topic:
Page 1 of 1



Help
Back to top









