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
Also in C++:
- how to forcefully delete a directory in linux
- linux bash scripts tutorial
- dig +noall +answer
- powershell add user to remote desktop group
- git revert file to master
- how to use virtualenvwrapper
- \Activate.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
- npm install reat
- dos findstr
- add github repo
- write a program in shell script to find factorial of a number
- uninstall program from ubuntu
- approle hashicorp vault
- get users shell
- how to setup a web server
- how to edit a text file in git bash
- react native typescript
- how to install aws-jumpclous
- vscode install commandline
- REDME github image
- squash commit history git
- restart redis ubuntu
- list recursively all files linux
- ubuntu start mongodb