I have a problem I start an application with admin rights from this application, another application is started at the end. This then inherits the admin rights. But it should start with normal user rights. Does anyone have a solution for the problem or a tip?
How can I start the program without admin rights in VB.NET?
98 Views Asked by arti At
1
There are 1 best solutions below
Related Questions in VB.NET
- how do i stop system stack overflow in visual basic?
- Finding and Using Camera found in “Imaging Devices” in VB.NET
- Finding a specific colour within a bitmap range - VB.net 2022
- Filtering a double value
- How to call late bound extension method from VB.NET (Framework)
- Accessing a variable from a string
- Calling ToString with a nominated format returns Char rather than String
- Monthly attendance report in Crystal Report
- Progress Bar increment while running
- GetValue for Field contains too many arguments
- Icon of Window form application
- vb.net connection string to a regular google drive
- VB.NET how to check if a form already exists?
- How to get paste to work for pasting in text in a textbox?
- How to convert base64 string to image using vb.net
Related Questions in ADMIN-RIGHTS
- In C#, is it possible to Impersonate as an admin user and Run another program with Admin privileges without it asking for a password? - SOLVED
- Run unit test with admin rights
- Run the MSI installer built by VS installer project with admin rights
- Running a Batch with Admin Rights, but with pre saved User&Pass in the Batch to avoid windows asking for the Cridentials
- Git without Admin rights, Windows 10?
- Run Powershell command on Windows 10 startup with admin rights
- Websocket server is not starting without admin rights
- How can I start the program without admin rights in VB.NET?
- How to run a process asynchronously in administration mode?
- Exporting & Import Folder Structure and rigts with CSV file using PS Script
- Access Denied with LDAP and C#
- How to copy/download file into Program Files without admin rights?
- How can I start the PowerShell with admin rights from C#?
- Remove elevated rights required in Delphi 5 application
- Execute external program with administrator rights
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The simplest way is to ask Explorer to start it for you:
You can't pass any arguments to the exe - the exe name is already an argument to explorer and I don't believe there is a way to make explorer interpret the rest of what you give as arguments (to explorer) as "arguments that should be passed to the program being started"..
..but you could create a mini program that passes the relevant arguments and explorer start that mini instead.
And your main elevated program does:
--
"But what if the arguments aren't always fixed?" I hear you cry.. "How can I make my mini program do
Process.Start("myactualprogram.exe", "varying arguments here")when all I can do is launch it by name?"Well.. You could either make your actual program contact your first program via TCP sockets or something and ask it for info - interprocess communciation.. Or could write a file with the arguments that your actual program can pick up.. Or if the arguments are simple enough you could just rename (or copy) the mini program so it contains the arguments in its name and when it launches it can parse its own name
Of course, if your program is expecting args like
/out=c:\temp\file.txtthen you'll have to get a lot more creative with itbecause you can't put/ \ :in filenames.. how about base64 encoding the entire arg string, naming the file that, then having your launcher program decode the b64?