Its not quite the approach I wanted to take which is uninstalling from the "Programs and Features" gui but its worth a shot. Just a quick Update. It worked! Its not quite the same as uninstalling from the "Programs and Features" screen BUT atleast I dont have to logout the user who is logged in.
I just launch a command line with admin privileges and run the WMIC commands. Office Office Exchange Server. Not an IT pro? Resources for IT Professionals. Sign in. United States English.
Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows 7 Networking. Sign in to vote. Thus I am lead to believe that this is not truly being run as an admin I am trying to avoid logging the regular user out. Any help is appreciated. Edited by chambooca Wednesday, October 10, PM. You can uninstall a program from your computer if you no longer use it or if you want to free up space on your hard disk.
You can use Programs and Features to uninstall programs or to change the program's configuration by adding or removing certain options. Select a program, and then click Uninstall. Some programs include the option to change or repair the program in addition to uninstalling it. To change a program, click Change or Repair. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. We have Win7 machines on a domain that we'd like to open the "Programs and Features" control applet via the command line while a regular user is logged in.
Here's the catch: I know how to do this using runas from the command line BUT after "Programs and Features" opens, I don't truly have the ability to remove a program.
I am told that I need to be an Admin to do so. Here are the commands I have tried:. I have also tried all of the above as one long line of code instead of launching a cmd. As you can see, I have tried running the command using both a local admin account Administrator AND a domain admin account. I have also tried launching the runas command as one long command opening the "programs and features" AND 1st launching a cmd.
The result is the same: The "Programs and Features" windows opens but when I try to perform an uninstall, I am told I need Admin rights. Thus I am lead to believe that this instance of "Programs and Features" is not truly being run as an admin. I am trying to avoid logging the regular user out. I am also aware that every program has its own uninstaller, I do not want to uninstall that way. I want to use the uninstaller in "Programs and Features".
Any help is appreciated. Is there any particular reason you're trying to do this from the command-line as opposed to built-in features available in the UI? Method 4: Another well-known trick 1. In Start Menu, type any program name which you to run as administrator. Example: cmd. Method 5: Quite Advanced Trick 1.
0コメント