ADAPE-Script
ADAPE-Script copied to clipboard
bug?
D:\ADAPE-Script\ADAPE.ps1:91
If( $OS -match "10" -or $OS -match "2012" -or $OS -match "2016" -or $OS -match "8")
At path\to\ADAPE.ps1:91 char:19
+ $OS -match "8")
+ ~
Missing statement block after If ( condition ).
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingStatementBlock
Replace the code with these lines at line number 99
If( $OS -match "10" -or $OS -match "2012" -or $OS -match "2016" -or $OS -match "8") { Write-Host "OS Detected: $version" }