New Question

Revision history [back]

click to hide/show revision 1
initial version

wmi fails to run in powershell LocalScripts

I have written a powershell script that runs with the LocalScripts plugin. It's using the #ps1sysnativ lin and most of the code runs as expected. However anything that calls wmi like (gwmi win32operatingsystem).OperatingSystemSKU fails with a generic error. Has anybody ran into this?

powershell transcript of the code failing. https://gist.github.com/trodemaster/a9451e8b1e80c9e9411f6e4495b40f93

Thanks, Blake