Overclock.net banner

Need some help with Powerhell scripts

447 views 0 replies 1 participant last post by  unseen0 
#1 ·
I've been spending 5 hours trying to autostart a Powershell scripts but i'm not having any succes.

Here's what my script looks like (testscript)

Start-Process -WindowStyle hidden -FilePath C:\Windows\Test\notepad.exe
saved as 2.ps1

Whenever i open the script (right click > open with powershell) it does work and the notepad.exe shows up in taskmanager, which is exactly what i want.

However, i can not get this script to auto startup.

I've tried a Task scheduler where i made a task that triggers on startup, program: Powershell.exe and arguments to my script.
This approach does nothing, no error, no message, no notepad.exe in task manager.

I've tried gpedit.msc, add a powershell script on it's startup option that also redirects to the script. This has the same outcome.

I also tried manually adding the script to C:\Window\System32\GroupPolicy\Machine\Scripts\Startup

Same outcome as well.

Im on win10, 64bit.
 
See less See more
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top