Open Latiron opened 1 year ago
-TargetOSName Windows 11 is wrong, you need to have it in quotes, right now its passing WINDOWS as the -targetosname. not windows 11. It should be -TargetOSName 'Windows 11'
Yeah, I found another post in one of the other MDM githib listings. We had tried what was in the documentation, which is " double quotes. The issue posted in the other group said to try ' single quotes. I did that and it seems to have resolved the issue. At least on one Dell Latitude 7420. Testing on an XPS model now to see how that goes. Thanks for the reply.
Need help understanding why I am getting this error in the smsts.log file when it gets to the MDM step. I'm new to using this tool, so all help is appreciated. I have renamed our server info for security reasons. I have tried with the quotes shown in the examples and without them.
C:_SMSTaskSequence\Packages\H010022E\Invoke-CMApplyDriverPackage.ps1 : Cannot validate argument on parameter RunPowerShellScript 5/4/2023 3:18:44 PM 2100 (0x0834) 'TargetOSName'. The argument "Windows" does not belong to the set "Windows 11,Windows 10" specified by the ValidateSet RunPowerShellScript 5/4/2023 3:18:44 PM 2100 (0x0834) attribute. Supply an argument that is in the set and then try the command again. RunPowerShellScript 5/4/2023 3:18:44 PM 2100 (0x0834) At line:1 char:140 RunPowerShellScript 5/4/2023 3:18:44 PM 2100 (0x0834)