General discussion

Locked

Logon scripts

By paulm ·
Everytime a user logs in and batch file runs that keeps an inventory of the PC. The script is for Track-IT software. However, when RAS clients dial-in using around 33k modems the script runs and slows the logon process down a lot. I need to stop this from running for the RAS clients when they dial-in but continue running when they are logged
onto the LAN.
The RAS clients use DHCP to obtain an IP address, so excluding certain
IP addresses is out of the question.

Is there a way to obtain some code that could know when it is a dial-inuser and therefore not run the script?

Some people recommended KixStart but I did not know how to use it as I have never done anything like this before. I would very much appreciate any help.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Logon scripts

by shmaltz In reply to Logon scripts
Collapse -

Logon scripts

by paulm In reply to Logon scripts

The question was auto-closed by TechRepublic

Collapse -

Logon scripts

by curlergirl In reply to Logon scripts

I use checkras.exe, but with a much simpler script than the one outlined in Q173530. Once you get checkras.exe, copy it to the Netlogon share(s) in your domain. Then put the following lines in your logon scripts:

REM Next two lines check for RAS connection
%0\..\checkras.exe > nul
if errorlevel 1 goto END

These lines check for the RAS connection using checkras.exe and then, if the RAS connection is found, they go to the :END section of the script. Everything that you don't want to happen if the client is RASed in (like the Track-It inventory) is between the "if errorlevel" line and the :END section of the script. If there's something you want to have happen ONLY if there's a RAS connection, then you'd have to use the script in the Q173530 article. Hope this helps!

Collapse -

Logon scripts

by paulm In reply to Logon scripts

The question was auto-closed by TechRepublic

Collapse -

Logon scripts

by bmccool In reply to Logon scripts

Using only the default OS, and no outside utilities.
You just copy a file to the root of the RAS client's c: drive. then in the script conditionally execute the trackit script.
ex;
if exist c:\ignoreme.txt goto skiptrackit
{trackit scripting goes here}

:skiptrackit

Collapse -

Logon scripts

by paulm In reply to Logon scripts

The question was auto-closed by TechRepublic

Collapse -

Logon scripts

by paulm In reply to Logon scripts

This question was auto closed due to inactivity

Back to Windows Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums