scipag / HardeningKitty

HardeningKitty - Checks and hardens your Windows configuration
MIT License
1.27k stars 148 forks source link

Requires Admin Privilege #38

Closed piyatila closed 1 year ago

piyatila commented 1 year ago

Hello, while I run the script and I want to save it as CSV file, however I encounter this kind of error to some of our configured policy.

How to bypass ? image

0x6d69636b commented 1 year ago

HardeningKitty checks if a user is admin before using functions that require admin rights. If you want to check these settings, you need to run the script as admin. You could theoretically modify the script and set $IsAdmin = true to bypass the check, but you'll get access denied and other error messages.