Parameters with quotes?
-
Trying to run WMI.Query(/root/somenamespace, SELECT * FROM class WHERE name="value", property)
WQL needs the quotes, but by the time the query executes the quotes have been stripped. The same issue exists when trying to pass something in quotes to a ExternalParameter, or any parameter for that matter.Is there a way to use quotes in parameters?
Going through the code, it seems the quotes are being removed in AgentGetParameterArg....
-
Yes you can....here is an example:
WMI.Query(root\cimv2, "select * from SoftwareLicensingProduct where partialproductkey like '%'" , LicenseFamily )
-
I see what you're doing. Thanks!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login