Home > Windows Server Tips > > XP recovery console story in working mode
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


XP recovery console story in working mode


mark.mills
01.29.2007
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Here is the formatting the way I indeed for the script: 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. ****IMPORTANT NOTES TO USER ** rem In order for this entire script to work, you need to have the following installed on your PC: 1- Your adminpak.msi tools installed off the server CD 2- The Exchange Administration Tools (only if you want to administer Exchange quickly) 3- The Choice.exe and Sleep.exe files - if you installed the resource kti for your server os then make sure these two files are in your path statement. 4- see the comments below in each section where two files need to be copied and 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

:one
runas /user:\Administrator "mmc C:\WINDOWS\system32\dsa.msc"
GOTO BEGIN

:two
rem     ****IMPORTANT NOTES TO USER FOR ITEM 2 **
rem     For option TWO to work you must  

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


have installed the Admin tools from Exchange server Cd (or preferabley the service pack) onto your workstation. rem The the file "users and computers.msc" found at "C:\Program Files\Exchsrvr\bin\users and computers.msc" rem needs to be copied to your C:\WINDOWS\system32 directory and renamed "dsaExch.msc" runas /user:\Administrator "mmc C:\WINDOWS\system32\dsaExch.msc" GOTO BEGIN :three runas /user:\Administrator "mmc C:\WINDOWS\system32\dssite.msc" GOTO BEGIN :four runas /user:\Administrator "mmc C:\WINDOWS\system32\domain.msc" GOTO BEGIN :five runas /user:\Administrator "mmc C:\WINDOWS\system32\dnsmgmt.msc" GOTO BEGIN :six runas /user:\Administrator "mmc C:\WINDOWS\system32\dhcpmgmt.msc" GOTO BEGIN :seven runas /user:\Administrator "mmc C:\WINDOWS\system32\gpmc.msc" GOTO BEGIN :eight rem ****IMPORTANT NOTES TO USER FOR ITEM 8 ** rem For this option to work you must have installed the Admin tools from Exchange server Cd (or preferabley the service pack) rem The the file "Exchange System Manager.msc" found at "C:\Program Files\Exchsrvr\bin\Exchange System Manager.msc" rem needs to be copied to your C:\WINDOWS\system32 directory and renamed "ESM.msc" runas /user:\Administrator "mmc C:\WINDOWS\system32\ESM.msc" GOTO BEGIN :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

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




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.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts