Horje
windows run powershell script from task scheduler Code Example
windows run powershell script from task scheduler
$Trigger= New-ScheduledTaskTrigger -At 10:00am –Daily # Specify the trigger settings
$User= "NT AUTHORITY\SYSTEM" # Specify the account to run the script
$Action= New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "C:\PS\StartupScript.ps1" # Specify what program to run and with its parameters
Register-ScheduledTask -TaskName "MonitorGroupMembership" -Trigger $Trigger -User $User -Action $Action -RunLevel Highest –Force # Specify the name of the task




Shell

Related
lighthouse Code Example lighthouse Code Example
github checkout branch Code Example github checkout branch Code Example
push an existing repository from the command line Code Example push an existing repository from the command line Code Example
how to realse the lock in the linux in apt Code Example how to realse the lock in the linux in apt Code Example
how to install software in linux terminal Code Example how to install software in linux terminal Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9