Hi
I am trying to export VM from my powershell to a shre on server 2008 r2
I run the command from a remote server 2008 r2
My Virtual machine is server 2008 r2 core hyper-v role
the command:
Export-VM -server "hv1" -vm "sql01" -path \\wsus\vhdexport -force -wait
the HV1 server have full control permishon over \\wsus\vhdexport
the error I get:
Test-WMIResult : Attempt to export sql01 to
\\wsus\vhdexport failed. Failed to create export directory with error 'Gene
ral access denied error'(0x80070005): sql01 (3B5B2EFD-0B7D-4EF1-BA30-22DBCD78267E)
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\hyperv\VM.ps1:27 char:113
+ if ( ($VSMgtSvc.ExportVirtualSystem($VM.__path,($CopyState.Ispresent),$path) | Test-wmiResult <<<<
-wait:($wait -or $preserve) -JobWaitText ($lstr_ExportOfVm -f $vm.elementName)`
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Test-WMIResult
Any Idea?
Tanks