ShellCommandTextReturn without datatype?
Using ShellCommandTextReturn in a custom inventory field returns the datatype at the end of the data. For example:
ShellCommandTextReturn(c:\windows\sysnative\WindowsPowerShell\v1.0\powershell.exe "invoke-command -ScriptBlock {(get-service webclient).Status -like 'Stopped'} -ErrorAction SilentlyContinue" 2> nul)Returns:
14) Web Service Disabled: | True [string] |
This is problematic when searching devices by the custom inventory field because I can't use the = operator, and it clutters the inventory view. Is there any way to return the text without the datatype?
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer