Using WSNAME as a postinstall task
I'm trying to change a computername after imaging as a postinstall task using wsname.
What i did was make a namedb.dat with all the computernames and corresponding MAC-addresses we currently have.
We want to use it this way, as we are currently in the process of migrating to Windows 7 and some applications rely on the computername to give access elsewhere.
I've name a namechange postinstall job (for running in windows) and uploaded the namedb.dat in there.
The settings i used in the job are these:
wsname.exe /RDF:namedb.dat /DFK:$MAC /EXCLUDEADAPTERS[WIRELESS WIFI WLAN BLUETOOTH PPP VMWARE IPSEC CENTRINO] /RCID /USER:MyDomain\Username /passm:H#54F2C8E5A771F6AB4527 /DELETEEXISTING /REBOOT /ADR
The image we're using finishes with a bogus name and in a workgroup.
When I test it locally, it seems to work ok, doing the namechange and rebooting, but as a postinstall task, it doesn't work.
I also tried to set it up as a scripting job, but although it copies everything, it doesn't work.
Does anyone know where i went wrong?