Quantcast
Channel: Remote Desktop Services (Terminal Services) forum
Viewing all articles
Browse latest Browse all 25525

WMIC ExecutablePath across remote machines

$
0
0

I am trying to kill a number of process with a certain command/exe path.  I can use the following command on the physical client and it will work correctly. wmic process where "ExecutablePath LIKE '%C:\\Program Files (x86)\\XXXXX\\XXXXXX\\XXXXX\\%'"delete Now when I try and throw it into a bat file it is claiming that "there are no instances available"   The command I am using in the bat iswmic /node:@kill.txt process where "ExecutablePath LIKE '%C:\\Program Files (x86)\\XXXX\\"%Universe%".Universe\\"%Ring%".Ring\\%'" delete

Is there something I am missing in order to make it work across clients?  The "%Universe%" and "%Ring%" are user entered variables.  Which I havent tried either, so I'm not sure if that is the correct formatting. 

Thank you!


Viewing all articles
Browse latest Browse all 25525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>