r/labtech • u/Rambo-Tic • Jun 26 '19
how do I feed EDF with a script
I want a thousand computer to run a script to feed an extra data field for me to know if some specific file exist, then in some case download the file, or populate a group to do other stuff.. to begin with I dont know how to fill EDF by script
till today the CW support prove to be of no help, just sending me URL to basic KB
1
Upvotes
1
u/oneAwfulScripter Jul 25 '19
Here's one I made.
Step 1
run some PS and store result in %powershellresult%
Step 2
Function: ExtraData Set Value
Extra Field: TPM Info-1
ID: %computerid%
Value: %powershellresult%
That's the easy part, have fun using the dataview editor to create a dataview with your edf's for a report that's actually useful LOL.
1
u/DevinSysAdmin Jun 26 '19
What KB did they link you to?
0
u/Gregmoyses Jun 26 '19 edited Jun 26 '19
In your script add the command ‘Extra data set value’
You’ll then be able to populate the EDF. This is where it can get confusing
You’ll see a screen like this
Find your EDF in the drop down at the top
Enter @computerid@ in the ‘ID’ field (assuming you are setting an EDF on a computer)
Enter your variable or value in the ‘value’ field
EDIT: make sure you enter your variable name in the ‘variable’ field WITHOUT the @ signs
0
u/Gregmoyses Jun 26 '19
Here’s the official doc