MSFN Forum: VB Code to remove WS from Domain - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

VB Code to remove WS from Domain Rate Topic: -----

#1 User is offline   Popasmurf 

  • Group: Members
  • Posts: 9
  • Joined: 03-September 02

Posted 08 October 2004 - 07:20 AM

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


#2 User is offline   /\/\o\/\/ 

  • Member
  • PipPip
  • Group: Members
  • Posts: 101
  • Joined: 26-April 04

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\/\/

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy