none
Running Commands on startup RRS feed

  • Question

  • Hi Everyone,

    I need to add an http reservation to windows using a startup script in windows 10. I've tried setting the bat file to run on startup using Group Policy and it does run it just doesn't work. I've checked the syntax and the command does work it just seems you need admin privileges.  I was under the impression that startup scripts was run using the builtin system account and they run as local admin?

    Any help would be much appreciated!

    Bat file Command:

    "netsh http add urlacl url=http://+:8090/ user=Everyone"

    • Moved by Bill_Stewart Friday, January 26, 2018 3:24 PM This is not "scripts on demand"
    Monday, December 11, 2017 2:15 PM

Answers

  • netsh is a system utility and not a script.  Post you issue in the OS forums for you OS.

    also review the help:

    netsh /?


    \_(ツ)_/

    Monday, December 11, 2017 6:02 PM

All replies

  • Cannot be used in a logon script.


    \_(ツ)_/

    Monday, December 11, 2017 2:35 PM
  • Ah ok, do you know of a way I could put the reservation on all my machine without having to do around everyone?

    I take it certain commands can't be run at start up then?

    Thanks for the reply.

    Monday, December 11, 2017 4:10 PM
  • netsh is a system utility and not a script.  Post you issue in the OS forums for you OS.

    also review the help:

    netsh /?


    \_(ツ)_/

    Monday, December 11, 2017 6:02 PM