Monday, February 5, 2018

Remove Hotfix from Unbootable OS

1. In the Windows 10 boot menu, go to Repair.
2. Go to Tools > Options to get a command prompt.
3. Confirm the drive letter for the Windows image (usually it is D:\).
4. Run dism /Image:D:\ /Get-Packages to view the installed packages along with their date of install and note the name of the rogue package.
5. Run the following command with the wanted package name dism.exe /image:d:\ /remove-package packagename:Package_for_KB4014329~31bf3856ad364e35~amd64~~
Then just reboot the system normally, and you should be good to go!

Wednesday, February 24, 2016

Add Multiple VMs to Inventory

I was recently in a situation where I had to remount and NFS datastore to my ESXi hosts due to an IP address change.  After shutting down all the VMs in that datastore, I chose the entire group and right-click > remove from inventory.  After unmounting the datastore I re-added it again with the new IP address.  Now I had a datastore but it showed no VMs.  When browsing the contents of the datastore I was able to see all the machines.  However, I had no interest in going into each VM folder, and adding each one separately to the inventory.  

If found a Powershell (needs PowerCLI) script that does it quite well:  

One note regarding the script on the site, for some reason instead of actual quotation marks (" ") instead the script has "

You will need to replace each one prior to running the script.

Wednesday, January 20, 2016

Installation Hangs on Terminal Server 2003

Our environment still has 2 Server 2003 Terminal Servers supporting legacy applications.  I have recently discovered the solution that solves an issue we have been having for a very long time.  I first discovered the issue when trying to update VMware Tools.  The install would hang in the middle and then time out after about 15 minutes.  After some testing I notice the issue affects any installation attempt.  VMware support didn't really solve the issue, but we discovered that running an installation right after login would complete successfully.

This week after searching once again I found a few blog posts that claim the source of the issue is HP Printer drivers and especially HP Universal Print Drivers.

1) Opening Terminal Server registry propogation window. (aka: Installing software in windows takes forever)

2) Terminal Server 2003 msiexec high cpu usage, hp upd

3) High CPU usage in MSIExec due to enumeration of print GUIDs in HKU\.Default\Software

Before following the suggestions in these posts to remove HP registry entries, I first took the server offline and removed all printers.  Then, within the Printer and Faxes window, right-click and choose Server Properties.  Click on the Ports tab and remove any unnecessary printers.  Then, click on the Drivers tab and remove any old or unnecessary drivers.  If you have a policy that maps printers for users, you can safely remove all the drivers and ports, as they will get recreated upon user login.

Thursday, October 1, 2015

Error deleting files with long names

Recently I needed to remove a shared folder and found it contained files with extremely long filenames.  Unfortunately, Windows was unable to rename or delete the files. 

For the solution, I found two options.  The first is using Robocopy.  Create a new empty folder.  Run Robocopy and set the source as the new empty folder and the destination as the path/folder you want to delete.  End the Robocopy command line with a /purge.

The second solution is using 7-Zip.  If you don't already use this as your zipping/unzipping tool, you should.  Open 7-Zip File Manager and navigate to the problematic folder and perform a Shift-Delete.

Monday, March 16, 2015

Terminal Server 2003 Font Rendering

An issue has come up with Server 2003 and font rendering when connecting via RDP.  In my case, users are running a Microsoft Access-based application and the text is very difficult to read.

In February's Patch Tuesday, Microsoft released update  3013455.  In that update, there is also a "known issues" section which mentions this exact problem of text rendering, and also link to a fix.

In my case, the fix solved the issue.

Microsoft TechNet

Tuesday, June 24, 2014

NetApp - Disk Replace Command

When trying to run the disk replace command on our NetApp Filer, we received the following error:

raid.rg.diskcopy.failed:ALERT]: /aggr0/plex0/rg1: unable to start disk copy from 0a.00.10 to 2c.26: Disk is from the wrong spare pool

Although we do not use SyncMirror, we have disks in both Pool 0 and Pool 1.  Best practice is to have one Pool if you do not use SyncMirror.  To allow the disk replace to continue you need to run the command as follows:

disk replace start [-f] [-m]
This command uses Rapid RAID Recovery to copy data from the specified file system disk to the specified spare disk. At the end of that process, roles of disks are reversed. The spare disk will replace the file system disk in the RAID group and the file system disk will become a spare. The option -f can be used to skip the confirmation. The option -m allows mixing disks with different characteristics. It allows using the target disk with rotational speed that does not match that of the majority of disks in the aggregate. It also allows using the target disk from the opposite spare pool.

Source: NetApp Library