How to use put file operation in pattern?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 12:14 PM
Hi, Need a help here.
I have a .vbs file which i want to include in the windows OS pattern to get the additional info about the server.
Currently i tried executing this file manually from command prompt as administrator and i am able to get the required data.
How to use put file operation in a pattern? Where should i upload the file and how to call that file in a pattern and run that as admin to get the information? How mid server will identify and run this file in a server as admin?
Please suggest.
- Labels:
-
Discovery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2022 01:55 AM
Hi, I've not done this myself, so I cannot offer a full solution but perhaps the below pointers might be helpful:
First, you can create an uploaded file and then transfer it to the specific location using the put file as you mentioned:
then once you know the path for that file, you can just run the command you would be runnig locally from the pattern, using Parse Command Output:
In the above command you can provide the required credentials for the command using placeholders (the applicative credentials need to be added to SN credentials table first). I would recommend you test it first by going into the debug mode, perhaps place the file manually first and just see if the command will be able to run it.
What is left is probably how to first check if the file already exists not to upload it again, or how to delete the file once details are retrieved, I imagine this can be done using specific commands as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 07:34 AM
Hi @Doraemon
Found your post when I looked for a similar think and I solve your question myself using this link:
There's a KB article on this and that is also pointing to Docs site where you have all the information to your question.
Have a look here:
KB0863786 - Execute scripts from Pattern
and: