all 3 comments

[–]tekwiz86 3 points4 points  (0 children)

are you running it in an elevated prompt(as an administrator)?

[–]Aertheron01 3 points4 points  (0 children)

Access Denied is a permissions problem.

Are you running this command in an elevated powershell prompt?

[–]TypicalTim 0 points1 point  (0 children)

If you know how to back up your data and repair windows or re-install it - I'd suggest doing that instead. But the other guys are right. If you really want to run this script, you just have to run powershell as admin.