djust270 / Intune-Scripts

55 stars 15 forks source link

Get-CimInstance not recognized Windows11 #6

Open dzaggiel opened 9 months ago

dzaggiel commented 9 months ago

In raw 158 I getting error regarding command Get-CimInstance not recognized in Windows 11 and the error is: "New-ScheduledTaskPrincipal : Cannot validate argument on parameter 'UserId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."