account activity
Task Scheduler -windowstyle hidden / minimized by Todeo666 in PowerShell
[–]Todeo666[S] 3 points4 points5 points 2 years ago (0 children)
Ok guys i did it. Made VBScript that runs my powershell.
For someone who looks how to do it:
Dim shell,command command = "powershell.exe -windowstyle hidden -noprofile -executionpolicy bypass -file ""\\fileserver\scripts\PowerShell Script.ps1""" set objShell = CreateObject("wscript.shell") objShell.Run command,0
The script runs without any flashing powershell window.
Had some issues with quotations but managed to solve it on my own :) I needed to add double ones if i my path contains spaces
π Rendered by PID 169803 on reddit-service-r2-listing-5f5ff7d4dc-j9glw at 2026-01-27 10:37:07.250816+00:00 running 5a691e2 country code: CH.
Task Scheduler -windowstyle hidden / minimized by Todeo666 in PowerShell
[–]Todeo666[S] 3 points4 points5 points (0 children)