I think I'm getting quite good at psexec. Hi All, This is my first post, and I'm hoping i'll get a good impression by getting an answer to my first issue. Which is convenient, but also risky as there probably will be no chance to cancel your action, so use this with extreme care. To which we must answer yes y to confirm. But the reality is very different. I've tried running the command as myself a domain admin , and as the local admin account, but I get the same result everytime.
Anybody have any ideas for further troubleshooting steps? On test machines where it worked, the uninstall call would reliably shut the client down, so I don't think it is because it is running on the user's machine. To quit from the wmic prompt, type quit or exit. It is free with basic functionality. I managed to fix this myself, using psexec. Thanks for any one who can find the last step to make this the perfect way to get rid of old Java's silently and install the newest ones. Well here comes wmic to the rescue! That's probably what's causing this.
This is barely scratches the surface. I needed to uninstall an old version before the installation of a newer version. To cut a long story short I had to manage the deployment of an aging custom application upgrade. System Information The program can also provide details on many other aspects of your system. It's not that the files are in use, so it can't remove them.
How do i make a normal batch file command work on a text file? When I try to run it on any other machine, though, I get a ReturnValue of 1602. I am trying to install. Every version of Windows sees the command line given new powers and abilities, and if you don't explore these then you really are missing out. Do you regularly have to uninstall and reinstall particular programs, for instance?. All good and well until you realise the app is unaware of any useful command line installation switches, let alone uninstall switches.
I know my script is good because it works when no one is logged in. I picked up an extremely useful tip today. Batch files are the only way of scripting that I know, and I like to think i'm getting pretty good at it. ReturnValue is 0, and when i then log on, it's all done. I'm trying to troubleshoot this script so I can give it to some interns to run from their machines with minimal user interruption. How old is it, anyway? Open a command prompt windows and enter wmic 2.
I can remotely uninstall stuff, and there's no trouble there. Unfortunately without advanced scripting using delegation techniques for mapping network disks , this is not possible. Though again, beware, programs closed in this way probably won't prompt you to save files you're working on, so use the command carelessly and data may be lost. Thanks for all your help today! You are using this link I take it? In most situations, this isn't preferable - it would be ideal to install from a network drive. Is there a way to run msiexec on remote machines? I'm getting the following error when trying to install a program. In most situations, this isn't preferable - it would be ideal to install from a network drive. Regarding the logged in issue - when noone is logged in it would use the system account.
It can with a single command-line remove all older versions of the program, without the need of third-party software. Commands like: wmic product list brief wmic service list brief wmic process list brief wmic startup list brief will list your installed software, services, running processes and Windows startup programs, for instance. Note: This command could take a minute or two to complete depending on how many programs you have installed on the computer. It offers a lot of features and commands to configure the computer and you can change almost all possible system parameters with it. I received an inquiry from one of my mid-size 100-200 users customers today. Examples Note To run the wmic command, you must have. Below, is an example of how the output may appear in the bios.
However it did not function the way I wanted. I also tried on a couple other remote machines that are still on and get the same thing. Oh, I can uninstall a program, just not install one through wmic. Lets get hands on and start uninstalling programs Fire up your command line interface and type wmic product get name by only typing wmic you enter the subshell and you should get a list of all programs installed on the computer. With our admin shell, we're going to type wmic and then push Enter button. Even then it should not re-boot until I manually tell it to. Unfortunately without advanced scripting using delegation techniques for mapping network disks , this is not possible.
Someone Logging in may cause the files to be loaded. All machines involved are running Windows 7 Pro 64bit, and are on the same domain. I'd looked into it a while back for system deployment and ruled it out for some reason. I've written a file that prompts them before it uninstalls so they know whats going on, and don't cancel it. Would it work better if i used an file for the node? Do you know how i force it to run with the system account? The latest current version 2. To which we must answer yes y to confirm. I've also tested on one of the failing machines, and it does not work even when the client is not running.