Closed FredericIV closed 2 years ago
@FredericIV Please re-base all of these PRs to the SuperCAT-main branch so I can see the changes to each one
PSScriptAnalyzer results:
``` RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 2 Message : The command 'Describe' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 3 Message : The command 'Context' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 4 Message : The command 'It' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 6 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 6 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 8 Message : The command 'It' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 10 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 10 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 11 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 11 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 12 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 12 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 13 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 13 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 15 Message : The command 'It' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 17 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 17 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 18 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 18 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 20 Message : The command 'It' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 22 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 22 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 23 Message : The command 'Should' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Structure.Tests.ps1 Line : 23 Message : The parameter 'Exist' is not available for command 'Should' by default in PowerShell version '5.1.17763.316' on platform 'Microsoft Windows 10 Pro' RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : SuperCAT.ps1 Line : 108 Message : File 'SuperCAT.ps1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : SuperCAT.ps1 Line : 110 Message : File 'SuperCAT.ps1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : SuperCAT.ps1 Line : 112 Message : File 'SuperCAT.ps1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 51 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 68 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 69 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 70 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 71 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 76 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 79 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 89 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 90 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 91 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 92 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 97 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 100 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 117 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 118 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 119 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 121 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 125 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 126 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 141 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 142 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 143 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 144 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 145 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 146 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 147 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 148 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 149 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 150 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 151 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 152 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 153 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 292 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 295 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 298 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 299 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 313 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 318 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 320 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SuperCAT.ps1 Line : 322 Message : File 'SuperCAT.ps1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : SuperCAT.ps1 Line : 27 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : SuperCAT.ps1 Line : 59 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : SuperCAT.ps1 Line : 186 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : SuperCAT.ps1 Line : 209 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : SuperCAT.ps1 Line : 230 Message : The variable 'Version' is assigned but never used. RuleName : PSUseShouldProcessForStateChangingFunctions Severity : Warning ScriptName : SuperCAT.ps1 Line : 54 Message : Function 'Update-Config' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Antivirus.psm1 Line : 15 Message : File 'Antivirus.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Antivirus.psm1 Line : 21 Message : File 'Antivirus.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Antivirus.psm1 Line : 26 Message : File 'Antivirus.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Antivirus.psm1 Line : 42 Message : File 'Antivirus.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Antivirus.psm1 Line : 67 Message : File 'Antivirus.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : Antivirus.psm1 Line : 68 Message : File 'Antivirus.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Antivirus.psm1 Line : 11 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Antivirus.psm1 Line : 38 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Antivirus.psm1 Line : 59 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Antivirus.psm1 Line : 63 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseShouldProcessForStateChangingFunctions Severity : Warning ScriptName : Antivirus.psm1 Line : 1 Message : Function 'Update-AVSignature' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. RuleName : PSUseShouldProcessForStateChangingFunctions Severity : Warning ScriptName : Antivirus.psm1 Line : 52 Message : Function 'Start-Antivirus' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 12 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 14 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 15 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 16 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 17 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 18 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 20 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 21 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 22 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 68 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 88 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 89 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 91 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 94 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 95 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 98 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 100 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 102 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 104 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 112 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 115 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 118 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 121 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 130 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 133 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : Support.psm1 Line : 136 Message : File 'Support.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Support.psm1 Line : 13 Message : The command 'Set-TimeZone' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : Support.psm1 Line : 27 Message : The command 'Get-TimeZone' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSReviewUnusedParameter Severity : Warning ScriptName : Support.psm1 Line : 159 Message : The parameter 'Config' has been declared but not used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : Support.psm1 Line : 76 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSUseShouldProcessForStateChangingFunctions Severity : Warning ScriptName : Support.psm1 Line : 3 Message : Function 'Set-Time' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : GeneralCollection.psm1 Line : 14 Message : File 'GeneralCollection.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : GeneralCollection.psm1 Line : 20 Message : File 'GeneralCollection.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : GeneralCollection.psm1 Line : 22 Message : File 'GeneralCollection.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWMICmdlet Severity : Warning ScriptName : GeneralCollection.psm1 Line : 55 Message : File 'GeneralCollection.psm1' uses WMI cmdlet. For PowerShell 3.0 and above, use CIM cmdlet which perform the same tasks as the WMI cmdlets. The CIM cmdlets comply with WS-Management (WSMan) standards and with the Common Information Model (CIM) standard, which enables the cmdlets to use the same techniques to manage Windows computers and those running other operating systems. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 45 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 50 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 65 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 71 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 76 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : GeneralCollection.psm1 Line : 81 Message : File 'GeneralCollection.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSUseCompatibleCommands Severity : Warning ScriptName : GeneralCollection.psm1 Line : 72 Message : The command 'Get-LocalUser' is not available by default in PowerShell version '3.0' on platform 'Microsoft Windows Server 2012 Datacenter' RuleName : PSUseDeclaredVarsMoreThanAssignments Severity : Warning ScriptName : GeneralCollection.psm1 Line : 21 Message : The variable 'HardDrives' is assigned but never used. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : GeneralCollection.psm1 Line : 6 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : SCAP.psm1 Line : 16 Message : File 'SCAP.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSUseShouldProcessForStateChangingFunctions Severity : Warning ScriptName : SCAP.psm1 Line : 1 Message : Function 'Start-SCAP' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : SCAP.psm1 Line : 7 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSAvoidUsingWriteHost Severity : Warning ScriptName : EventLogs.psm1 Line : 11 Message : File 'EventLogs.psm1' uses Write-Host. Avoid using Write-Host because it might not work in all hosts, does not work when there is no host, and (prior to PS 5.0) cannot be suppressed, captured, or redirected. Instead, use Write-Output, Write-Verbose, or Write-Information. RuleName : PSUseProcessBlockForPipelineCommand Severity : Warning ScriptName : EventLogs.psm1 Line : 7 Message : Command accepts pipeline input but has not defined a process block. RuleName : PSProvideCommentHelp Severity : Information ScriptName : Support.psm1 Line : 3 Message : The cmdlet 'Set-Time' does not have a help comment. RuleName : PSAvoidUsingPositionalParameters Severity : Information ScriptName : Support.psm1 Line : 102 Message : Cmdlet 'Write-Host' has positional parameter. Please use named parameters instead of positional parameters when calling a command. RuleName : PSAvoidTrailingWhitespace Severity : Information ScriptName : export-offline-registry.ps1 Line : 8 Message : Line has trailing whitespace ```
SuperCAT currently pulls McAfee logs from computers, but fails if they aren't found. Instead, check and pull both McAfee locations and Windows Defender event logs.