Re: Help with Logon Script



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: Licencing for remote access
    ... If you want the benefits of SBS 2003 one of its limitations is it can't be ... setup in TS app mode so yes you need a 2nd server for that plus the TS ... your SBS CALs will cover the 2nd server except for the TS remote access. ... No the remote users do not have any workstations in the office - they ...
    (microsoft.public.windows.server.sbs)
  • 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)
  • Re: run access.exe on server side
    ... Even if all of the necessary additional resources were ... available locally then the MSAccess.exe file on the server would be loaded ... To make a program actually run on the remote box you have to somehow tell ... > able to write a quick batch file that opens the desired MDB file, ...
    (comp.databases.ms-access)
  • Re: Help with Logon Script
    ... your logon script into the Startup folder - either the one for ... 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: Need faster connection
    ... The server should have whatever you can afford. ... Note that the remote users will work no faster than ... >work well more than likely due to slow upload through my ADSL connection. ...
    (microsoft.public.backoffice.smallbiz2000)