Im trying to run one PowerShell script using C# application.
Get-CimInstance MSStorageDriver_FailurePredictStatus -Namespace root\wmi |select PredictFailure
I am running this script from c# application which is not running as admin and this script is giving me an error
access denied-HRESULT 0x80041003,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
On some R&D I got that Ciminstance need admin access to run so I wanted to know how to run get-ciminstance
as non-admin user. Please suggest me any way to run this script as System or with highest privilege.