windows 7 computer start-scheduledtask not a valid function so I am trying to use schtasks which run on Windows 7
This invoke-command having trouble with
PS C:\util> Invoke-Command -ComputerName tgkw012 -ScriptBlock {schtasks /run /s /TN “Install-Updates”}
ERROR: Invalid syntax. Value expected for '/s'.
+ CategoryInfo : NotSpecified: (ERROR: Invalid ...ected for '/s'.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName : tgkw012
Type "SCHTASKS /RUN /?" for usage.
Any ideas
Thank you
Tom