0

The result of entering Get-WmiObject -list win32_shadowcopy).create("C:\","Backup") command into PowerShell is

ReturnValue      : 5

ShadowID         : {00000000-0000-0000-0000-000000000000}

However the ClientAccessible type of win32_shadowcopy is available for creation and accessible in file system after mklink /d. Which makes me feel confused. And I need the non-persistent, auto-release type of shadow copy with full read/write capabilities to be created during this operation... The Backup type satisfyingly meets these requirements. What is the reason for the .create() job to end up with such an error?

Creating a shadow copy using the "Backup" context in a PowerShell was not really helpful while trying to figure out the roots of the issue.

Community
  • 1
  • 1
deity
  • 1

1 Answers1

0

a return value of 5 means access denied. Are you running as Administrator?

Χpẘ
  • 3,403
  • 1
  • 13
  • 22
  • guess, yes PS C:\Windows\system32> ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` [Security.Principal.WindowsBuiltInRole] "Administrator") True – deity Jan 28 '16 at 13:12