First of all, I am a huge fan of this product. I've spent a long time looking and this covers 99% of all my needs.
I was curious, I am in the process of setting up my inventory and reporting of my home network, and was wondering if it is possible to create something that would run a remote CMD script on a computer and have it output the data embedded into either my current tab or a new tab. In this instance the command DCDIAG. Wasn't sure if it was possible and if it is, how to do it.
Thanks again!
Hello,
Well... what technology is available for the remote workstation? I could imagine something with PS Remoting, but its consistent only when your own workstation is on the same domain. Is that your case?
Best regards,
Maurice
It can be. I have my work computer on my work domain, and a few computers on my home, the same domain as my DC. I was hoping there would be a way to work with this no matter the computer and have it just input the domain\username automatically regardless of domain.
Where is the Powershell portion, so I can experiment with it? Edit Special Actions, OR create a new item powershell?
So I found if I open a remote powershell I can manually input DCDiag. Is there a way to set it to automatically run a command on opening?
we need to use the type "Macro/Script/Tool" and you will be able to launch this from any entries of the Connections Family (most likely RDP in your case)
The credentials used by the tool will be in, you guessed it, in the tools section of the RDP entry (under management tools)
If you allow me a few minutes, I will try to provide you with the entry
Maurice
I would appreciate it. Thank you very much!
Create a "Command line" entry, the one in the Macro/Scripts/Tools family (green)
give it a name
enter "dcdiag" in the command (without the quotes)
enter "/s:$HOST$" in the arguments (without the quotes)
In the Advanced tab, tick
"Open embedded/tabbed"
"run in 64 bit mode"
"run as another user"
if not on the same domain, tick also "net only"
Save the entry
On the RDP entry, ensure that the Management Tools/Tools are set to use session credentials,save it
Now, right click on the RDP, drill down to macro/script/tools and select the tool created at step 1
there may be a few adjustments for credential handly, but thats close to a working solution
Maurice
Got it working without the dollar signs, ie. /s:DC vs /s:$DC$
Thanks again, I really appreciate it!!