Elavated command prompt not working

Home Forums Scripting DOS Command Shell Elavated command prompt not working

This topic contains 1 reply, has 2 voices, and was last updated by Avatar dalesnail 4 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Avatar

    Hi all

    I am trying automate the activation of windows from the command line and the command I have does work when logged onto the domain admin account

    When I am logged in as a standard domain user and run the command under the domain admin context the command fails

    I use echo %username% to verify it is under the admin context and it is

    Interestingly all the other commands in the batch file are running on the standard domain users account from an elavated command line without problem

    the proxy setting is correct and internet access is available

    I cant see why this does not work

    Thanks for reading


    Actually I found the answer basically you have to set the proxy specified within the command prompt session else the command prompt session does not know of the proxy server

    To activate windows the command session needed to be aware of the proxy server setting, I feed it the proxy server we are using and it worked.

    netsh winhttp set proxy yourproxy-name:port

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

You must be logged in to reply to this topic.