Autologon / Legal Warning Notice issue

  • Thread starter Thread starter Dale
  • Start date Start date
D

Dale

I have a Windows 2000 Server as a member server joined to
a domain.
I want the server to be resilient; in that if the server
restarts, i want the server to logon and lauch certain
applications automatically upon startup.
I have set the necessary registry keys
under "..\winlogon" to enable auto logon and I have set a
VBS script to run upon startup to launch the
applications. Script contents:
]]
set WshShell = CreateObject("WScript.Shell")

'wait 180 seconds
WScript.Sleep 180000

'Launch exe and wait 60 seconds
WshShell.Run "C:xxxxx.exe"
WScript.Sleep 60000

'Launch exe and wait 60 seconds
WshShell.Run "C:\xxxxx.exe"
WScript.Sleep 60000

'Launch exe and wait 60 seconds
WshShell.Run "C:\xxxxx.exe"
WScript.Sleep 60000

'Lock workstation
WshShell.Run "rundll32.exe user32.dll, LockWorkStation"
]]
The script locks the server for security purposes.

.... Getting to the point, this method of autologon fails
because the server will not get past the legal warning
notice unless there is a manual intervention. Is there a
way of removing this notice for this particular server? I
have tried to remove local registry keys for legal
warning notice, but this has not helped - it is obviously
picking this up from the domain.
.... also, Removing the server from the domain is an
unsuitable solution.

The other question is, is this the best angle of
attacking this problem, or is there another way around it?

Please help.

Thanks in advance,
Dale
 
This article may help you.

HOWTO: Create a User-Defined Service
http://support.microsoft.com/default.aspx?kbid=137890

Or since the domain policy writes the values to legalnoticecaption and
legalnoticetext at logon all you need to do is clear them prior to the next
logon.

Use the Group policy editor to run this script.
%windir%\system32\gpedit.msc
User Config\Windows Settings\Scripts\Logoff

----------------------------------
Dim WshShell
Set WshShell=WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\" _
& "CurrentVersion\policies\system\legalnoticecaption", "", "REG_SZ"
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\" _
& "CurrentVersion\policies\system\legalnoticetext", "", "REG_SZ"
Set WshShell=Nothing
----------------------------------

(watch for line wrap)

Another option is to create this *.reg file. And again use the policy
editor;
%windir%\system32\gpedit.msc
User Config\Windows Settings\Scripts\Logoff

with a command line something like
regedit /s <filename.reg>

-------filename.reg------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
"legalnoticecaption"=""
"legalnoticetext"=""
------End File-------

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I have a Windows 2000 Server as a member server joined to
| a domain.
| I want the server to be resilient; in that if the server
| restarts, i want the server to logon and lauch certain
| applications automatically upon startup.
| I have set the necessary registry keys
| under "..\winlogon" to enable auto logon and I have set a
| VBS script to run upon startup to launch the
| applications. Script contents:
| ]]
| set WshShell = CreateObject("WScript.Shell")
|
| 'wait 180 seconds
| WScript.Sleep 180000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:xxxxx.exe"
| WScript.Sleep 60000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:\xxxxx.exe"
| WScript.Sleep 60000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:\xxxxx.exe"
| WScript.Sleep 60000
|
| 'Lock workstation
| WshShell.Run "rundll32.exe user32.dll, LockWorkStation"
| ]]
| The script locks the server for security purposes.
|
| ... Getting to the point, this method of autologon fails
| because the server will not get past the legal warning
| notice unless there is a manual intervention. Is there a
| way of removing this notice for this particular server? I
| have tried to remove local registry keys for legal
| warning notice, but this has not helped - it is obviously
| picking this up from the domain.
| ... also, Removing the server from the domain is an
| unsuitable solution.
|
| The other question is, is this the best angle of
| attacking this problem, or is there another way around it?
|
| Please help.
|
| Thanks in advance,
| Dale
 
I will try this. Thank you Dave.
-----Original Message-----
This article may help you.

HOWTO: Create a User-Defined Service
http://support.microsoft.com/default.aspx?kbid=137890

Or since the domain policy writes the values to legalnoticecaption and
legalnoticetext at logon all you need to do is clear them prior to the next
logon.

Use the Group policy editor to run this script.
%windir%\system32\gpedit.msc
User Config\Windows Settings\Scripts\Logoff
& "CurrentVersion\policies\system\legalnoticecaption", "",
"REG_SZ"
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\" _
& "CurrentVersion\policies\system\legalnoticetext", "", "R
EG_SZ"
Set WshShell=Nothing
----------------------------------

(watch for line wrap)

Another option is to create this *.reg file. And again use the policy
editor;
%windir%\system32\gpedit.msc
User Config\Windows Settings\Scripts\Logoff

with a command line something like
regedit /s <filename.reg>

-------filename.reg------
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVers
ion\policies\system]
"legalnoticecaption"=""
"legalnoticetext"=""
------End File-------

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I have a Windows 2000 Server as a member server joined to
| a domain.
| I want the server to be resilient; in that if the server
| restarts, i want the server to logon and lauch certain
| applications automatically upon startup.
| I have set the necessary registry keys
| under "..\winlogon" to enable auto logon and I have set a
| VBS script to run upon startup to launch the
| applications. Script contents:
| ]]
| set WshShell = CreateObject("WScript.Shell")
|
| 'wait 180 seconds
| WScript.Sleep 180000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:xxxxx.exe"
| WScript.Sleep 60000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:\xxxxx.exe"
| WScript.Sleep 60000
|
| 'Launch exe and wait 60 seconds
| WshShell.Run "C:\xxxxx.exe"
| WScript.Sleep 60000
|
| 'Lock workstation
| WshShell.Run "rundll32.exe user32.dll, LockWorkStation"
| ]]
| The script locks the server for security purposes.
|
| ... Getting to the point, this method of autologon fails
| because the server will not get past the legal warning
| notice unless there is a manual intervention. Is there a
| way of removing this notice for this particular server? I
| have tried to remove local registry keys for legal
| warning notice, but this has not helped - it is obviously
| picking this up from the domain.
| ... also, Removing the server from the domain is an
| unsuitable solution.
|
| The other question is, is this the best angle of
| attacking this problem, or is there another way around it?
|
| Please help.
|
| Thanks in advance,
| Dale


.
 
Back
Top