Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

attach a task in taskscheilar using powershell

$Action = New-ScheduledTaskAction -Execute 'pwsh.exe' -Argument '-NonInteractive -NoLogo -NoProfile -File "C:MyScript.ps1"'
Source by searchwindowsserver.techtarget.com #
 
PREVIOUS NEXT
Tagged: #attach #task #taskscheilar #powershell
ADD COMMENT
Topic
Name
5+4 =