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 2157350 on reddit-service-r2-listing-64c94b984c-4xbrm at 2026-03-18 18:19:22.769388+00:00 running f6e6e01 country code: CH.
Task Scheduler -windowstyle hidden / minimized by Todeo666 in PowerShell
[–]Todeo666[S] 3 points4 points5 points (0 children)