Windows 2000 Domain
1500 Windows 2000 desktops
What I need to do is change the following registry keys on all PCs on the network. When i run the .reg file the correct settings are applied no problem so I know they are correct.
[HKEY_LOCAL_MACHINE\SOFTWA
RE\Microso
ft\Windows
NT\CurrentVersion\Winlogon
]
"LegalNoticeCaption"="XXXX
XX Data Network"
"LegalNoticeText"="A criminal offence may be commited by accessing this computer or modifying any data in this computer without authorisation and persons doing so may be liable to prosecution"
"LogonPrompt"="XXXXXX authorised staff may enter a user name and password"
"DontDisplayLastUsername"=
"1"
ADM EFFORT
I have tried to create a .ADM file but it says there is an error in line 16. When i import other ADM files the atributes appear but have no settings underneath them.
To do this I used an app called ADM2REG.exe which converts .reg files into .ADM. I have now given up on this as i am aware that our AD is a bit sketchy some of the time and don't have any previous experience to know if this is correct behaviour or not. (Can't wait until we upgrade to 2003).
Here is the ADM file if anyone wants to comment. Fails to import on line 16 whic is the END POLICY line? Unfortunately I don't have a test domain just now so can't try to import it on another domain to see if it functions.
CLASS MACHINE
CATEGORY "SOFTWARE\Microsoft\Window
s NT\CurrentVersion"
POLICY Winlogon
KEYNAME "SOFTWARE\Microsoft\Window
s NT\CurrentVersion\Winlogon
"
PART LegalNoticeCaption EDITTEXT
VALUENAME "LegalNoticeCaption"
END PART
PART LegalNoticeText EDITTEXT
VALUENAME "LegalNoticeText"
END PART
PART LogonPrompt EDITTEXT
VALUENAME "LogonPrompt"
END PART
PART DontDisplayLastUserName EDITTEXT
END PART
END POLICY
END CATEGORY
WHAT I WANT:
I would now like to make these changes using the Startup script but am unsure of what syntax to add in. The security would be ok as it would run as system.
Have spent some time trying to find good articles but they all mention .ADM files or reg.ini.
My scripting is pretty limited hence I am asking here.
Thanks in advance for your help.
Start Free Trial