Archive for the Desktop Administration Category

May 2 2017

Get List of User Profile Folders (PoSH)

The following snippet of PowerShell will collect the list of profiles active on a system from the registry and populate an array.

I remove any profile folder that does not exist, as well as any that are within the Windows folder (e.g. NetworkService, LocalSystem), but you can modify as you see fit if that doesn’t meet your needs. I use this when I need to add files, remove files, or make changes to files within a users profile.

You could just loop over C:\USERS\ subfolders and be fine 9,999/10,000 times, but this covers those circumstances where profiles have been stored elsewhere, where C: is not the drive with the profiles, or when you need to make sure you’re not modifying folders that aren’t true profiles.

Apr 25 2017

Remove Recent Printers from Chrome Preferences File (PoSH)

Chrome does not remove “Recent Printers” from the print option box when a user or an administrator deletes a printer from the machine. This can cause problems when a printer is removed by policy or is updated with a new print server name, but a user continues totry and print to the old server. This script will remove the printer from the PREFERENCES file. You can provide no printer list and all Recent Printers will be removed, or you can specific a specific printer.

Mar 2 2016

Citrix – Installation Error DVCRenderingAdapter.dll Failed to Register

I recently was troubleshooting the following error on roughly 400 systems that we were deploying the Citrix Receiver v14 to:

Citrix Receiver DVCRenderingAdapter failed to register

Image Credit Christopher Cable.


CustomAction +DVCRenderingAdapter.dll.827545C6_7013_4DE1_8E6C_DAEE4C57F54A returned actual error code -2147319780 (note this may not be 100% accurate if translation happened inside sandbox)MSI (s) (5C:9C) [10:08:57:789]: Product: Online Plug-in — Error 1904. Module C:\Program Files\Citrix\ICA Client\DVCRenderingAdapter.dll failed to register.  HRESULT -2147319780.  Contact your support personnel.
Error 1904. Module C:\Program Files\Citrix\ICA Client\DVCRenderingAdapter.dll failed to register.  HRESULT -2147319780.  Contact your support personnel.


There are a few discussion board posts online that discuss this issue and provide some helpful tips for manually fixing the issue.  Ones that helped me the most was this response by Mike Moskal on the Citrix Discussion Board.


Oct 2 2015

PowerShell Script to Output GPO Versions across DCs

I wrote the following PowerShell script so that I could easily watch my GPO changes replicate around the globe, letting me know when I could have someone at a specific site update policy when new policies or changes were rolled out. To use, just replace $gpoGUID = “{12345678-1234-5678-9123-ABCDEFEDCBA0}” with the GUID of the policy you want to check on.  You can find the GPO GUID in the properties of the GPO and on the details page in the Group Policy Management Console.


Aug 17 2015

Resolving VMWare Error “There are no un-bridged host network adapters” after Windows 10 Upgrade

After upgrading to Windows 10, all of my VMWare Professional v10.x guest machines lost their connection to the network. Taking a look at their network connections, I found that I’d lost the default vmnet0 network, and trying to add it back as a bridged network threw the error “There are no un-bridged host network adapters”.