• Greetings, when running the command I get the error:  

    (gwmi -ns rootcimv2terminalservices -class win32_tssessiondirectory).enableuservhd("SERVERSHAREProfilesWin10-1607","<UvhdRoamingPolicy><RoamingMode>0</RoamingMode></UvhdRoamingPolicy>")

    gwmi :
    At line:1 char:2
    + (gwmi -ns rootcimv2terminalservices -class win32_tssessiondirectory …
    +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-WmiObject], FileNotFoundException
        + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.GetWmiObjectCommand


    (share name is substituted with share I am using in my environment, NTFS and share rights are defined as requestet in article earlier, powershell is ran with administrator privileges)

    Thank you and best regards

  • Jernej Svete became a registered member 4 years, 11 months ago

© 4sysops 2006 - 2022


Please ask IT administration questions in the forums. Any other messages are welcome.


Log in with your credentials


Forgot your details?

Create Account