JScript Posted August 11, 2010 Share Posted August 11, 2010 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!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
wraithdu Posted August 11, 2010 Share Posted August 11, 2010 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. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 11, 2010 Share Posted August 11, 2010 I believe the restart is Microsoft's catch all to make sure that any running application must terminate active socket connections and refresh any cached domain information. Link to comment Share on other sites More sharing options...
wraithdu Posted August 11, 2010 Share Posted August 11, 2010 That makes good sense. Link to comment Share on other sites More sharing options...
chong Posted October 8, 2010 Share Posted October 8, 2010 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! Link to comment Share on other sites More sharing options...
Alexandre Posted November 2, 2011 Share Posted November 2, 2011 Hello to all Using this script is it possibel to do it silenc our quiet? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now