Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello
My question has to do with Computer Management.
I know the command to open Computer Management to a specific computer is :
compmgmt.msc /computer:computer01Can someone tell me how to be able to be prompted for a computer name and
then have Computer Management open with that computer? I'm sure it's some
type of script or bat file, but I have no idea how to proceed.Basically, I'd like to be able to have the following happen:
From windows or command prompt, I run a program. It prompts me for a
computer name and then Computer Management opens with that computer.Thanks everyone!

Try this:
@echo off
echo Enter Computer name to connect to
set /p comp=for %%i in (%comp%) do (compmgmt.msc /computer:%%i)
That's pretty basic, and will just open the snap-in connected to that computer.
"Computer security." — Oxymoron

![]() |
Library error
|
[VB 6] Multiple inputs to...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |