Issue with running on Windows 2008R2 32bit
vengatesh-nagarajan opened this issue · 4 comments
vengatesh-nagarajan commented
Missing expression after unary operator '-'.
At C:\Users\Administrator\Downloads\adaudit-master\adaudit-master\AdAudit.ps1:6 char:10
-
- <<<< added check for transitive trusts
phillips321 commented
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
I've just changed the line endings, can you try to run again. Many thanks
vengatesh-nagarajan commented
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
-
$combinedgpos = ($(((Get-GPInheritance -Target $ouobject).InheritedGpoLinks) | select DisplayName) | ForEach-
Object { $_.DisplayName }) -j <<<< oin ','
phillips321 commented
Are there any GPOs?