shell - Powershell runquery in clients machine ASP.NET -
i want programme names installed windows store(client side). heres code. first of possible? secondly if yes why code not working?
stringbuilder stringbuilder = new stringbuilder(); var shell = powershell.create(); // add together script powershell object shell.commands.addscript("import-module appx"); shell.commands.addscript("get-appxpackage "); command c = new command("out-string"); c.parameters.add("width", 150); shell.commands.addcommand(c); // var results = shell.invoke(); collection<psobject> results = shell.invoke(); foreach (psobject obj in results) { stringbuilder.appendline(obj.tostring()); }
no results returned (only 1 , empty . )
asp.net shell powershell client-server client-side
No comments:
Post a Comment