JScript Posted August 11, 2010 Posted August 11, 2010 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 Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
wraithdu Posted August 11, 2010 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.
Richard Robertson Posted August 11, 2010 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.
chong Posted October 8, 2010 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!
Alexandre Posted November 2, 2011 Posted November 2, 2011 Hello to all Using this script is it possibel to do it silenc our quiet?
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