-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Here is a schedule creation for the Mega-Mount if enyone want
$Action = New-ScheduledTaskAction `
-Execute "powershell.exe" `
-Argument "-NoProfile -ExecutionPolicy Bypass -File `\"C:\Scripts\Mega-Mount.ps1`\""
$Trigger = New-ScheduledTaskTrigger -AtLogOn
$Principal = New-ScheduledTaskPrincipal `
-UserId $env:USERNAME `
-LogonType Interactive `
-RunLevel Highest
Register-ScheduledTask `
-TaskName "MEGA Auto Mount" `
-Action $Action `
-Trigger $Trigger `
-Principal $Principal `
-Description "Auto Mount MEGA on logon"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels