ASDM on Windows 10: ‘Cannot find Javaw.exe?’

KB ID 0001478

Problem

Windows 10 machine, (with Latest Java installed), while attempting to launch the ASDM you see;

Windows cannot find ‘javaw.exe’. Make sure you typed the name correctly, and then try again.

Solution

I should have fixed this a lot quicker than I did, because the error message was a lot more descriptive in older versions of Windows and the ASDM! This is the same problem seen on Windows 8.

You still need to install the x32 bit versions of Java! once you do it will work fine.

Related Articles, References, Credits, or External Links

NA

Microsoft Autoroute Install Errors (Windows 8)

KB ID 0000686 

Problem

I only use Autoroute once a month, (when I put my mileage in at work!). So this month I had a head slap when it was one of the bits of software I had forgotten to install on my freshly rebuilt laptop. So I fired up the setup for Autoroute 2007 and it failed.

So I moaned and was furnished with a shiny new copy of Autoroute 2011. But when I tried to install it, this happened.

Microsoft Autoroute 2011 Setup One of the prerequisite components failed to install. Setup will now exit.

Solution

It installed fine on my colleagues laptop so the problem had to be something to do with me. I did manage to get the product installed by running the data.msi file and installing the product that way, this got me further but then I got this error,

Microsoft Autoroute A licensing initialisation error has occurred. Please contact customer support for more assistance. Error 0x80070005

I got round that by installing in compatability mode, and running the install from command line admin mode. (Press Windows Key+X).

When I finally got the program installed, it would launch then crash. I installed it in a virtual machine and it worked faultlessly? I unistalled the product and compared my installed programs with the ones on my working virtual machine, I found that the C++ Distributable and the Microsoft Access database engine 2010 had different sizes? These were the prerequisites that Autoroute wanted to install at the very beginning.

So I unistalled everything ad tried to install the prerequisites manually, and then I located an issue,

You cannot install the 32 bit version of Microsoft Access Database Engine 2010 because you currently have 64-bit Office products installed.

So (begrudgingly) I removed x64 office and installed x86 Office.

Then the Access Database Engine Installed but the C++ wouldn’t! Because a newer version was installed.

A newer version of Microsoft Visual C++ 2010 Redistributable has been detected on the machine.

Microsoft could you please make this software MORE incompatible with MORE bits of your OWN software please, I’ve spent a large chunk of my morning trying to fix this now!

Fix the problem and get it installed.

1. Make sure you are running an x32 bit version of Office. (see above)

2. Press Windows Key+R > appwiz.cpl {enter}, Uninstall ALL the following if present,

Microsoft Office Access Database Engine. Microsoft Autoroute 2011. ALL Instanced off C++ Redistributable (all the x86 ones and All the x64 ones).

3. Reinstall Autoroute 2011.

4. Install the x64 bit C++ Redistributable from here.

5. It should now work fine.

 

Related Articles, References, Credits, or External Links

NA

Windows – Create ‘Multiple Version’ Install Media(x32 and x64 bit)

KB ID 0000164 

Problem

When Microsoft released Windows Vista and Server 2008 they had the brilliant Idea of putting all the versions you would require in the same install media. With Windows 7 they have changed their approach, and the install media is specific to the version that is going to be installed. Well actually that’s not true the version is decided by a file in the installation media called ei.cfg and all versions are STILL in there.

What they still do, is have their x32 bit and their x64 bit Operating Systems on different media. If you do a lot of installs you might want them all on one DVD. Below are two walkthroughs, the first shows you how to make an x32 and x64 bit install DVD with all the versions* on it, the second shows you how to unlock your exiting install media so that all the versions on it are accessible.

Create an x32 and x64 bit Windows 7 Multi Install Media DVD

Create an x32 or x64 bit Windows 7 Multi Install DVD.

*When I say “all versions” I’m NOT including Windows 7 Enterprise, that comes on separate media, and is just for open value subscription customers, or customers with software assurance.

Solution

Create an x32 AND x64 bit Windows 7 Multi Install Media DVD

1. Download your Windows 7 ISO Images (x32 and x64), from VLSC, Technet, or MSDN etc.

2. Make two Directories on your Machine’s C: Drive called Master and Images.

3. Using 7Zip open the x32 bit ISO file you have downloaded, and extract the sourcesinstall.wim file to the C:Images folder.

4. Then rename the file you just extracted to x32.wim.

4. Using 7Zip open the x64 bit ISO file you have downloaded, and extract the sourcesinstall.wim file to the C:Images folder.

5. Then rename the file you just extracted to x64.wim.

