/build/static/layout/Breadcrumb_cap_w.png

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:
Posted by: Nico_K 2 months ago
Red Belt
0

this is currently works as designed and there is no way do do so.
You can vote on Quest Ideas for a change of the behaviour: https://support.quest.com/kb/4294599/


Comments:
  • Thanks. I submitted KSMA-I-827 for this issue. - jlfrank 2 months ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