Link to home
Start Free TrialLog in
Avatar of batoli1234
batoli1234Flag for Denmark

asked on

Script to open cmd as a domain administrator

Hello,
is this posible?
I need a simple script, to open up a command prompt as a domain administrator. Preferably without being prompted for the password. The password should be coded in to the script.

Thanks,
Bat.
SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would be concerned that anyone who might find the script would be in like flint. I like better security than this, but then you may have a different view.
Correction to my prior post:
While logged on as domain admin, create a new shortcut to CMD
...should be:
While logged on as the user, create a new shortcut to CMD

The password is not saved in the shortcut itself. It is saved in the user's vault accessed via Credential Manager.
The asker should be aware of this.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Proper answers and advice provided