5 replies
by ntoz
You should utilize the RUNAS commmand to attempt what your doing, its a new feature of Windows 2000.
To create a shortcut using runas command parameters
Right-click the desktop, point to New, and then click Shortcut.
In Type the location ofthe item, type runas and the command parameters you wish to use. See Examples.
Click Next, type a name for the shortcut, and then click Finish.
Examples
To create a shortcut for a command prompt window with administrator credentials, in step2 type:
runas /user:machine name\administrator cmd
where machine name is the name of your computer.
The title bar of this window will say "cmd (running as machine name\administrator)" to indicate the credentials under which it is running.To create a shortcut for a Computer Management window with administrator credentials, in step 2 type:
runas /user:machine name\administrator "mmc %windir%\system32\compmgmt.msc"
where machine name is the name of your computer. Be sure to include the quotation marks.
The Computer Management window provides no indication of the credentials under which it is running. This could cause confusion if you start two or more Computer Management windows in different security contexts.
On Windows 2000 Server, to create a shortcut to Active Directory Users and Computers with domain administrator credentials, in step 2 type:
runas /user:domain name\administrator "mmc %windir%\system32\dsa.msc"
by ntoz
The Active Directory Users and Computers window provides no indication of the credentials under which it is running. This could cause confusion if you start two or more Active Directory Users and Computers windows in different security contexts.
To create a shortcut to a program that will administer a server in another forest, in step 2 type:
runas /netonly /user:domain\username command
where domain\username is a user with enough permissions to administer the server, and command is a command prompt window, program, saved MMC console, or Control Panel item. For example, to create a shortcut for Active Directory Users and Computers, in step 2 type:
runas /netonly /user:domain\username "mmc.exe dsa.msc"
Notes
When you double-click the shortcut, you will be prompted for the password of the user account specified in step 2. Then the program or file will run with the permissions granted to that user. If the user account is Administrator or a member of the Administrators group, you will be able to do administrative tasks in this window.
The runas command allows you to run programs (*.exe), saved MMC consoles (*.msc), and Control Panel items as an administrator while you are logged on to your computer as a member of another group, such as the Users or Power Users group.
by ntoz
The runas command can be used to start any program, MMC console, or Control Panel item as long as the following requirements are met:
You provide the appropriate user account and password information.
The user account has the ability to log on to the computer.
The program, MMC console, or Control Panel item is available on the system and to the user account.
The runas command is usually used to run programs as an administrator, although it is not limited to administrator accounts. Any user with multiple accounts can use runas to run a program, MMC console, or Control Panel item with alternate credentials.
Some applications, such as Windows Explorer, the Printers folder, and desktop items, are launched indirectly by Windows 2000. These applications cannot be started with the runas command.
If the runas command fails, the RunAs service may not be running.
Your problem might be a bug in Windows 2000 as this used to work under NT 4.0
Pete
by natecasp
by natecasp
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending