Thank you for your replies...
I have edited the two lines to the correct ReadValue and Shell commands and edited the REG_SZ info to read a little clearer...
IF @WKSTA="TS_SERVER" IF ReadValue ("HKEY_CURRENT_USER\Software\Program\UserName", "NONUSER") Shell 'regedit /s "\\servername\share\import.reg"' ENDIF ENDIF
I am running the very latest version of Kixtart (KiX2010_453) and the Registry values that I am reading are REG_SZ and in relation to a peice of software on a Terminal Server. The software has been installed but requires configuring, per user, on their first login. Once configured, the kixtart commands are no longer required which is why I need to check the value of the registry key to determine whether it's the default entry or not. If so, then it will import a registry key but if it's not the default entry, kixtart will ignore the command and carry on with the script.
This still requires a little intervention to get the software running once the user is logged in. Therefore, once I have the correct command formating, I could query the name of the user and import a pre-made .reg key based on their username and it would be fully configured.
It's just I'm not sure I'm calling the commands correctly from the login script to either run the command if a registry is of a certain value or to ignore it and carry on with the rest of the script if it's not.
Thanks again for any help.
|