I have a powershell script local on my dc. When I run the script from inside ISE (as admin) it works beautifully. When I run it just inside a powershell window (as admin) it gives me an error:
Register-ScheduledTask : Cannot bind argument to parameter 'Action', because PSTypeNames of the argument do
the PSTypeName required by the parameter: Microsoft.Management.Infrastructure.CimInstance#MSFT_TaskAction.
Why would it be different running from ISE than from powershell window? I don't want to have to open ISE ever time to execute the script.
mpleaf