Skip to content

Auto mount schedule for Mega-Mount #1

@BialySztorm

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"

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