Skip to content

Auto mount schedule for Mega-Mount #1

Description

@BialySztorm

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions