Skip to content

Conversation

@corbob
Copy link
Contributor

@corbob corbob commented Oct 3, 2020

Sometimes when a user moves their Documents location detection isn't correct.
Utilize the Get-PSLocation function already provided by PSScriptTools

Fixes #92
My original fix for this was just using [Environment]::GetFolderPath("MyDocuments") and then I discovered that PSScriptTools already provides this lookup, so just utilized that here.

Sometimes when a user moves their Documents location detection isn't correct.
Utilize the Get-PSLocation function already provided by PSScriptTools
@jdhitsolutions jdhitsolutions merged commit 0c8c293 into jdhitsolutions:master Oct 10, 2020
jdhitsolutions added a commit that referenced this pull request Mar 3, 2023
Look for profiles in Users Documents
jdhitsolutions added a commit that referenced this pull request Mar 3, 2023
Look for profiles in Users Documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get-PSProfile fails to find profiles that are in moved Documents folders

2 participants