PC Review


Reply
Thread Tools Rate Thread

Change workgroup via script

 
 
Rick Corbett
Guest
Posts: n/a
 
      29th Oct 2003
I've created a disk image used to clone new Win XP Pro PC's. I've concocted
a VBS script that changes the TCP/IP info and Computername but one last
thing has me stumped.

Does anyone know how to change the Workgroup using script (VBS, WMI... I
don't care as long as it works)?

Any help would be greatly appreciated.


 
Reply With Quote
 
 
 
 
Patrick J. LoPresti
Guest
Posts: n/a
 
      29th Oct 2003
If you only care about XP, you can use the JoinDomainOrWorkgroup
method of the Win32_ComputerSystem WMI class:

http://msdn.microsoft.com/library/en...utersystem.asp

Let me know if you need sample code.

- Pat
http://unattended.sourceforge.net/

P.S. Workstation cloning is almost always a bad idea.


"Rick Corbett" <(E-Mail Removed)> writes:

> I've created a disk image used to clone new Win XP Pro PC's. I've
> concocted a VBS script that changes the TCP/IP info and Computername
> but one last thing has me stumped.
>
> Does anyone know how to change the Workgroup using script (VBS, WMI... I
> don't care as long as it works)?
>
> Any help would be greatly appreciated.

 
Reply With Quote
 
Rick Corbett
Guest
Posts: n/a
 
      30th Oct 2003
Pat,

Thank you for the speedy reply. I looked at the WMI SDK link but,
unfortunately, don't understand about methods. I would be very grateful for
some sample code.

I also looked at 'unattended' and found it very interesting. The place where
I work has used Ghost successfully for several years. This is going to
change in the very near future so it looks like I'll have to look at
'unattended' in more detail.

Rick

"Patrick J. LoPresti" <(E-Mail Removed)> wrote in message
news:s5g1xsw3ta3.fsf@patl=users.sf.net...
> If you only care about XP, you can use the JoinDomainOrWorkgroup
> method of the Win32_ComputerSystem WMI class:
>
>

http://msdn.microsoft.com/library/en...utersystem.asp
>
> Let me know if you need sample code.
>
> - Pat
> http://unattended.sourceforge.net/
>
> P.S. Workstation cloning is almost always a bad idea.
>
>
> "Rick Corbett" <(E-Mail Removed)> writes:
>
> > I've created a disk image used to clone new Win XP Pro PC's. I've
> > concocted a VBS script that changes the TCP/IP info and Computername
> > but one last thing has me stumped.
> >
> > Does anyone know how to change the Workgroup using script (VBS, WMI... I
> > don't care as long as it works)?
> >
> > Any help would be greatly appreciated.



 
Reply With Quote
 
Rick Corbett
Guest
Posts: n/a
 
      9th Nov 2003
Patrick,

Thanks for your advice but I've achieved what I wanted using NetDom.exe.

Rick

"Patrick J. LoPresti" <(E-Mail Removed)> wrote in message
news:s5g1xsw3ta3.fsf@patl=users.sf.net...
> If you only care about XP, you can use the JoinDomainOrWorkgroup
> method of the Win32_ComputerSystem WMI class:
>
>

http://msdn.microsoft.com/library/en...utersystem.asp
>
> Let me know if you need sample code.
>
> - Pat
> http://unattended.sourceforge.net/
>
> P.S. Workstation cloning is almost always a bad idea.
>
>
> "Rick Corbett" <(E-Mail Removed)> writes:
>
> > I've created a disk image used to clone new Win XP Pro PC's. I've
> > concocted a VBS script that changes the TCP/IP info and Computername
> > but one last thing has me stumped.
> >
> > Does anyone know how to change the Workgroup using script (VBS, WMI... I
> > don't care as long as it works)?
> >
> > Any help would be greatly appreciated.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to rename workgroup pc Dave Marden Microsoft Windows 2000 CMD Promt 3 8th Jan 2008 05:26 AM
Logon Script in WorkGroup. Rath Microsoft Windows 2000 2 25th Feb 2005 07:42 PM
Change workgroup name via script =?Utf-8?B?c2hhZG93d2Fycmlvcg==?= Windows XP Setup 3 1st Feb 2005 02:04 PM
Script Workgroup Change CjC Microsoft Windows 2000 Networking 0 23rd Dec 2003 05:58 PM
logon script for workgroup Saravanan Microsoft Windows 2000 Active Directory 1 9th Nov 2003 07:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:05 AM.