Archive for June 2013

Stop Java from installing other third party software

I don’t know about you, but I am tired of being tricked into installing additional third party software that I did not want.

Oracle’s Java is a prime example. It tries to get you to install their sponsors’ applications (Ask Toolbar, Yahoo Toolbar, McAfee,  Chrome, etc.) whenever you click to install the newest Java update. Yes, there’s a window that pops up allowing you to UNcheck those boxes, but come on … leave them unchecked by default, ad then let us decide if we want to install them.

image

I finally discovered a solution – there are registry settings that will block ANY of these sponsored applications from installing! I will give Oracle kudos for at least providing these registry settings, but it certainly is a hidden secret!

image

To make things easy, I put the two registry settings into a text file that you can download and install.

Please note that the download file has a .txt suffix, which will need to be changed to .reg before installing.

  1. Download file to your computer: disable-java-sponsors.txt
  2. Rename file to disable-java-sponsors.reg
  3. Double click on the file and it will update your Windows registry
    image

If you want to test that it really works:

  1. Uninstall your current version of Java
  2. Go to the Java web site and select to install it again.
  3. Voila, the sponsored application window doesn’t even appear!

For those with a Windows server, you can use group policy to implement this for all workstations!

Scheduling the WSUS Cleanup Wizard

I manage several SBS 2008 and SBS 2011 servers. One of the key maintenance issue is the size of the WSUS database. There are plenty of posts from people bemoaning the fact that suddenly the WSUS Content folder has grown to over 20gb (or more)!

WSUS provides an easy way to run the wizard manually. But doing this requires one to log into the server, and start up the wizard. Why do that, when you can schedule the wizard to run on a weekly basis?

Kudos to my good friend and fellow MVP’er, Kevin Royalty, for this information.

STEP 1 – Run the WSUS Cleanup Wizard manually

Before scheduling the wizard to run automatically, it is important to run the wizard manually first, especially if it has not been run in a long time. Do not be concerned if the wizard takes hours (literally) to run the first time. My fellow MVP’er, Philip Elder, blogged that he had one server required 36 hours to do the initial cleanup!!!

Review  my post for running the wizard manually.

image   image

 

STEP 2 – Create the WSUS Cleanup Batch file

  1. Go to the Codeplex site and download the WSUS Cleanup v2 tool (zip file)
    image     image
  2. Extract the files to your desired folder (C:\Scripts in my case). Three files are extracted.
    image     image
  3. You then need to create your own batch script/command, and documentation to do that is available from the Codeplex site
    – OR –
    Just download my script (WSUSCleanup.txt) and save it to your Scripts directory (be sure to rename it from WSUSCleanup.txt to WSUSCleanup.cmd)
    image

 

STEP 3 –  Schedule to run the batch file automatically

The only thing left is to schedule the task to run on a regular basis (perhaps weekly on Sunday mornings).

  1. Click Start –> Administrative Tools –> Task Scheduler
  2. Click Create Basic Task… from the right hand frame
  3. Type in a name (for example Weekly WSUS Cleanup)
  4. Click to run it weekly
  5. Click to run it every Sunday, and set your time (for example 9:00am)
  6. Click to ‘Start a program’
  7. Browse and locate your script (again, as a reminder, if you downloaded my script, be sure to rename the suffix from .txt to .cmd)
  8. Click to select (enable) the ‘Open the Properties dialog box …’ option, then click Finish.
  9. Click to select (enable) the ‘Run whether user is logged on or not’ option, then click OK
  10. You will be prompted to enter the appropriate user account information for running this task.
  11. I would suggest running the task immediately after creating it and monitor to make sure it runs successfully.
    image

Installing Network Printer to Windows Server 2012 Essentials

These are my abbreviated notes on setting up a network printer on W2012E, with both 32-bit and 64-bit drivers installed. My thanks to a fellow MVP’er, Robert Pearman, who did the real work and has it fully documented on his site (click here).

All steps take place on the Windows Server 2012 Essentials console. In my case, W2012E is running in a guest VM on a Windows Server 2012 Standard Hyper-V parent. I will be installing drivers for an HP LaserJet 4100 printer.

Section 1 – Prerequisites

  1. Go to your vendor’s web site and download the appropriate x86 and x64 print drivers. For my needs, I downloaded the drivers for Windows 7 (32bit) and Windows 2012 (64 bit).
  2. Next, extract the driver files to subfolders. In my case, the HP files I downloaded are self-extracting files. But be sure you uncheck the option to run the install immediately after extracting the files.
  3. Finally, before proceeding, make sure you know the IP address of your network printer.

Section 2 – Add the Network Printer

  1. Go to Control Panel –> View Devices and Printers (under Hardware)
  2. Click on Add a Printer. It will scan for new printers, and we should expect that it will not find any. 
  3. Click on The printer that I want isn’t listed link.
  4. On the next screen, click on the Add a local or network printer as an administrator link.
  5. The scan will run again, and (again) we will click on The printer that I want isn’t listed link.
  6. Select the Add a printer using a TCP/IP address or hostname option, then click Next.    
  7. On the next screen, enter the printer’s IP address in the Hostname or IP address field, and click Next.
    image
  8. Wait while Windows looks for the printer. If the printer has a built in network adapter, you should see an appropriate Printer Class Driver selected.
  9. However, in my case, the Laserjet 4100 is connected to the network via a D-Link print server adapter. Windows lists it as a generic network port and ask that I confirm that I had entered the correct IP address. Let’s click Next and it will rescan that IP address again.
  10. This time it will ask me to identify the type of printer. I scroll through and locate the HP Laserjet 4100 Class Driver
  11. Be sure to select Do not share this printer for now and click Next. We can share the printer later on.
  12. Press Finish.

