phillips321 / adaudit

Powershell script to do domain auditing automation
https://www.phillips321.co.uk
374 stars 100 forks source link

Issue with running on Windows 2008R2 32bit #2

Closed vengatesh-nagarajan closed 5 years ago

vengatesh-nagarajan commented 6 years ago

Missing expression after unary operator '-'. At C:\Users\Administrator\Downloads\adaudit-master\adaudit-master\AdAudit.ps1:6 char:10

phillips321 commented 6 years ago

Hi there, This line is simply a comment, so it shouldn't cause the interpreter to even try and do anything. How did you download the script?

phillips321 commented 6 years ago

I've just changed the line endings, can you try to run again. Many thanks

vengatesh-nagarajan commented 6 years ago

You must provide a value expression on the right-hand side of the '-' operator. At C:\Users\Administrator\Downloads\adaudit-master\adaudit-master\AdAudit.ps1:209 char:146

phillips321 commented 6 years ago

Are there any GPOs?