Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have been trying to write a batch file for our enterprise. First in order to open anything with admin as a user you obviously use the runas from right clicking on the icon or whatever the case is. First off I cannot get the app to open from a batch file, and I have used a lot of different formats:
runas /profile /user:mydomain\account name.adm "compmgmt %windir%\system32\compmgmt.msc"
is what I tried when trying to "follow" the cmd prompts instructions from runas /?.
It will pop up asking for the password I enter it and nothing happens. Wondering how to fix that portion? Second question I have is there a way to write a batch so that it will call up this app and when asked for password it fills it in automatically for me from an internal command "if that makes sense?" I do not have a lot of experience with batch files or scripting in any sense just trying to learn. Hoping that maybe this will help in powershell later on as well. Any help is much appreciated.

wrong forum
try XP or programming
=====================================
Helping others achieve escape felicityM2

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |