How to display output of script.
Good morning to everyone. I'm a newbie using the K1000We've had an issue with an domain account being locked out and we dotted it down to computers caching said account on some computers. I have this batch file "rundll32.exe keymgr.dll, KRShowKeyMgr" that displays cache credentials but, I don't know how to have my K1000 display the output of the script so we can disable the cache account locking domain account. Thank you ahead of time if you can help us with this issue.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Nico_K
7 years ago
I would use Custom Invenory Rules doing that.
1. Create a new Software Inventory Item, name it accordingly and run the following CIR in it:
CommandShellTextReturn(cmd /c "cmdkey /list")
(did not test it, but this should be fitting, since your way is producing a popup, cmdkey a command line output)
This creates a Custom Inventory Item on all machines as soon as they are checking in with the saved credentials.
2. Build a Smart label with the output of the CIR so you have all affected machines in a label
3. run a script regulary on all machines in that label
1. Create a new Software Inventory Item, name it accordingly and run the following CIR in it:
CommandShellTextReturn(cmd /c "cmdkey /list")
(did not test it, but this should be fitting, since your way is producing a popup, cmdkey a command line output)
This creates a Custom Inventory Item on all machines as soon as they are checking in with the saved credentials.
2. Build a Smart label with the output of the CIR so you have all affected machines in a label
3. run a script regulary on all machines in that label