Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Admin login
#1

When I run in Group Policy(Login) it is asking users for administrative password on the domain.  Is there anyway to include this in the batch file?
Reply
#2

(06-15-2015 12:24 PM)derrellgore Wrote:  When I run in Group Policy(Login) it is asking users for administrative password on the domain.  Is there anyway to include this in the batch file?

You can use the runas command:
runas /user:ComputerName\Administrator /savecred "Full path to program's exe file"
Reply
#3

(06-15-2015 12:24 PM)derrellgore Wrote:  When I run in Group Policy(Login) it is asking users for administrative password on the domain.  Is there anyway to include this in the batch file?

That gave me part of what I needed

I am using Domain Admin instead of local admin.   This still left me with a password prompt but I think adding a second line with the following gets me past that.

echo password
Reply




Users browsing this thread: 1 Guest(s)