Disconnect-RDUserProfileDisk

0.99

Sometimes a user profile disk needs to be force-disconnected. This script automates the proces to a degree.

- either (preferably) SessionCollection for which the UPD is stuck
- or (less preferably) the file server where the UPD is located

and will try to identify the RD Session Host that's got it locked.

The File server will be detected automatically from the sessi
Sometimes a user profile disk needs to be force-disconnected. This script automates the proces to a degree.

- either (preferably) SessionCollection for which the UPD is stuck
- or (less preferably) the file server where the UPD is located

and will try to identify the RD Session Host that's got it locked.

The File server will be detected automatically from the session collection. It needs to be specified by name there and be a member of the domain. If the UPDs are stored on a DFS share or on a non-windows server, we can't do very much.

Written by Evgenij Smirnov (es@it-pro-berlin.de) in October 2016.

Contains work of Jeffrey Patton (@jeffpatton) from way back (open files detection by querying LANMANSERVER).

This is Version 0.99 of 04.10.2016.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Disconnect-RDUserProfileDisk

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Evgenij Smirnov

Owners

Tags

rds upd

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
0.99 (current version) 11,619 10/4/2016