#72780 - 2003-01-31 06:16 PM
Writing WriteValue in HKLM Issues
|
Jbutler
Fresh Scripter
Registered: 2003-01-10
Posts: 11
|
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
|
|
Top
|
|
|
|
#72782 - 2003-01-31 06:57 PM
Re: Writing WriteValue in HKLM Issues
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
|
|
Top
|
|
|
|
#72792 - 2003-01-31 09:41 PM
Re: Writing WriteValue in HKLM Issues
|
Jbutler
Fresh Scripter
Registered: 2003-01-10
Posts: 11
|
Is there a such a thing of how many total characters you can put in the LegalNoticeCaption? I am tryingt to put alot of info in that. If there is a limit, Is there anyway to Expand that limit of characters?? thanks for replies?
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1452 anonymous users online.
|
|
|