5. Install the WAIK on your machine (instructions here).

6. Check the x32 image for the “Image Index” (these are the numbers of all the Windows versions in this image), Yours will probably be identical, but you may have different media so check! Launch the “Deployment Tools Command Prompt”

To check the image index, execute the following command;

[box]
imagex /info C:Imagesx32.wim
[/box]

You can see (above) this image has five images within it, scroll down and you can see them.

Mine is structured as follows;

Image 1 – Starter Edition
Image 2 – Home Basic
Image 3 – Home Premium
Image 4 – Professional
Image 5 – Ultimate

7. Create a new image from all these Windows 7 x32 images, by executing the following commands;

[box]

IMAGEX /Export C:Imagesx32.wim 1 C:ImagesInstall.wim “Windows 7 Starter x32”
IMAGEX /Export C:Imagesx32.wim 2 C:ImagesInstall.wim “Windows 7 Home Basic x32”

IMAGEX /Export C:Imagesx32.wim 3 C:ImagesInstall.wim “Windows 7 Home Premium x32”

IMAGEX /Export C:Imagesx32.wim 4 C:ImagesInstall.wim “Windows 7 Professional x32”

IMAGEX /Export C:Imagesx32.wim 5 C:ImagesInstall.wim “Windows 7 Ultimate x32”

[/box]

8. Now check the x64 image (Note: There is NO x64 bit Starter Edition).

To check the image index, execute the following command;

[box]
imagex /info C:Imagesx64.wim
[/box]

You can see (above) this image has four images within it, scroll down and you can see them.

Mine is structured as follows;

Image 1 – Home Basic
Image 2 – Home Premium
Image 3 – Professional
Image 4 – Ultimate

9. Create a new image from all these Windows 7 x64 images, by executing the following commands;

[box]
IMAGEX /Export C:Imagesx64.wim 1 C:ImagesInstall.wim “Windows 7 Home Basic x64”

IMAGEX /Export C:Imagesx64.wim 2 C:ImagesInstall.wim “Windows 7 Home Premium x64”

IMAGEX /Export C:Imagesx64.wim 3 C:ImagesInstall.wim “Windows 7 Professional x64”

IMAGEX /Export C:Imagesx64.wim 4 C:ImagesInstall.wim “Windows 7 Ultimate x64”
[/box]

10. Extract the contents of one (I used the x32 bit one) of your ISO files to the C:Master Directory.

11. Delete the C:MasterSourcesei.cfg file.

12. Copy the C:ImagesInstall.wim to c:MasterSources (Select Yes to Overwrite).

13. Create a new ISO file, by executing the following command;

[box]
oscdimg.exe -lMulti-Windows-7 -m -u2 -b”C:MasterBootetfsboot.com” C:Master C:Multi-Windows-7.ISO
[/box]

