Windows 2008: PowerShell commands work, but fail when put in a script - TechRepublic
Question
April 18, 2009 at 05:57 PM
order24

Windows 2008: PowerShell commands work, but fail when put in a script

by order24 . Updated 17 years, 2 months ago

I can successfully enter a get-wmiobject command directly in the PowerShell window, but it fails with an “Invalid Query” error when put in a PowerShell script. I can’t figure out why this is happening. Any help would be appreciated!

This discussion is locked

All Comments