Re: Batch files and MSC
From: Miha Pihler [MVP] (mihap-news_at_atlantis.si)
Date: 10/19/05
- Next message: Paul Rasmussen: "Re: Batch files and MSC"
- Previous message: Joe Richards [MVP]: "Re: disable NULL BIND on your LDAP server"
- In reply to: mrturner_at_aapt.net.au: "Batch files and MSC"
- Next in thread: mrturner_at_aapt.net.au: "Re: Batch files and MSC"
- Reply: mrturner_at_aapt.net.au: "Re: Batch files and MSC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 19 Oct 2005 19:05:51 +0200
Hi,
You can't do this with runas command for security reasons.
If client computers have same password for their local administrators you
could start MMC and disk management tools on your PC and then use "Connect
to" option to switch between PCs remotely without the need to enter
password...
You could also use command line tools like diskpart for managing volumes,
partitions, . and use it in combination with pstools (free tools) from
sysinternals http://www.sysinternals.com/utilities/pstools.html where you
can actually also script in the password (but be aware of security
implications). You can also use pstools to start MMC as described in your
post without using runas. Again be aware of security implications.
-- Mike Microsoft MVP - Windows Security <mrturner@aapt.net.au> wrote in message news:1129701801.208833.119750@g49g2000cwa.googlegroups.com... > Is there anyone who might be able to tell me how I can incorporate and > password into a batch file that runs an MSC. Specifically, the Disk > Management MSC. As you can plainly see, I don;t write a lot of batch > files. The text is below. > > runas /user:Administrator "cmd /c c:\windows\system32\diskmgmt.msc" > > The aim of this is to allow me to change a drive letter on my end users > computers without having to type in the administrator password 130 > times. > > Any assistance would be great. > > Matt >
- Next message: Paul Rasmussen: "Re: Batch files and MSC"
- Previous message: Joe Richards [MVP]: "Re: disable NULL BIND on your LDAP server"
- In reply to: mrturner_at_aapt.net.au: "Batch files and MSC"
- Next in thread: mrturner_at_aapt.net.au: "Re: Batch files and MSC"
- Reply: mrturner_at_aapt.net.au: "Re: Batch files and MSC"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|