Ho provato questo comando:
schtasks /create /sc ONSTART /tn "Test" /tr "C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -file \"D:\Users\xxx\Documents\test.ps1\" \"S" \"F\" /ru SYSTEM /z
ma, quando windows 7 viene avviato, questa operazione pianificata non parte. Come mai?
Se metto anche la opzione /mo ONCE, il comando schtasks /create mi indica che cio` non si puo` fare. Come mai?
GRAZIE
CIAO