Skip to content

Commit

Permalink
Make scripts for simple run of scan
Browse files Browse the repository at this point in the history
Make scripts for simple run of scan
  • Loading branch information
Michal Zobec committed Jan 18, 2020
1 parent 27bd537 commit 6da7fb6
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Scan-AdobeReader.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
6 changes: 6 additions & 0 deletions Scan-AdobeReader.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\AdobeReaderDC.audit" | Out-File $ScriptDir\audit-output.txt -Append
3 changes: 3 additions & 0 deletions Scan-All.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
10 changes: 10 additions & 0 deletions Scan-All.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\AdobeReaderDC.audit" | Out-File $ScriptDir\audit-output.txt -Append
Test-Compliance -Path "$ScriptDir\AuditFiles\GoogleChrome.audit" | Out-File $ScriptDir\audit-output.txt -Append
Test-Compliance -Path "$ScriptDir\AuditFiles\InternetExplorer11.audit" | Out-File $ScriptDir\audit-output.txt -Append
Test-Compliance -Path "$ScriptDir\AuditFiles\Windows10.audit" | Out-File $ScriptDir\audit-output.txt -Append
Test-Compliance -Path "$ScriptDir\AuditFiles\WindowsFirewall.audit" | Out-File $ScriptDir\audit-output.txt -Append
3 changes: 3 additions & 0 deletions Scan-GoogleChrome.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
6 changes: 6 additions & 0 deletions Scan-GoogleChrome.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\GoogleChrome.audit" | Out-File $ScriptDir\audit-output.txt -Append
3 changes: 3 additions & 0 deletions Scan-InternetExplorer.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
6 changes: 6 additions & 0 deletions Scan-InternetExplorer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\InternetExplorer11.audit" | Out-File $ScriptDir\audit-output.txt -Append
3 changes: 3 additions & 0 deletions Scan-Windows10.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
6 changes: 6 additions & 0 deletions Scan-Windows10.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\Windows10.audit" | Out-File $ScriptDir\audit-output.txt -Append
3 changes: 3 additions & 0 deletions Scan-WindowsFirewall.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
powershell -ExecutionPolicy Bypass -File "%~d0%~p0%~n0.ps1"

pause
6 changes: 6 additions & 0 deletions Scan-WindowsFirewall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Requires -RunAsAdministrator
#Requires -Version 5
Set-StrictMode -Version 5
$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Import-Module -Name "$ScriptDir\Compliance\Compliance.psm1"
Test-Compliance -Path "$ScriptDir\AuditFiles\WindowsFirewall.audit" | Out-File $ScriptDir\audit-output.txt -Append

0 comments on commit 6da7fb6

Please sign in to comment.