Re: Help with Logon Script



If your server is not a domain controller then you must place
your logon script into the Startup folder - either the one for
"All Users" or the one for each specific user, depending on
your requirements.


"BALEMAN" <BALEMAN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0E92D433-E4E4-41A8-B5A0-28AD42AEAFA9@xxxxxxxxxxxxxxxx
Thanks Pegasus - but - this server is NOT a domain controller. Therefore,
I
have no such path (%SystemRoot%\SYSVOL\sysvol\{DomainName}\SCRIPTS.


"Pegasus (MVP)" wrote:


"BALEMAN" <BALEMAN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C4757A38-EBED-4D92-95E9-331EBF30BB12@xxxxxxxxxxxxxxxx
1) Windows Server 2003 Standard
2) Remote Users access server with Remote Desktop Connection
3) Usernames and Passwords already setup on the server and remote pc

As Administrator, I need to document the Username, Login Date, Login
Time,
and IP Address of the remote PC of all users who access the server.

Below is the batch file I'm using:

:Logging
If Exist \\bem-srvr\Logs\LogOns.txt GoTo START
Echo Log File > \\bem-srvr\Logs\LogOns.txt
:START
Echo >> \\bem-srvr\Logs\LogOns.txt
Echo Log On: %USERNAME% %COMPUTERNAME% %Date:~0,16% %Time:~0,5% >>
\\bem-srvr\Logs\LogOns.txt
netstat -an |find "3389" |find /I "established" >>
\\bem-srvr\Logs\LogOns.txt

I can place this batch file on the root drive of the server, double
click
on
the batch file's icon, and the information displays in the LogOns.txt
file.
I have used the "profile tab" under USERS and placed the batch file
there -
doesn't work. I utilized gpedit.msc-->user settings-->logon scripts
and
put
it there - doesn't work. No matter where I place the batch file, when
a
remote user logs on, the information does not post to LogOns.txt unless
I
manually run the batch file.

Please help.

Logon batch files must reside in the "netlogon" share, which usually
points to %SystemRoot%\SYSVOL\sysvol\{DomainName}\SCRIPTS.





.



Relevant Pages

  • Re: Help with Logon Script
    ... Thanks Pegasus - but - this server is NOT a domain controller. ... Remote Users access server with Remote Desktop Connection ... I can place this batch file on the root drive of the server, ...
    (microsoft.public.scripting.vbscript)
  • Re: Run a batch file remotely
    ... I am looking for a way to remotely run a batch file on another computer. ... backup is on another server. ... why not simply use Remote Desktop to connect and run it? ...
    (microsoft.public.windows.server.networking)
  • Re: changing default user folder location to a another server
    ... create accounts on the SBS server. ... commented out the sbs client executable in the logon script ... In my logon script, if you using WSH script, I had it make shortcuts on ... With a batch file, as the alternative, I ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Logon Scripts with Windows Firewall
    ... Dan S wrote: ... > The Server is running Windows Server 2000. ... > Domain with the new workstations, the logon script (defined in the ... The logon script is a batch file. ...
    (microsoft.public.security)
  • Re: Help with Logon Script
    ... Remote Users access server with Remote Desktop Connection ... I can place this batch file on the root drive of the server, ...
    (microsoft.public.scripting.vbscript)

Quantcast