Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows XP Windows XP
Search Search
Search for:
Tech Support Guy > > >

MSC's and Command line switches.


(!)

StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
21-Mar-2007, 01:58 PM #1
MSC's and Command line switches.
I know on alot of msc's on a computer you can type in XXXX.msc /Computer=ComputerName and connect to a remote computer is there any way to get a list of what command line items you can do on this to configure it? I looked into mmc.exe and tried the /? and I tried that on the individual mscs as well with no success Searching the web has yielded me only a list of the mscs and what they do even thought i already know that.

Any thoughts?
Wolfeymole's Avatar
Member with 2,740 posts.
 
Join Date: Jun 2005
Location: West Yorkshire, England
Experience: Pretty good but never too old to learn.
21-Mar-2007, 02:04 PM #2
Have you been here Stumped?
StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
22-Mar-2007, 05:30 AM #3
Yeah I found the mmc but not anything on msc and supposedly the /? is a valid switch but I have yet to have it work on ANYTHING.

syntax I have tried is -

MMC /?
MMC C:\windows\system32\XXXX.msc /?
C:\Windows\system32\XXXX.msc /?

In all cases it either just pops open the msc without giving me help information or does nothing.
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,625 posts.
 
Join Date: Oct 2006
22-Mar-2007, 07:08 AM #4
Did you try PSTools?
StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
22-Mar-2007, 01:04 PM #5
I have used them in the past but I am failing to see how will they give me the commands for the mmc/msc's?
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,625 posts.
 
Join Date: Oct 2006
23-Mar-2007, 05:59 AM #6
Sorry I read too fast.
StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
17-Aug-2007, 10:20 AM #7
I know this is an old thread but I need this functionality.... BUMP
Squashman's Avatar
Trusted Advisor with 19,684 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
17-Aug-2007, 12:07 PM #8
Hey Stumpy. Can you give me an example of what you are trying to do. I am not quite understanding it.

Wouldn't you want to do what you are trying to accomplish with WMI?

I really don't see any other command line switches besides these.
http://technet2.microsoft.com/window....mspx?mfr=true
__________________
.
StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
17-Aug-2007, 07:38 PM #9
Yeah those aren't even close enough. I want to be able to open an MSC or MMC and have it open at a specific location. E.G. DSA.msc is ADUC GUI interface. when you open it it always opens at the last place you had it set. I want it so every time its opened it goes to a specific object/container. Also something like compmgmt.msc and have it open at the Application event log. Something that the interface should easily be able to perform if command line switches were put in place. Maybe theres some other utility out there that can do this I donno.
Squashman's Avatar
Trusted Advisor with 19,684 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
17-Aug-2007, 08:07 PM #10
I am going to quote Johnwill, "AutoIt works quite well for stuff like this".

I know he is going to come back and say I misquoted him.

I actually don't know if it will or not but it is worth a shot.
StumpedTechy's Avatar
Computer Specs
Member with 7,214 posts.
THREAD STARTER
 
Join Date: Jul 2004
Location: Central Florida
Experience: Advanced
20-Aug-2007, 05:08 AM #11
While I usually agree on whats a good tool I have 2 problems. I don't think auto its scripts can be passed information from a gui your working in to the auto-it script. Then the bigger problem is Auto-It isn't an approved tool in this organization so I can't use it.

The joys or working in large corporate america.
Frank4d's Avatar
Computer Specs
Trusted Advisor with 9,126 posts.
 
Join Date: Sep 2006
Location: So. California
20-Aug-2007, 07:07 AM #12
You can log onto a remote computer and control it using Netmeeting. No third party tools required.
Squashman's Avatar
Trusted Advisor with 19,684 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
20-Aug-2007, 12:38 PM #13
Quote:
Originally Posted by StumpedTechy
While I usually agree on whats a good tool I have 2 problems. I don't think auto its scripts can be passed information from a gui your working in to the auto-it script. Then the bigger problem is Auto-It isn't an approved tool in this organization so I can't use it.

The joys or working in large corporate america.
Yeah, where I work, we pretty much disregard that rule because they won't purchase any tools to do our job. So we started finding any free or open source apps to do our jobs.
MMJ's Avatar
MMJ MMJ is offline
Senior Member with 3,625 posts.
 
Join Date: Oct 2006
02-Oct-2007, 07:27 PM #14
I know this is an old thread but I was playing with MMC just know and came across some interesting info.

Code:
RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
        /user:<UserName> program

RUNAS [ [/noprofile | /profile] [/env] [/netonly] ]
        /smartcard [/user:<UserName>] program

   /noprofile        specifies that the user's profile should not be loaded.
                     This causes the application to load more quickly, but
                     can cause some applications to malfunction.
   /profile          specifies that the user's profile should be loaded.
                     This is the default.
   /env              to use current environment instead of user's.
   /netonly          use if the credentials specified are for remote
                     access only.
   /savecred         to use credentials previously saved by the user.
                     This option is not available on Windows XP Home Edition
                     and will be ignored.
   /smartcard        use if the credentials are to be supplied from a
                     smartcard.
   /user             <UserName> should be in form USER@DOMAIN or DOMAIN\USER
   program         command line for EXE.  See below for examples

Examples:
> runas /noprofile /user:mymachine\administrator cmd
> runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
> runas /env /user:user@domain.microsoft.com "notepad \"my file.txt\""

NOTE:  Enter user's password only when prompted.
NOTE:  USER@DOMAIN is not compatible with /netonly.
NOTE:  /profile is not compatible with /netonly.
Really helpful link >>> ms-its:C:\WINDOWS\help\ntcmds.chm::/runas.htm

I could be totally wrong because I don't have another comp to test it with. If that is the case than

Last edited by MMJ; 02-Oct-2007 at 07:33 PM..
lili1126's Avatar
lili1126 lili1126 is offline
Member with 34 posts.
 
Join Date: Oct 2007
04-Oct-2007, 11:56 AM #15
Quote:
Originally Posted by MMJ
Did you try PSTools?
Many many thanks....this PSTools is the Thing that i have been looking for long time ago...thanks again!
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2