This can be achieved by using following steps
- Right click on desktop and create a shortcut. Then following window will open.
- Enter the following command in the box that appears :- runas /user:ComputerName\Administrator /savecred "C:\Path\To\Program.exe" (change the highlighted part according to respective computer) Then press next.
- In the next window that appears you can set any name that you want for that shortcut
- After clicking Finish the shortcut will be created. While opening it for first time you have to give password once then after that you need not have to give password
For example:-
- Used following command to use hyperview in administrator mode :- runas.exe /user:ind-sim-29\Admin /savecred "C:\Program Files\Altair\2022.2\hwdesktop\hw\bin\win64\hw.exe /clientconfig hwpost.dat" (Here changed the computer name, Administrator name and path of program as per my device)
- Then changed the name of shortcut to Hyperview
- After clicking finish short cut is created and it will ask password while opening it 1st time after that it don't ask for password