- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2022 12:54 PM
Hi,
I like to know how pattern Operation "Parse Command Output" works for windows server. I am trying to get list of directories in a folder. Can you suggest if this operation helps to get that or any other way ?
With regards,
Venkat
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 11:18 PM
Hi, it sounds like this is the right command to use in your case. It can run most of commands you would normally execute directly on the host.
Something like (of course make sure you do it in your specific path):
dir /ad
should return the list of directories, which you can then parse using delimited text or regex, for the specific value you need.
Sometimes you may need to add user and password to your command, as mentioned here:
Just switch to debug mode in your pattern and experiment live until you get satisfying results.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 11:18 PM
Hi, it sounds like this is the right command to use in your case. It can run most of commands you would normally execute directly on the host.
Something like (of course make sure you do it in your specific path):
dir /ad
should return the list of directories, which you can then parse using delimited text or regex, for the specific value you need.
Sometimes you may need to add user and password to your command, as mentioned here:
Just switch to debug mode in your pattern and experiment live until you get satisfying results.