Runas issue

  • Thread starter Thread starter mgent
  • Start date Start date
M

mgent

Guest
Hi, I'm trying to setup a little bat file to load the diskmagement
system.
When I run it though I get the following message. I've got local admin
access. Sadly it doesn't work, dont' know where to turn either. I'm
also looking to get to run over the network, but I just want it to work
locally right now.


PHP code:
--------------------

runas /user:or\Installxp "C:\WINDOWS\SYSTEM32\diskmgmt.msc"

--------------------



PHP code:
--------------------
C:>runas /user:or\Installxp "C:\WINDOWS\SYSTEM32\diskmgmt.msc"
Enter the password for or\Installxp:
Attempting to start C:\WINDOWS\SYSTEM32\diskmgmt.msc as user "or\Installxp" ...
RUNAS ERROR: Unable to run - C:\WINDOWS\SYSTEM32\diskmgmt.msc
193: C:\WINDOWS\SYSTEM32\diskmgmt.msc is not a valid Win32 application.
--------------------


--
mgent
 
Re: Runas issue

mgent <mgent@ogilvyrenault.com> wrote in
news:mgent.3hez8d@no-mx.tabletquestions.com:

>
> Hi, I'm trying to setup a little bat file to load the diskmagement
> system.
> When I run it though I get the following message. I've got local
> admin access. Sadly it doesn't work, dont' know where to turn
> either. I'm also looking to get to run over the network, but I
> just want it to work locally right now.
>
>
> PHP code:
> --------------------
>
> runas /user:or\Installxp "C:\WINDOWS\SYSTEM32\diskmgmt.msc"
>
> --------------------
>
>
>
> PHP code:
> --------------------
> C:>runas /user:or\Installxp "C:\WINDOWS\SYSTEM32\diskmgmt.msc"
> Enter the password for or\Installxp:
> Attempting to start C:\WINDOWS\SYSTEM32\diskmgmt.msc as user
> "or\Installxp" ... RUNAS ERROR: Unable to run -
> C:\WINDOWS\SYSTEM32\diskmgmt.msc 193:
> C:\WINDOWS\SYSTEM32\diskmgmt.msc is not a valid Win32
> application.
> --------------------
>
>


Did you try:

runas /user:or\Installxp "C:\windows\system32\mmc C:\WINDOWS\SYSTEM32\diskmgmt.msc"

?
HTH,
John
 
Back
Top