Jump to content

Recommended Posts

Posted

  On 8/10/2010 at 5:23 PM, 'wraithdu said:

I'm not sure if you are interested, but all this can be done very cleanly through WMI. There's documented functions for it and everything. But you will always require a reboot if you change anything related to the computer name or description. I think you can get away with changing workgroup/domain without a restart though.

I just finished a project doing this exact thing (changing computer name/workgroup/dhcp settings) for computers we image in our corporate computer lab. We run CloneZilla and needed an alternative to sysprep. I used DRBL-Winroll for a while, but it's a 120MB installation because of the Cygwin requirement. I wrote the same thing in AutoIt using SrvAny in about 400KB.

See: #823188

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

  Reveal hidden contents

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Posted

Well, I have no way of knowing exactly why Windows is doing what it's doing when changing the computer name, but I'm sure there's a restart in there for a good reason.

Either way, if you want the WMI code, let me know.

  • 1 month later...
Posted

That's cool,Ihave ever seen such a tool,but I didn't know how it works.thanks!

Try to face everything troubles you.nothing is impossible!

  • 1 year later...

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...