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.

Show more

Installation Options

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

Install-Script -Name Disconnect-RDUserProfileDisk

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy 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

Owners

Package Details

Author(s)

  • Evgenij Smirnov

Tags

rds upd

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
0.99 (current version) 31,482 10/4/2016