Hi all,

I'm trying to force run wsname.exe on login to rename all my workstations to the following format:

Computer Name: system serial number (pulled from BIOS with $SERIALNUM parameter)
Workgroup: TVUSD

I have created a simple application to run \\server\sys\public\wsname.exe. The parameters field reads /N:$SERIALNUM /WG:TVUSD and it's set to run as unsecure system user since the app requires Admin rights to change the computer name. This commandline works perfectly if I execute it manually from Run on the workstation, but when NAL executes it the computername does not update (but the workgroup does). For some reason NAL mucks up the $SERIALNUM parameter. I checked the log and it reads as folows (note that the workgroup was not specified on this attempt):

4/6/2006 8:08:40 AM : Version : 2.75g
4/6/2006 8:08:40 AM : Release Date : 22 March 2006
4/6/2006 8:08:40 AM : Operating System : Microsoft Windows XP (Service Pack 2)
4/6/2006 8:08:40 AM : Temporary Directory : C:\Documents and Settings\VBUTLER\Local Settings\Temp\
4/6/2006 8:08:40 AM : Log File : C:\Documents and Settings\VBUTLER\Local Settings\Temp\WSName.Log
4/6/2006 8:08:40 AM : User Name : SYSTEM
4/6/2006 8:08:40 AM : Computer Name (NetBIOS) : NAME
4/6/2006 8:08:40 AM : Host Name (IP) : NAME
4/6/2006 8:08:40 AM : Operator Rights : Administrator
4/6/2006 8:08:40 AM : Novell Client Version : 4.91.0.0.20051209 2
4/6/2006 8:08:40 AM : Member of Workgroup : TVUSD
4/6/2006 8:08:40 AM : Windows is on Drive : C:
4/6/2006 8:08:40 AM : Windows Drive Format : NTFS
4/6/2006 8:08:40 AM : Windows Drive Label : ""
4/6/2006 8:08:40 AM : Command Line : \\server\SYS\PUBLIC\wsname.exe /N:$SERIALNUM
4/6/2006 8:08:40 AM : Operation : Silent (scripted) Mode
4/6/2006 8:08:40 AM : Silent Mode : Starting (/N:<name>)
4/6/2006 8:08:40 AM : Parameter Evaluation : Evaluating $SERIALNUM
4/6/2006 8:08:42 AM : Parameter Evaluation : No serial number found using WIN32_BIOS, trying WIN32_SystemEnclosure
4/6/2006 8:08:42 AM : Parameter Evaluation : Generated Name is ""
4/6/2006 8:08:42 AM : Parameter Evaluation : Updated input parameter is /N:""
4/6/2006 8:08:42 AM : Operation : Rename Computer to ""
4/6/2006 8:08:42 AM : Name Validity Check : Proposed name is """"
4/6/2006 8:08:42 AM : Name Validity Check : FAILED - Contains one of more invalid characters (")
4/6/2006 8:08:42 AM : New name validity check : Failed - Rename request aborted!
4/6/2006 8:08:42 AM : Terminate : Exit code 8

The log indicates that the parameters are being passed correctly but it still fails - which makes no sense, because if I run the command manually from the workstation it works. I've tried everything I can think of - copy wsname.exe locally and run from there, change to run Normal instead of as system, quotes, etc - but no matter what I can't get the $SERIALNUM parameter to resolve when run from a NAL app. Help!