Update powershell scripts and add port forwarding wsl scripts
This commit is contained in:
5
scripts/pshell/Bridge-WslPorts-AddTaskToScheduler.ps1
Executable file
5
scripts/pshell/Bridge-WslPorts-AddTaskToScheduler.ps1
Executable file
@@ -0,0 +1,5 @@
|
||||
$a = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-File `"/home/cloud/repos/personal-devboot/scripts/pshell/Bridge-WslPorts.ps1`" -WindowStyle Hidden -ExecutionPolicy Bypass"
|
||||
$t = New-ScheduledTaskTrigger -AtLogon
|
||||
$s = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
|
||||
$p = New-ScheduledTaskPrincipal -GroupId "BUILTIN\Administrators" -RunLevel Highest
|
||||
Register-ScheduledTask -TaskName "WSL2PortsBridge" -Action $a -Trigger $t -Settings $s -Principal $p
|
||||
Reference in New Issue
Block a user