I am working on a project that wants me to connect to corporate's SharePoint and download files using scripts. But they don't want to put username and password in the scripts or giving out credentials. How can I get access to sharepoint from the corporate's computer? I guess I can assume everything is logged in, so I don't need to enter passwords.


One thing that you can try using Power Shell is configure the Generic credentials from the Control Panel using a service account like this .

enter image description here

Then schedule your script to be run from this server and read the credentials like this .

  1. Install-Module -Name CredentialManager
  2. $managedCred = Get-StoredCredential

Let me know if any doubts with this one.

  • That can work. But I found out the sharepoint site uses kerberos and ntlm for auth. and both requests packages are not available. I can use win32HTTP to connect to the website – hhh Jun 20 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.