Link to home
Start Free TrialLog in
Avatar of zachvaldez
zachvaldezFlag for United States of America

asked on

Changin login /password

So, I can access a file server in the network, I was given a login credentials- username and password.
I will specifically use this login/pw to access files in a server to allow reading and writing to this particular folder.
Windows authentication is used to login to the app.

I would like to switch to this  ID/pw given to me to authenticate and authorize writing and reading files to the server.

How would I sign in to this identity when I have to write and read files to this particular server? And then when I'm done, Ill switch it back to my original id/pw  identity?
Avatar of William Miller
William Miller
Flag of United States of America image

Your IT department should have given you all of the information you need to access the password protected share they have setup for you. If not, then you'll need to contact them as we can't really help you without information we don't know ourselves.
Avatar of Brian B
What version of windows? If your regular account doesn't have access to the share, you should get prompted for user and password. Just check the box to remember your password and you won't get prompted again.

Actually, you have put C# as the topic of your question, so the windows experts are not seeing it right now. If you change it to the appropriate windows version or let me know and I'll change it for you.
Avatar of zachvaldez

ASKER

I placed C# as topic when I opened this question???
windows 10 . Actually, I wanted to have this identity used by users for opening a file from that secured folder using a hyperlink.
How can I set this ID/pw as shared, embedded in the app.
Create a permission on the folder for the specific ID/PW you want the folder to have so that only it can access the folder. Then, create that ID/PW. Since the folder would be on your internal network, you would only need to give them the share address. They would then be prompted ID/PW when they attempt to access the folder. Am I understanding you right here in assuming that's what you're attempting to do?
This is the scenario and I know you are close to nail it down with what you just commented. The files are written in a folder. And there are
hyperlinks for each file built from a front end.  Is it possible to bypass the  id/pw prompt as the Id/pw are cryptic or hard to type. I just want to hard code these in the app (but don't know how to code it) that will serve for that routine only.
This is a bit old school, but might work for you... From a command prompt:
net use <x:> \\<server>\<share> /user:<username@domain.com> /persistent:yes

This will map a drive letter to the share using the alternate credentials you were given.
What's the app? I'm not sure you could bypass those credentials without an app that automatically logged in through the portal for the protected information first.
I would like to have all the actions in a button click event so that it only persists during that execution.
You could put that command I gave you in a batch file, followed by a command to launch the app.

Alternatively you can just launch the app using "run as" (shift+right click), and put in the credentials when prompted. If that works I can help you figure out how to make that easier.
SOLUTION
Avatar of William Miller
William Miller
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is cool contribution! Right now I can open the files but need to login as admin. Is there a way to bypass windows security, meaning
login userid/pw
Great help!!