How-to-undervolt-AMD-RYZEN-5800X3D-Guide-with-PBO2-Tuner
How-to-undervolt-AMD-RYZEN-5800X3D-Guide-with-PBO2-Tuner copied to clipboard
ExecutionPolicy security
Is it necessary to run in Unrestricted machine-wide?
I have found it works by adding the argument -ExecutionPolicy Bypass before my file path for the icon.
Is it necessary to run in Unrestricted machine-wide? I have found it works by adding the argument
-ExecutionPolicy Bypassbefore my file path for the icon.
I confirm this. Also added this into the argument, as it would bypass the script for this instance only.
Hi @DeltaNachos, @Jeyd02 Can you please share the file? Thanks!
This is what I have in task scheduler as my 2nd action
-ExecutionPolicy Bypass -File "C:\Program Files (x86)\PBO Tuner\Alert.ps1"
I will add this change in the coming days if not too busy. Sorry for the delay, lots of studying.
When adding this line to the scheduled task, how to revert the execution in PowerShell if its already made?
Hey @momorious ! Sorry for the extremely late answer.
To revert the ExecutionPolicy back to default run this command as Admin in Powershell:
Set-ExecutionPolicy -ExecutionPolicy Default
or
Set-ExecutionPolicy -ExecutionPolicy Restricted
FYI, it's also possible to use Python to generate a toast pretty easily, I'll leave it here in case anyone prefers to do it this way.
Install win11toast (https://github.com/GitHub30/win11toast)
pip install win11toast
Create a script as follows in your PBO2 Tuner directory (e.g. notification.pyw):
from win11toast import toast
import os
toast('PBO2 Tuner', 'CO Offsets Applied', icon = f"{os.path.abspath(os.path.dirname(__file__))}\icons\icons8-ryzen-controller-64.png")
The example icon I'm using is from this site: https://icons8.com/icon/Q14IW6gC1Mgy/ryzen-controller. win11toast also supports using URLs directly.
Add an action to your scheduled task to start your pythonw.exe with argument of "{PBO2 Tuner Directory}\notification.pyw"
Customize as desired.