Section 3 – Install the required Print Drivers

  1. Open up the Devices and Printers window, select your printer, and then click on Print server properties
  2. Click on the Drivers tab, and then click on Change Driver Settings. The window will refresh.
    == Install the x64 (64 bit) print driver ==
  3. Select the Printer we are installing, and then click Add.
  4. This will start the Add Printer Driver Wizard. Click Next.
  5. Select the x64 box (leaving the x86 box unchecked) and click Next
  6. Click Have Disk… and then click Browse… and locate the x64 print driver folder. For this HP printer, there was a list of .inf files available I followed Robert’s suggestion, and selected the first one in the list (immediately below the Drivers folder)
  7. I then select the HP Universal Printing PCL 6 driver, click Next and then Finish.
  8. But wait, we still have to install the 32 bit driver in a similar fashion!
    === Install the x85 (32-bit) print driver ===
  9. So repeat steps 3-7, but check the x86 box and install the x86 driver.

Section 4 – Change the Selected Print Drivers

  1. Return back to the Devices and Printers window
  2. Double click on your printer, and then double click on Customize your printer
  3. Click on the Advanced tab, and change the print driver to the one we just installed.
  4. If you wish, you can also click on the Sharing tab, and make the printer available.

Block IE10 from Installing

This is from the “wish I knew about this sooner…” department.

Microsoft released earlier this year the Internet Explorer 10 Blocker Toolkit for Windows (x86 and x64) and Windows 2008 R2 SP1. This patch does not pertain to networks that are running an update management tool, such as WSUS, that provides the ability to block IE10 from being rolled out.

For all other workstations, you can download and run this tool manually from each workstation. The tool is a .EXE file that contains three files to be extracted.

  1. Create or identify a temp folder to be used (e.g. c:\temp)
  2. Download and run the IE10 Blocker Toolkit.
  3. Click Yes and then select the temp folder from step 1 to extract the three files
    image
  4. Open up an elevated command prompt, and use the CD command to switch to the temp folder
  5. Type ie10_blocker.cmd  /B and press Enter to set the block for IE10.
    image
  6. Check that you receive “The operation completed successfully” message, and then close the command prompt window.

As a reminder, IE10 is only pushed out for Windows 7/2008R2 and above. So, there’s no need to run this command script on Windows XP or Vista or Windows Server 2003.

BSOD Utilities

Got a Blue Screen of Death? Want to know what caused it, so you can try to fix it?

Microsoft offers tools for reading dump files (KB 312563). But I have to admit, just trying to read through the steps necessary gives me a headache.

If you’re like me, you want a quick and easy process. If so, check out either of these two free utilities:

Both programs support Windows 32bit and 64bit operating systems, from XP through Win8, and Windows Servers (2003, 2008, 2012). Both versions come with a full install/uninstall executable.

I prefer NirSoft as it includes a zipped file version, that does not require any installation. So, I can access it directly from a USB drive or SkyDrive account. I can also use NirSoft to view mini-dump files of networked computers.

Resplendence free version is for home use only. Their PRO version ($35US) is required for business use, and to view dump files of networked computers.

Both companies offer other utilities which you may find useful for your environment.

image     image

63 Free Microsoft eBooks!

Eric LigmanJust in time for summer … Eric Ligman, Microsoft Sales Excellence Manager, is making available 63 (count ‘em) Microsoft eBooks absolutely free – no strings, no time bombs, no tricks.

These eBooks cover a wide gamut: from Office 365 to Windows Azure, from Windows Server to Visual Studio., from SharePoint to Web Development to programming Windows 8  apps.

Click here to view and select e-Books for downloading!

Eric said that last year, when he made a similar offer, over 1 million eBooks were downloaded.

Enjoy.

Free Hyper-V 2012 Backup with Altaro

People are quickly discovering the benefits of implementing a Hyper-V server solution into their business. If you have been tentative about jumping, do so today!

I had an opportunity today to start exploring some of the 3rd party software solutions available for backing up Windows Server 2012 Hyper-V virtual machines (VMs). As I asked around for recommendations, several names kept coming up: Altaro, Storagecraft, Veeam.

image

As I was already familiar with Storagecraft and their ShadowProtect product, I decided to take a look at Altaro, primarily because I kept reading reviews about how easy it was to install and run, and because they offer a free version that will backup two VMs, forever, for FREE.

I like “easy” and “free”, and in less than ten minutes I had Altaro installed and backups scheduled and running. I also like the fact that these are hot backups, allowing you to back up running VMs without stopping them!

  • Go ahead and download the free edition here (installation file is less than 20MB in size). Installation was a breeze — five quick clicks of a mouse is all it takes! NOTE: you install Altaro on the Hyper-V host (parent), not the guest VMs.
  • Altaro supports Windows 2012 , and even creates some helpful tiles!
    image
  • Start up Altaro’s Management console, and it will automatically start scanning for any and all of your virtual machines.
  • All that was left was to select which VMs I wanted to backup, and then select an appropriate drive to store the backups. I had a 2TB USB drive available.
    Note: Altaro does not delete any existing files or folders on the selected backup drive. It creates a folder labeled ‘AltaroHyperVBackup’.
  • Here’s a screenshot of their dashboard.
    image

 

The free version, as I mentioned earlier, will backup two VMs forever. The free version does not include File Level Restore, and it will only allow you to restore backups made during the most recent four weeks.

For $345, you can back up up to 5 VMs, and for $445 you can back up an unlimited number of VMs.

View a comparison of the Altaro editions.