I'm trying to run a powershell script to turn on system protection on my computers c: drives as it was not turned on in the base image. It seems that I'm having a problem with rights in the powershell script as some powershell scripts need to "run as" administrator.

This is my script, unless somebody else has any way to enable system protection that is all I've found.

enable-computerrestore -drive "c:\"
vssadmin resize shadowstorage /on=c: /for=c: /maxsize=3%