14. Test your new install media (Note: if you want to Burn a DVD from this ISO use ImgBurn (it’s free).

Create an x32 OR x64 bit Windows 7 Multi Install DVD.

So if you have the installation media in .iso format you can change it so you can see the other install versions. On THIS site there are some utilities to help you – the “eicfg removal utility” removes the pointer to the file (which means you can install any version by picking it from the install menu (like you did with Windows Vista). Or you can swap your version with the second tool “Windows 7 iso image edition switcher”. I deploy a lot of machines so the former is a much better option for me.

1. Drop the windows 7 .iso file somewhere you can get at it (i.e. on your desktop).

2. Download eicfg removal utility, Extract it and run the eicfg_remover.exe

3. Browse to your .iso file > Open.

4. Now if you boot with this media you will get a choice of which version you want to install.

 

Related Articles, References, Credits, or External Links

Original article written 02/01/10

Windows – Print Spooler Keeps Stopping

KB ID 0000751

Problem

This is quite a common problem, in MOST cases the problem is caused by a print driver that Windows does not like.

But my printers are delivered via login script or group policy?

If that is the case then you need to exempt both your user and the computer from this method of printer deployment while you are troubleshooting.

Solution

1. As we cant be sure what printer/driver is causing the problem, we need to remove them ALL > Devices and Printers > Select each one in turn, and remove (Note: Keep one for the next step, but remember to delete that also when you have completed the next step).

2. Select your last printer > Print Server properties > Drivers > Remove them ALL.

3. Launch ‘appwiz.cpl’ and ensure there is no printing software installed, if there is uninstall it.

4. Launch ‘services.msc’ > Locate the Print Spooler service and ensure it is set to log on as ‘Local System’.

Note: As shown, from here you can manually start the service, but for now we will leave it as it is.

x

5. Open Windows Explorer and navigate to;

[box]
C:WindowsSystem32SpooldriversW32X86[/box]

Delete the contents of this folder.

6. If your machine is Windows x64 bit also navigate to;

[box]
C:WindowsSystem32Spooldriversx64[/box]

Delete the contents of this folder.

How to Tell if Windows is 32 or 64 bit

7. Navigate to;

[box]
C:WindowsSystem32SpoolPRINTERS[/box]

Delete the contents of this folder.

8. Start > In the search/run box type ‘regedit’ > navigate to;

[box]

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print > Environment > Windows NT x86

[/box]

Here there should be two sub keys called Drivers and Print Processors, if there are any more delete them.

Warning: You might want to right click and ‘Export’ the keys in case anything explodes, you can simply double click the ‘exported’ file to merge it back in.

9. If your machine is running x64 bit Windows navigate to;

[box]

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print > Environment > Windows x64

[/box]

How to Tell if Windows is 32 or 64 bit

Here there should be two sub keys called Drivers and Print Processors, if there are any more delete them.

Warning: You might want to right click and ‘Export’ the keys in case anything explodes, you can simply double click the ‘exported’ file to merge it back in.

10. Now navigate to;

[box]

HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Print > Monitors

[/box]

Here delete ALL Keys Except,

AppleTalk Printing Devices (This may not be present)
BJ Language Monitor (This may not be present)
PJL Language Monitor (This may not be present)
Local Port
LPR Port  (This may not be present)

Microsoft Document Imaging Writer Monitor (This may not be present)
Microsoft Shared Fax Monitor
Standard TCP/IP Port
USB Monitor
WSD Port

11. At this point, physically unplug all printers from the PC, (make sure no scripts or group policies are going to attempt to reinstall the printers). Then reboot the machine.

12. When the reboot is complete, make sure the Print Spooler service stays up without error.

13. Get the latest drivers for your printer(s) and reinstall them one by one, (I would say after each printer install, let the system run until you trust it, before installing the next printer).

Print Spooler Fails when attempting to print from Internet Explorer.

If this problem only manifests itself when printing from IE, then go to Internet options > Advanced > Reset.

12. If that does not rectify the problem, make sure you are running the latest version of Adobe flash (or for troubleshooting remove the current version).

Related Articles, References, Credits, or External Links

NA

Windows Printer – Setting up an IP Network Printer

KB ID 0000624

Problem

Originally I wrote this back for Windows 7, but I have now updated it for Windows 10. How to add an IP network printer.

Setup a Windows Printer

1. If you don’t have a CD/DVD that came with the printer, then get onto the manufacturers website and download the correct drivers for your printer, you will need to know if you require 32 or 64 bit drivers.

How to Tell if Windows is 32 or 64 bit

2. Start > Devices and Printers.

3. Add Printer.

4. Choose “Add a local printer“. I only ever choose the network printer option if I’m connecting to a printer by name in the win7printer name format, or I’m going to browse Active Directory for a printer.

5. Select a new port > Set the type of port to “Standard TCP/IP Port” > Next.

6. Enter the IP address of the printer. Either you have set this up manually, or you have got it from a configuration page that you printed off the printer > Next.

7. Have Disk.

8. Navigate to your drivers.

9. Some drivers are for multiple printer types, select yours. Note: It’s not unusual for multiple manufacturers models to be listed here > Next.

10. Give the printer a name > Next.

11. Choose whether you want to share the printer or not > Next.

Test Your Windows Printer

12. Print a test page.

13. There’s your new printer setup and ready (the green tick denotes it’s the default printer).

Note: The Default Printer, is where your print jobs are sent if you have multiple printers installed, and you simply hit the print button in an application.

Related Articles, References, Credits, or External Links

NA

Outlook Install Error ‘Outlook may not be installed with a newer version of Outlook’

KB ID 0000665 

Problem

I saw this whilst installing Office on a machine today.

Solution

1. In my case I had just removed Office 2010 x64, (I needed the x32 bit version for some PST/MAPI stuff). So I knew that there was not a version of office installed.

Note: If you are unsure, click Start > appwiz.cpl {enter} and MAKE SURE. Remember most PC’s come with a trial version of Office these days, and that’s the most likely culprit!

2. Once you have discounted the obvious, make sure you DO NOT have any ‘Collaboration and Data Objects’ still installed, if so remove them (that was my problem).

Related Articles, References, Credits, or External Links

NA

 

Deploying Office 2010 via Group Policy

KB ID 0000464 

Problem

What used to be the simplest task, has now been overly complicated (Thanks Microsoft!) Simply deploying from a single .msi file would have been far too easy! This procedure uses group policy to install Microsoft Office 2010 via group policy. It uses the Microsoft preferred method of employing startup scripts.

Below I’ve also disabled UAC, I found it was stopping my automated install, (If I ran the script manually I was prompted by UAC to continue – that took me about 3 hours to work out).

It also automatically “Activates” Office as soon as its installed, (using a MAK key). In the following scenario I deployed Office 2010 (Pro Plus) x32 bit to Windows 7 machines. In a clean VMware test environment my target machine took 6 minutes to silently install. So on a production network it will probably take a little longer (be patient). But any more than 10 minutes and the process will time out, if that’s happening make sure you do this.

Solution

1. On a server create a shared folder called Office_2010, give Authenticated Users – read access.

2. . In that folder create a folder called LogFiles.

3. Copy the contents of the Office DVD to this share.

4. Open the shared folder locate the ProPlus.WW folder and open it.

5. Locate config.xml open it with notepad.
Change:

<Display Level=”full” CompletionNotice=”yes” SuppressModal=”no” AcceptEula=”no” />
to
<Display Level=”none” CompletionNotice=”no” SuppressModal=”yes” AcceptEula=”yes” />

6. You can also change Username and companyname if you wish.

7. Save and exit config.xml

8. While in the Office_2010 folder Shift+Right Click > Open New command windows here.

9. Run setup.exe /admin

10. Accept the defaults on the popup menus.

11. Locate “Licensing and User interface.”

12. Enter a valid MAK license key (Take out the dashes and/or spaces). Tick to accept the EULA, and set the display level to none.

13. Locate “Set feature installation stats”, and set for the Office features you require.

To Set Office to Auto Activate (Without user intervention).

 

14. Locate “Modify Setup properties” , add a new one.

15. Set the name the value to AUTO_ACTIVATE.

16. Set the value to 1 (number one), and click OK.

Note: If you need to remove previous versions of Office you will find the option to do that in here also.

17. Click File > Save as > Save the msp file in the shareupdates folder (you can call it what you want).

18. Open notepad and paste in the following text:

[box]

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************

REM Get ProductName from the Office product’s core Setup.xml file, and then add “office14.” as a prefix.
set ProductName=Office14.PROPLUS

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=DC2AOffice_2010

REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=DC2AOffice_2010ProPlus.WWconfig.xml

REM Set LogLocation to a central directory to collect log files.
set LogLocation=DC2AOffice_2010LogFiles

REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************

IF NOT “%ProgramFiles(x86)%”==”” (goto ARP64) else (goto ARP86)

REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query HKEY_LOCAL_MACHINESOFTWAREWOW6432NODEMicrosoftWindowsCurrentVersionUninstall%ProductName%
if NOT %errorlevel%==1 (goto End)

REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a

64bit OS)
:ARP86
reg query HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionUninstall%ProductName%
if %errorlevel%==1 (goto DeployOffice) else (goto End)

REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%%computername%.txt

REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End

Endlocal

[/box]

19. Change the ProductName to the correct one you are deploying (search for ProductName in the setup.xml file that’s in the same folder you found config.xml in).

20. Change the THREE values in this script “DC2A” to your servername.

21. Save the file as a batch file (not a .txt file!) and right click the file > copy.

22. On your domain controller Start > Administrative tools > Group Policy management console > either create a new policy and link it to your COMPUTERS or edit an existing policy.

23. Navigate to:

[box] Computer Configuration > Policies > Windows Settings > Scripts > Startup. [/box]

24. Add the batch file you created earlier (open the folder and right click > paste).

Note: That should be all you need to do however – The first time I did this, UAC on the Windows 7 machines blocked the install, so I had to turn it off. You can do that in the same policy.

25. Navigate to:

[box] Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options[/box]

Set the Following:

a. User Account Control Behaviour of the elevation prompt for administrators in Admin approval mode – No Prompt or Elevate without Prompting.
b. User Account Control Detect Application installations and prompt for elevation – Disabled.
c. User Account Control Run all administrators in Admin approval mode – Disabled.

Timing

Policies like this will “time out” if running for more than 600 seconds (10 minutes). Our install may take longer than that, so you may need to set the time out in the policy, Navigate to:

[box] Computer Configuration > Policies > Administrative Templates > System > Scripts[/box]

Select “Maximum wait time for group policy scripts” set it to 0 (zero) for unlimited.

26. Close the policy editor.

Note: At this point every time Office starts for a new user, it presents you with:

27. To Suppress that you need to create a USER policy with a Custom ADM Template, download the template here.

28. Note this is a USER Policy, so if you add it to the policy you have already created to deploy Office, then that policy needs to be linked to your users. So I would just create a new user policy and link it separately. Navigate to:

[box] User Configuration > Administrative Templates > Classic Administrative Templates (ADM) > Microsoft Office 2010 > Miscellaneous [/box]

29. Locate the “Suppress recommended settings dialog” and enable it.

Related Articles, References, Credits, or External Links

Office 2010 Administrative templates.

 

Office Find your Version and Licensing Information

KB ID 0000566 

Problem

Note: This is an OLD post, you might want to look at the following article instead;

Finding Out Your Microsoft Office Licence Version

I had some licencing issues a couple of weeks ago with Office 2010, and needed to check my version and licence details, thankfully Office 2010 comes with a VB script that makes this easy.

Solution

Getting your Office Version and Licence Details

1. Launch a command window (Right click and select run as administrator, or select the cmd icon and press CTRL+SHIFT+ENTER).

2. You need to change to the directory that the script is in, this directory will be different if you are running x32 bit Office on an x64 bit machine. execute one of the following commands;

For x32 bit Office on x32 Bit machines, OR 64 bit Office on x64 bit machines;

[box]cd “C:Program FilesMicrosoft OfficeOffice14″[/box]

For x32 bit Office on x64 bit machines;

[box]cd “C:Program Files (x86)Microsoft OfficeOffice14″[/box]

3. Then execute the following command;

[box]cscript ospp.vbs /dstatus[/box]

Example Output

(Above) This installation of Office 2010 (Pro Plus) is UNLICENSED, (it’s waiting for a licence key to be installed). It will run for another 30 days like this, then this will happen. You can fix this by manually installing an Office MAK key, or setting up a KMS server on your network.

(Above) This installation of Office 2010 (Pro Plus) is LICENSED and has been activated with a MAK key.

(Above) This machine has RETAIL versions of both Office 2010 (Pro Plus), and Visio (Premium). Both are LICENCED, and activated with a retail (or box product) Key.

Other uses for ospp.vbs

Install a MAK Key on a remote machine;

[box]cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx {remote-machine-name}[/box]

Activate a remote machine

[box]cscript ospp.vbs /act {remote-machine-name}[/box]

 

Related Articles, References, Credits, or External Links

NA

Exchange 2007 – Install the x32 Bit Management Tools

KB ID 0000285 

Problem

As you may already be aware Exchange 2007 on a x32 bit machine is NOT supported in a production environment, however there is one exception, x32 bit Exchange 2007 IS supported for management only.

Note: There is NO x32 bit support, (or media) for Exchange 2010 (and newer).

Solution

You can install these tools on XP, 2003, Vista or Windows 7. For this Example I’ll use XP

Pre-Requisites

1. Install IIS: Start > run > appwiz.cpl > add remove Windows Components > Internet Information Services(IIS) > Next.

2. Download and install .Net Version 2.0

3. Download and Install .Net SP1

4. Download and Install MMC 3.0

5. Download and Install Powershell

Install the Exchange 2007 x32 Management Tools

1. Download the Management Tools.

2. Run the .exe file and extract the files to a folder > From that folder run setup.exe

3. Select “Step 4 Install Microsoft Exchange Server 2007 SP1”

5. At the intro page > Next > Tick “I Accept…” > Next > Next >

6. Select “Custom Exchange Server Installation” > Next > Select Management Tools > Next.

7. Exchange will perform its readiness checks > Next > Finish.

8. Exchange Management Tools will launch automatically.

Related Articles, References, Credits, or External Links

NA

HP 2055 Printer Prints and extra page with ‘GET /DevMgmt/DiscoverTree.xml HTTP/1.1’ on it

KB ID 0000806 

Problem

A client whose HP 2055 printers had previously worked fine, then all of them suddenly started doing this? They had recently installed a Laserjet 400 Network printer and suspected that was the cause. When they printed something they got an extra page like so;

GET /DevMgmt/DiscoverTree.xml HTTP/1.1
Host : 127.0.0.1:8080

and / or

PCL XL Error
Subsystem: KERNEL
Error: IllegalTag
Operator: 0x
Position: 6255

Solution

Right click the printer in question > Printer properties > Device Settings > Set Printer Status Notifications to Disabled > Set Duplex Unit to Installed > Apply > OK.

 

To do the same on a Windows XP machine see below;

Related Articles, References, Credits, or External Links

NA