Pass user credentials in vbscript

hello,
I have vbs script that:
-reads csv files with filepath and filename,
-copies the files to my archive storage
-adds entry for filename "copy start" (timestamp), "copy end" (timestamp) the log file,
and repeats the task for each entry in the csv.
It can take up to 3 days to copy all my files across.

source backups files are stored at multiple servers that are stand alone (not members of AD)  local username/password is requires.

I don't want to hard code logon credentials in my script. how do I:
1 capture logon credentials as variable for each source server
2 authenticate to source server to copy source files.
Rafal_MituraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Robberbaron (robr)Commented:
you either have to ask for each and every one when starting the script (which defeats much of usefulness of scripting) or store them in a text file in some encrypted format.

not great security but at least someone will need your script that decrypts as well as the encrypted list
0
Rafal_MituraAuthor Commented:
I need equivalent of powershell "get-credental" and store it as variable natively in vbs
or call powershell from vbs to do get-credental
or rewrite entire logic in powershell natively (trying to avoid it).

what would you suggest?
0
Robberbaron (robr)Commented:
in vbs, you can ask for the list of usernames and passwords via InputBox. http://www.robvanderwoude.com/vbstech_ui_userinput.php

but using it as a learning excercise for powershell is probably worthwhile as that is the future.  (im too old to learn PS too much now !)
0
Rafal_MituraAuthor Commented:
I found answer in here:
https://www.experts-exchange.com/questions/22676274/VBScript-authentication-to-remote-PC-and-file-copy.html

user will be queried for logon details and stored as variable in ram until script is terminated (finish running).
Thanks for your help.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rafal_MituraAuthor Commented:
answer identified elsewhere on forum
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.