Log shutdown on win2k as

  • Thread starter Thread starter Fabio
  • Start date Start date
F

Fabio

hello all

does anyone knows how to log the shutdown on a Windows 2000 Advanced
Server?
e.g. "The previous shutdown at the 10.43 am 11/21/2005 was requested by
DOMAIN\USERNAME"

thanks in advance!
 
Use the Group policy editor to fire your script. You may need to read the
user name from;
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
DefaultDomainName and DefaultUserName

%systemroot%\system32\gpedit.msc
Computer Config\Windows Settings\Scripts\Startup/Shutdown

--

Regards,

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

:
| hello all
|
| does anyone knows how to log the shutdown on a Windows 2000 Advanced
| Server?
| e.g. "The previous shutdown at the 10.43 am 11/21/2005 was requested by
| DOMAIN\USERNAME"
|
| thanks in advance!
|
 
Thanks a lot... do you think it'll work on all the open session used by
the terminal services service?

i mean, the key HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon DefaultDomainName and DefaultUserName are
used from the local user logged on or from all the users logged from
the terminal services?

Thanks a lot

Dave Patrick ha scritto:
 
Probably but I'd have to take a look after a TS session to be sure.

--

Regards,

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

:
| Thanks a lot... do you think it'll work on all the open session used by
| the terminal services service?
|
| i mean, the key HKLM\SOFTWARE\Microsoft\Windows
| NT\CurrentVersion\Winlogon DefaultDomainName and DefaultUserName are
| used from the local user logged on or from all the users logged from
| the terminal services?
|
| Thanks a lot
 
Thanks Dave, I've tried to make the script but I got some problems to
find the part that read the registry keys.
Can you please help me again?

Thanks a lot!

Dave Patrick ha scritto:
 
Dim WshShell, mydomain, myuser
Set WshShell = WScript.CreateObject("WScript.Shell")
mydomain = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\" _
& "Windows NT\CurrentVersion\Winlogon\DefaultDomainName")
myuser = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\" _
& "Windows NT\CurrentVersion\Winlogon\DefaultUserName")
Wscript.Echo "Domain= " & mydomain & "| User= " & myuser
Set WshShell = Nothing

--

Regards,

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

:
| Thanks Dave, I've tried to make the script but I got some problems to
| find the part that read the registry keys.
| Can you please help me again?
|
| Thanks a lot!
 
Back
Top