Computer and IT knowledge - things to know
problem: because of windows security enhancements the plugin does not deliver values anymore
solution: add a path to the schtask command:
>> added:
- cd $env:systemroot
- cd system32
- $tasks = .\schtasks.exe /query /fo csv -v | ConvertFrom-Csv
instead of just running "$task = schtask /query ...."
--- the workaround code with the enhancement is here below:
#
# Monitor Windows Tasks
#
cd $env:systemroot
cd system32
Write-Host "<<<windows_tasks:sep(58):encoding(cp437)>>>"
$lang = Get-UICulture | select -expand LCID
if ($lang -eq 1031){
$tasks = .\schtasks.exe /query /fo csv -v | ConvertFrom-Csv
computer2know :: thank you for your visit :: have a nice day :: © 2024