Avatar of Joe Grosskopf
Joe Grosskopf
 asked on

IE run as different user....always

I have several people sharing one computer in the production area. The computer logs in with a generic login and password for the domain so people can access it and open local program files for their CNC machines. However, the sharepoint site has different access for each user. I would like to have IE open and prompt for the user and password. I'm trying to avoid having each user logout of the computer, then login with windows login and password, then open IE and go to sharepoint. If they ctrl-right click the app, and select run as different user, it works, but I'd like to avoid having them do that. Just each time it launches it essentially does the "run as different user option". Can this be done?

Thanks
Microsoft SharePoint

Avatar of undefined
Last Comment
Joe Grosskopf

8/22/2022 - Mon
John

I would like to have IE open and prompt for the user and password.

Set IE to NOT save forms and passwords (Forms settings in IE, Tools, Internet Options)

Then clear the IE credentials in Credential Manager if they exist there. Other do a full Reset (clear everything including forms and password).  Tools, Internet Options, Advanced, Reset, ALL categories.

This will make users of the site log in.
John

If you need to, you can lock down user settings to prevent users from changing.

https://helpdeskgeek.com/how-to/disable-internet-options-tabs-ie/
ASKER CERTIFIED SOLUTION
Shaun Vermaak

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Sam Simon Nasser

create a batch file and save it on your desktop, use the following script
@echo off
rem @--------Window config
COLOR F3
mode con cols=60 lines=10
echo.%date%
rem @--------Authentication
@echo.
@set /p user=Username:
@echo.
@runas /user:%user% "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.sharepointwebsite.com"

rem @ if you are in a domain use:
rem @runas /user:DOMAIN\%user% "C:\Programas\Internet Explorer\IEXPLORE.EXE http://www.google.com"

rem @---------Window close time (after "-n" put window close time in seconds)
ping -n 3 127.0.0.1>NUL

@cls
@exit

Open in new window

it will ask the user for their username and password, open IE and go the specified website. script from here https://superuser.com/questions/379120/how-to-prompt-a-user-for-run-as-credentials-when-double-clicking-an-icon/379161#379161
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Joe Grosskopf

ASKER
Thanks