Jump to content
Welcome to our new Citrix community!
  • 0

Powershell with !CTX_OSNAME!!CTX_PROFILEVER!


Question

How do I view  !CTX_OSNAME! for powershell

 

$pathToUserStore = ((Get-ItemProperty "HKLM:\Software\Policies\Citrix\UserProfileManager").PathToUserStore -replace "#SAMAccountName#",$user) + "\UPM_PROFILE"

 if(!(Test-Path $pathToUserStore)){
        Write-Host "Can't find $($pathToUserStore), re-enter your username." -fore Red
    }

 

Can't find \\svm018\svm018_profiles\users\kevin\!CTX_OSNAME!!CTX_PROFILEVER!\UPM_PROFILE

Link to comment

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...