|
When executing this Kix script Within NT/2000 I am successful. Even when logged on I can execute this Kix script and it will run on 95/98 client. But, when I execute this script from Logon Script, the changes do not take only in 95,98 clients only. Any ideas on this Windows 95,98 on why it will not execute this script at logon:
Kix Script:
IF @INWIN=1
$LegalKey_Caption ="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" $LegalKey_Text = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" $Status = WriteValue("$LegalKey_Caption", "LegalNoticeCaption", "Authorized User only", "REG_SZ") $Status = WriteValue("$LegalKey_Text", "LegalNoticeText", "This computer is only for authroized use only, This is a test.", "REG_SZ")
ELSE
$LegalKey_Caption ="HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\WINLOGON" $LegalKey_Text ="HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\WINLOGON" $Status = WriteValue("$LegalKey_Caption", "LegalNoticeCaption", "Authorized User only", "REG_SZ") $Status = WriteValue("$LegalKey_Text", "LegalNoticeText", "This computer is only for authroized use only, This is a test.", "REG_SZ")
ENDIF RETURN EXIT
|