Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run command as Administrator

Tags:

powershell

On one of our Windows Server 2012 R2 machine, I can't run Get-ScheduledTask as an Administrator. I can run it as normal user. Following is the error message, I receive when I try to execute the command, if I run PowerShell as an Admin.

Get-ScheduledTask : The parameter is incorrect.
At line:1 char:1
+ Get-ScheduledTask
    + CategoryInfo          : InvalidArgument: (MSFT_ScheduledTask:Root/Microsoft/...T_ScheduledTask) [Get-ScheduledTask], CimException
    + FullyQualifiedErrorId : HRESULT 0x80070057,Get-ScheduledTask

Can someone please advise, why is it so?

like image 499
Ravi Avatar asked Oct 17 '25 13:10

Ravi


1 Answers

Seems to be a transient framework issue. Restart the machine should fix it . Reference

like image 161
HariHaran Avatar answered Oct 19 '25 07:10

HariHaran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!