Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


April 1999

Reader to Reader - April 1999

RSS
Subscribe to Windows IT Pro | See More Resource Kit Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Download the Code Here
Download the Code Here
Download the Code Here

 See corrections to this article

Resource Kit's Service Installation Wizard
The Microsoft Windows NT Server 4.0 Resource Kit's Service Installation Wizard, srvinstw.exe, is a utility that provides an easy method for installing or deleting services and device drivers on local and remote computers. However, you need to know a couple of tricks to use the utility for installing services on remote computers.

You need domain administrator privileges to run srvinstw.exe. In addition, all files and directory paths must be relative to the target computer. After you install the utility, you simply follow the steps in the dialog boxes to install the service. However, you need to pay particular attention to the fourth and sixth dialog boxes.

In the fourth dialog box, you receive the message Please enter the full path to the executable file. The path and file must be a local drive on the system. This message tells you that you need to specify a full path to the service's executable file on the target computer rather than on the computer you're using for the installation. For example, to install the Remote Console Server service, you need to enter

c:\winnt\system32\rconsvc.exe

In the sixth dialog box, you receive the message Please select the security credentials that the service will run under. 1) Install a service as local system account; 2) Account with administrator privilege. This message tells you to configure the service to run as a local system account or to specify an existing account in your Domain Admins group. If you specify a Domain Admins account, the account will have the Logon as a service right and will be part of the local Administrator group. Thus, the service can access resources on other computers in the domain. (In the case of Remote Console Server, you don't need this access; thus, you can choose the first option and not select the Allow Service to interact with Desktop check box.)

When the installation completes, you receive the message The service was successfully installed. You might think you can start the service. However, the Service Installation Wizard doesn't automatically copy the necessary files to the target computer. You must manually copy the essential files to the directory you specified in the fourth dialog box. For example, to run the Remote Console Server service you need to copy all the files under the resource kit's Rconsole directory (i.e., rconsvc.exe, rcruncmd.exe, rcongrp.exe, rconmode.exe, rconmsg.dll, and rconstat.exe) to the target computer.

To copy the files, you can map a share on the target computer as your local drive and copy the files to the target computer. If the target computer doesn't have a share, you can use the resource kit Rmtshare command to create one remotely.

To start Remote Console Server remotely, go to a command prompt and type

netsvc "Remote Console Server" \\TargetComputer /start

Then, you can remotely access an NT server by typing

rclient \\TargetComputer 

Mapping Shared Folders
I'm deploying policies on my company's Windows NT network, and I'm having a problem mapping folders for users. I created a standard Windows 95 desktop environment with some shortcuts to the shared folders on my server. Then, I modified the Default User\Shell\Custom Folder\Custom Desktop Icons policy with the Uniform Naming Convention (UNC) path to the folder in which I saved the desktop icons. Everyone has a standard desktop and can easily open the files through the shortcut folders. However, when I try to save a file, the shortcut folder doesn't show up in the save pop-up window.

I know I can use the script to map a drive, but I don't want to give up. I also don't want to tell my users to use NT Explorer to find the network folders, because the shortcut folders on the users' desktops are more convenient.


Time Synchronization
Many companies use multiple servers, and each server (and workstation) has a different time on its clock. To fix this problem in my organization, I added the following entry to every user's logon script (including the administrator account): net time \\servername /set /yes. This command synchronizes each clock with one of the main domain server's clocks.


ERDs and RDISK
If you're like some administrators, updating (or creating) Windows NT Emergency Repair Disks (ERDs) occurs to you only when you need to use one. Most administrators who fail to create or update ERDs do so out of carelessness rather than because they know of another way to repair NT. You'll be interested to know that you can repair NT without an ERD. (For information about ERDs, see Michael D. Reilly, "The Emergency Repair Disk," January 1997.)

When you run the rdisk /s command, the \winnt\system\repair directory receives an updated Registry backup. The system uses these files when you attempt a repair installation of NT and you tell the installer you don't have an ERD. Thus, you can perform a complete repair of NT without ERDs if your repair directory is up-to-date.

To ensure that your repair directory is up-to-date, use a simple AT command such as AT 00:00 /every:su rdisk /s-. (The hyphen after the /s switch bypasses the rdisk prompt to insert a disk.) I typically schedule rdisk to run only on Sundays, so I can test new configurations all week before I commit them.

If you have a hard disk failure, an updated repair directory is useless and you'll need an ERD. Because an ERD is just an NT-formatted disk that contains the repair directory's contents, you can easily create one at any time if you store the repair directory centrally.

Select a server or workstation in your domain. (I'll call it the REPAIR server.) Configure the Scheduler service to start automatically and to run with a newly created account. This account (which I'll call SCHEDULE) must be a member of the Domain Admins group. Create a directory (e.g., RDISKPLUS) on the REPAIR server, and copy rdiskplus.bat into it. (Listing 2 contains rdiskplus.bat.) Create a text file (e.g., serverlist.txt) that contains the names of all your servers, with one server on each line. Schedule RDISKPLUS on the REPAIR server with the following command

AT 00:10 /EVERY:SU CMD /C "C:\RDISKPLUS\RDISKPLUS.BAT >C:\RDISKPLUS\RDISKPLUS.LOG 2>&1"

Then, on every server in the serverlist.txt file, schedule the rdisk /s- command. If you've already configured the Scheduler service to start automatically, you can simply type

FOR /F "DELIMS=*" %I IN ('TYPE SERVERLIST.TXT') DO AT \\%I 00:00 /EVERY:SU RDISK /S-

For each of your servers, rdiskplus.bat creates a directory (named after the server) under C:\RDISKPLUS that contains the entire repair directory. Then, you can create an ERD at any time by formatting a disk and copying the server's directory contents onto it.


More About Logging Share Permissions
In Reader to Reader: "Logging Share Permissions" (October 1998), Douglas L. Gillett's batch file has a minor flaw—it fails to clean up the old log files automatically. You can add a For command to the end of the script (as you can see at Callout A in Listing 3) to fix this problem. This For command is useful if you run processes that create files every time they run. The skip number specifies how many files to retain (the script retains only the newest files, and discards the others).

End of Article

   Previous  1  [2]  Next  


Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Corrections to this Article:

  • "Command Prompt During NT Installation" contains an error in the description of how to get a command prompt during Windows NT installation. Instead of selecting \winnt\system32\cmd.exe and clicking Open, as the article states, you must right-click cmd.exe and select Open from the pop-up menu. We apologize for any inconvenience these errors might have caused.
Top Viewed ArticlesView all articles
What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

WinInfo Short Takes: 4th of July Special Edition

An often irreverent look at some of the week's other news, including a shortened work week thanks to the 4th of July, expensive Windows 7 pricing, Bing's modest monthly gains, IE 8 heading to work, Steve Jobs back at Apple, and so much more ...

How can I stop and start services from the command line?

...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events WinConnections and Microsoft® Exchange Connections

Virtualization Management

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing