(imported topic written by tscott91)
I want to return workstations that have a service display name that contains FTP… This is probably one of the most basic fixlets but I’m a simpleton and can’t figure it out!!
(imported topic written by tscott91)
I want to return workstations that have a service display name that contains FTP… This is probably one of the most basic fixlets but I’m a simpleton and can’t figure it out!!
(imported comment written by cstoneba)
(exists service “msftpsvc”)
(imported comment written by tscott91)
That only returns that specific service… I want it to return true for any service that has “FTP” in the display name…
(imported comment written by SystemAdmin)
I think you are looking for …
(exists Service whose (Display Name of it as lowercase contains "ftp"))
(imported comment written by tscott91)
Thanks…
Any way for it to also return the exact full display name of the service?
(imported comment written by jeremylam)
This returns all the display names of the services that match, in a single string split by semicolons:
if
(
exists Service
whose
(
Display Name of it as lowercase contains "ftp"
)
)
then
(
concatenation "; " of display names of services
whose
(
display name of it as lowercase contains "ftp"
)
)
else
"Does not exist"
(imported comment written by tscott91)
Jeremy, you rock. Thanks so much!