Computing.Net > Forums > Disk Operating System > Trying to yse Batch files as runas

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Trying to yse Batch files as runas

Reply to Message Icon

Name: jhazard112
Date: October 14, 2009 at 11:39:56 Pacific
OS: Windows XP
Subcategory: Software Problems
Tags: MS-DOS, Batch files, microsoft
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 15, 2009 at 06:56:26 Pacific
Reply:

wrong forum

try XP or programming


=====================================
Helping others achieve escape felicity

M2


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Trying to yse Batch files as runas

Dos Batch file for Dos FTP www.computing.net/answers/dos/dos-batch-file-for-dos-ftp/423.html

Passing Parameters between multiple batch files www.computing.net/answers/dos/passing-parameters-between-multiple-batch-files/776.html

pass a arg to a batch file www.computing.net/answers/dos/pass-a-arg-to-a-batch-file/6528.html