How can i run vbs script on start up?

Home Forums Scripting DOS Command Shell How can i run vbs script on start up?

This topic contains 2 replies, has 3 voices, and was last updated by Avatar Anonymous 5 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Avatar
    robelneo
    Member
    #163479

    Hi I have a vbs script and would want it to run on start up I have added it to start up folder but unfortunately it’s not working at all..

    Is there a code to add to my vbs script to make it run on start up

    Thanks

    Avatar
    Anonymous
    #371672

    Re: How can i run vbs script on start up?

    Assuming this is not a domain PC, edit the local machine security policy to include the script at startup, which will run under the system account, before you log in.

    To get to the policy, run ‘gpedit.msc’ from a command prompt with admin rights. In the console that opens, navigate to ‘Computer Configuration – Windows Settings – Scripts’, and you’ll see the Startup and Shutdown items. Double-click on ‘Startup’, and use the Properties window to add your script.

    Once you’ve done that and closed the windows, restart your PC to check that the script ran.

    Rems
    Rems
    Moderator
    #228423

    Re: How can i run vbs script on start up?

    robelneo;282660 wrote:
    unfortunately it’s not working at all..

    What should it do, can you show the code.
    What is the OS on the client, is the computer member in a domain network? Is the user member of the local group Administrators. Is the script stored on a network share or on the local computer?

    /Rems

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.