![]() You must be in the Wireshark directory (or have the location in your PATH environment settings):Ĭ:\Program Files (x86)\Wireshark>tshark -Dġ. Nothing at all, no output and no program uninstalled.A quick aide-memoir about how to go about capturing traffic from the Windows command line. Invoke-Command -ComputerName $server -ScriptBlock So the question is, how do you run a program that has spaces in its path and also contains arguments outside of the path such as above. So the thing is, that value is stored in a variable $ucmdīut I cannot seem to get Invoke-Command or Invoke-Command including Invoke-Expression to be able to execute that command. "C:\Program Files (x86)\Wireshark\uninstall.exe" /S One of the main reason for that is the way quotes are handled.įor instance, the Registry for the Wireshark application contains QuietUninstallString with a value of: But if I try to run said command nothing happens. I have been able to obtain the uninstall commands from the registry. Since win32_product has issues (between not returning the full list of programs and encurring a repair of applications) I ve been looking at the registry to get applications matching a certain expression and in-installing it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |