- m@rco (marcoheijkoop)
- in/marcoheijkoop
- @marcoheijkoop
- @marcoheijkoop
- marcoheijkoop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-log4files(){ | |
$Drives = Get-PSDrive | Select-Object -ExpandProperty 'Name' | Select-String -Pattern '^[a-e]$' | |
$FileInfo = [System.Collections.ArrayList]::new() | |
$Filetypes = @("*.jar") | |
ForEach($DriveLetter in $Drives) | |
{ | |
$Drive = "$DriveLetter" + ":\" | |
$Log4Files = Get-ChildItem -Path $Drive -Filter "*log4j-core*" -Include $Filetypes -Recurse -File -ErrorAction SilentlyContinue | Select-Object FullName | |
Foreach($file in $Log4Files) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Export-CMScriptResults | |
{ | |
<# | |
.Synopsis | |
Export-CMScriptResults | |
.DESCRIPTION | |
Export-CMScriptResults exports the return values from scripts that are executed | |
through the ConfigMgr Run Script feature. | |
.PARAMETER ScriptName | |
The name of the Script as it is displayed within the ConfigMgr Console. |