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, 6 months ago