Windows Server 2012 R2 Troubleshooting: wbadmin backup fails creating system state with Error [0x80070057] The parameter is incorrect
Error:
While running System State Backup Error [0x80070057] The parameter is incorrect.
Cause:
Found that the Server has IIS installed on it and admin has stored the Database of the IIS on different drive X:\inetpub and created Symbolic link to that folder using Mklink in the C:\ inetpub
While running backup using command prompt it created log file under the C:\Windows\Logs\WindowsServerBackup as below
Snip from the logs
Backed up C:\Windows\Vss\Writers\System\0bada1de-01a9-4625-8278-69e735f39dd2.xml
Backed up C:\Windows\Vss\Writers\System\75DFB225-E2E4-4d39-9AC9-FFAFF65DDF06.xml
Backed up C:\Windows\Vss\Writers\System\D61D61C8-D73A-4EEE-8CDD-F6F9786B7124.xml
Backed up C:\
Backed up C:\Windows\
Backed up C:\Windows\System32\
Backed up C:\Windows\System32\perfc009.dat
Backed up C:\Windows\System32\perfd009.dat
Backed up C:\Windows\System32\perfh009.dat
Backed up C:\Windows\System32\perfi009.dat
Backed up C:\
Backed up C:\inetpub\
So from above logs we found that the backup fails right after the folder C:\inetpub so when checked found that it was a symbolic link for the X:\inetpub
Solution:
We deleted the Symbolic link which was under C:\ and moved the actual folder X:\inetpub to the C: drive
After this the backup started working fine.