phillips321 / adaudit

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

I get this error below #10

Closed hpriergaard closed 4 years ago

hpriergaard commented 4 years ago

Hi Version 4.1 works ok


The lasted lines from 878 to 886

Dirty fix for .nessus characters (will do this properly or as a function later. Will need more characters adding here...)

$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus

$endtime = get-date Write-Both "[*] Script end time $endtime"


Version 4.2 didn't works


The lasted lines from 879 to 888

Dirty fix for .nessus characters (will do this properly or as a function later. Will need more characters adding here...)

$originalnessusoutput = Get-Content $outputdir\adaudit.nessus $nessusoutput = $originalnessusoutput -Replace "&", "&" $nessusoutput = $nessusoutput -Replace "`“", """ $nessusoutput = $nessusoutput -Replace "ü", "u" $nessusoutput | Out-File $outputdir\adaudit-replaced.nessus ~ $endtime = get-date Write-Both "[*] Script end time $endtime" ~

I run this commando PS C:\Users\Administrator\Downloads\ADaudit-master> .\AdAudit.ps1 -all


Error At C:\Users\Administrator\Downloads\ADaudit-master\AdAudit.ps1:882 char:48

Best regards Henrik

thehodown commented 4 years ago

This is now resolved