How Do I Use a Username/Password to Log in To a File Share using VBS?

I have a script that pulls hardware and software information out of the computer and then stores that information in a file on a remote file share. The problem is, I need to incorporate a username and password into the VB Script. That way I won't have to make the file share wide-open to everyone. I know someone could just pull the username/password out of the script, but it's better than nothing. The files aren't THAT important, but I still would like to keep a minimal amount of security. Here is a link to my script: http://home.centurytel.net/grime/scripts/inventory/inventory.txt

Thanks.
LVL 1
Grime121Asked:
Who is Participating?
 
cookreConnect With a Mentor Commented:
How about a NET USE with the desired credentials, then just copy the file(s) to the USEd drive letter.
0
All Courses

From novice to tech pro — start learning today.