the wmic command to get the system version blocks the execution on some xp
Closed this issue · 0 comments
sdnetwork commented
During the use of winser of some xp machine i have remarked that winser stay blocked at this step.
i have done some test and some search :
like this link : http://forum.sysinternals.com/psexec-hangs-when-running-wmicexe_topic14752_page2.html
a good solution to explictly close the stdin by add "< nul" at the end of :
wmic OS get OSArchitecture => wmic OS get OSArchitecture < nul
and it works on all machine with that.
i have done a pull request if you want.