Archive for the ‘Windows’ Category

Configuring Windows Updates on Windows 2003/2008 to benefit your organization

Sunday, March 11th, 2012

There are advantages to configuring Windows Updates to automatically install on workstations. However, having Windows updates set to automatically install can be catastrophic to the organization. The default Windows Update time is 3 AM, which can cause interference with backing up data, month and year end reporting, and users working late on a project.

Here is how to configure Windows Updates for Windows Server 2003/2008.

  1. Click on Server Manager on the task bar.
  2. Under Security Information click on Configure Updates.
  3. Select Change Settings
  4. Under Important Updates select  “Download updates but let me choose  whether to install them”
  5. If you have limited Internet bandwidth, you might want to select “Check for updates but let me choose whether to download and install them.” This will allow you to choose a good time when the organization is not placing a load on your Internet.
  6. Now, go to and sign up for security notifications. Businesses today rely heavily upon data housed within the Windows server environment. Can you afford not to know what could prove to be a liability to the live-blood of your business.

Restart Windows 2008 automatically with a batch (bat) file

Wednesday, January 18th, 2012

This is not difficult to perform and can be used for Windows Servers 2003 and 2008. A reason for performing this type of restart would be to restart the server on the weekend when no one is working. Be warned: Unassisted server restarts can experience undocumented features that may facilitate the necessity to return to work during your time off.

The basic command is: shutdown

The flag for restart is: /r

Now, if you have a “reason” screen you will need to add the reason. If the restart is planned you will use: p if the restart is unplanned you will use: u. To find a listing of the reasons for the restart open a command window and type: shutdown /?.

Here is an example: shutdown /r  /d p:4:1

Now let’s do this step-by-step.

Create the BAT file. Log into the server with Admnistrator rights and privelages. Open Windows explorer and right click on the directory you would like to create the .bat file and create a new text file. I will call this file restart_server.bat.

Notice the file is still type “Text Document?” In order to change that go to: Organize -> Folder and Search Options

Select the View tab and unselect the Hide extensions for known file types. Then press OK.

Rename the restart_server.bat.txt to just restart_server.bat. You will receive a warning message about the dangers of changing file extensions. Just click OK.

Right click on restart_server.bat and select edit.

Add the script shown above to the file and save the file. Be very careful here, because you now have a batch file that will restart the server if it is run.

Now to add the batch file to Task Manager.

Open Task Scheduler and select Create Basic Task…

On the first screen give the task a name and description. You must give it a name. I would recommend giving it a description as well, becuase you might not remember what it was 1 month or 1 year from now. Then click Next.

On the Trigger screen select when you would like the restart to run. I selected weekly for this example. Click Next

Select the day and time you want the task to run. I selected Saturday and 8:30:33 PM. Click Next.

On the Action screen ensure Start a program is selected. Click Next.

On the Start a script section browse to the batch file you just created. Click Next.

The Finish section will provide a summary of the task just created. Click Finish

The task is now schedule to run on Saturday night at 8:30:33 PM. Now comes the task of letting all users know that the server will restart every Saturday night.

To remove the task, click on the Task Scheduler Library. Highlight the task and delete it. Also remember to remove the batch file, because you do not want someone to run it.


Add local printer to networked application

Friday, October 21st, 2011

Times are changing, so people are very surprised when you have a printer that does not come with a network card. Why would anyone want to keep a printer that old? One reason is because they were build better and are conservative with ink cartridges. Here is how to keep that older printer and provide access to the printer in an application based on a server.

I have an HR DeskJet 895 connected to a Windows 2000 PC via a serial connection. I want to be able to use the printer for an application or general use on a Windows 2008 R2 server. The principles are very similar to adding a printer to CUPS and the older LPD protocol in Unix.

  • Make sure the printer is added to the Windows 2000 PC.
  • Go to Start -> Control Panel -> Add and Remove Programs
  • Select Add/Remove Windows Components
  • Ensure Other Network File and Print Services is checked and click on Details
  • Check Print Services for Unix and OK.
  • Click Next to install the component, then Finish.
  • Close out of the Add and Remove Programs application.
  • Under Services ensure the TCP/IP Print Server is started and set to automatically start at boot.
  • That is all there is to configuring the Windows 2000 PC
  • Now we move onto the Windows 2008 R2 server.
  • Open the Server Manager console. Start -> Administrative Tools -> Server Manager
  • Under Features Summary click Add Features.
  • Check LPR Port Monitor, Next, then Install. The process may take a bit, so be patient.
  • Once the install is finished click Close, then close the Server Manager window.
  • Open Start -> Control Panel -> Printers
  • Double click Add Printer
  • Select Add a Local Printer -> Next
  • Select Create a New Port, the Type of Port is LPR Port -> Next
  • The Name or address of server providing lpd: is the IP address of the PC to which the printer is connected. The Name of the print queue on that server: is the printer’s name on the PC to which the printer is connected, like HP DeskJet 895Cse. Click OK (if you receive an error message that the port already exists, check Use and existing port: and use the drop-down list to select your printer, then click Next.
  • Select the Manufacturer and Print driver for your printer, then click Next.
  • The Use the driver that is currently installed (recommended) should be selected, click Next
  • You can change the Printer name: to what every you would like, then click Next.
  • Printer Sharing: You can share the printer or choose not to share the printer, then click Next.
  • Click Print a test page to see if it works. If everything is fine you should see the job in the print queue on the PC the printer is connected and better yet the test page should print.
  • Click finish and enjoy the printer!