Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

Run a script on start up..


Recommended Posts

Is there a way to run a script the very first time a user logs into a computer? What I need to do is run a security script on the users account the very first time they log in.... I need to do this on the local machine... they will not be logging into a domain....

Link to post
Share on other sites

I have the same problem but what I need to do is to display a warning everytime a user logon to the network or local a/c. So, where how should the script wrtten and where should I put the file????

thanks in advance for the help!!!!!

Link to post
Share on other sites

I would also like information on how to have a warning displayed on each login for every account, as I have a stupid task I must manually do once the system has successfully logged on a user. I need to have a system warning message announce to the users to adjust vidoe card speeds and fan speeds as eVGA sucks and released a video card that does not automatically run at 2D clocks and fan speed is fixed. This message is critical for as if the user's on login do not alter these settings manually, they may brick my video card if they launch right into an intensive 3D game for hours on end.

Link to post
Share on other sites

Maybe I wasnt clear... I know about runonce... but what I need to do is have a script that runs the very first time a user logs into the machine.... so if I create a new user and then go to log into that users account it needs to run the script one time.. so fr every new user it needs to run the script..... is there a way to do that?

Link to post
Share on other sites

You could place it in the startup folder and use a batch file to delete the shortcut when it runs.

startup batch.bat

start %homedrive%\script.vbs
del "%homedrive%\Documents and Settings\All Users\Start Menu\Programs\Start Up\Script.Ink"
REM You may need the silent delete switch
del %homedrive%\script.vbs
del %homedrive%\batch.bat
exit

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...