Tip

The fastest, safest XP Admin Console

mark.mills@desktop-assistance.com

With nine keyboard strokes (which should only take a couple of seconds for a seasoned admin) and a password, you can bring up all the tools you need on a day-to-day basis, including DNS, DHCP, User, Email, Group Policy and Exchange Srvr Management tools, all without being logged on as a domain admin.

Dependencies:

Choice.exe and sleep.exe need to be installed in your path statement. They can be found in the Windows 2000 or Windows 2003 resource kits.

The adminpak.msi from your server CD (or perferably the latest service pack) needs to be installed on your PC.

The current version of Exchange Administrative Tools (preferably from the latest Exchange service pack) needs to be installed on your PC.

Code: rem This script allows you to run Server and Exchange administrative tools quickly on your PC without logging out your user, and keeping your user out of the Domain Admins security group. Note: In order for this entire script to work you need to have the following installed on your PC.

  • Your adminpak.msi tools installed off the server CD.
  • The Exchange Administration Tools (only if you want to administer Exchange quickly)
  • The Choice.exe and Sleep.exe files. If you installed the resource kit for your server operating system, then make sure these two files are in your path statement.
  • See the comments below in each section where two files need to be copied and

    Requires Free Membership to View

  • renamed in a different directory.
     color 84 @echo off @echo :BEGIN CLS echo. echo. "What would you like to work on today master?" echo. echo. @echo off echo 1 = Users and Computers echo 2 = Exchange Users and Computers echo 3 = AD SItes and Services echo 4 = AD Domains and Trusts echo 5 = DNS echo 6 = DHCP echo 7 = Group Policy echo 8 = Exchange System Manager echo 9 = Cancel and Close CHOICE /N /C:123456789 PICK A NUMBER (1, 2, 3, 4, 5, 6, 7, 8, or 9)%1 REM - THE NEXT THREE
    LINES ARE DIRECTING USER DEPENDING UPON INPUT
    IF ERRORLEVEL ==9 GOTO NINE
    IF ERRORLEVEL ==8 GOTO EIGHT
    IF ERRORLEVEL ==7 GOTO SEVEN
    IF ERRORLEVEL ==6 GOTO SIX
    IF ERRORLEVEL ==5 GOTO FIVE
    IF ERRORLEVEL ==4 GOTO FOUR
    IF ERRORLEVEL ==3 GOTO THREE
    IF ERRORLEVEL ==2 GOTO TWO
    IF ERRORLEVEL ==1 GOTO ONE

    Option one:
    runas /user:Administrator "mmc C:WINDOWSsystem32dsa.msc"
    GOTO BEGIN

    Option two:
    Note: For option two to work you must have installed the Admin tools from Exchange server CD (or preferably the service pack) onto your workstation.
    The file "users and computers.msc" found at "C:Program FilesExchsrvrbinusers and computers.msc" needs to be copied to your C:WINDOWSsystem32 directory and renamed "dsaExch.msc" runas /user:Administrator "mmc C:WINDOWSsystem32dsaExch.msc"
    GOTO BEGIN

    Option three:
    runas /user:Administrator "mmc C:WINDOWSsystem32dssite.msc"
    GOTO BEGIN

    Option four:
    runas /user:Administrator "mmc C:WINDOWSsystem32domain.msc"
    GOTO BEGIN

    Option five:
    runas /user:Administrator "mmc C:WINDOWSsystem32dnsmgmt.msc"
    GOTO BEGIN

    Option six:
    runas /user:Administrator "mmc C:WINDOWSsystem32dhcpmgmt.msc"
    GOTO BEGIN

    Option seven:
    runas /user:Administrator "mmc C:WINDOWSsystem32gpmc.msc"
    GOTO BEGIN

    Option eight:
    Note: For this option to work you must have installed the Admin tools from Exchange server CD (or preferably the service pack).
    The file "Exchange System Manager.msc" found at "C:Program FilesExchsrvrbinExchange System Manager.msc" needs to be copied to your C:WINDOWSsystem32 directory and renamed "ESM.msc" runas /user:Administrator "mmc C:WINDOWSsystem32ESM.msc"
    GOTO BEGIN

    Option nine:
    cls
    color 07
    echo.
    echo.
    Echo. Thank you for letting me serve you Master, please come and see me again.
    echo.
    echo.
    sleep 2
    exit
    GOTO END
    :END

    Rating this tip below will let us know how useful it was to you. And if you have a Windows tip, timesaver or workaround to share, submit it to our tip contest. You could win the monthly prize.

This was first published in January 2007

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.