Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Error message running powershell as admin, not running ISE as admin

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>