[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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

Posted on 2004-10-26
Medium Priority
Last Modified: 2010-04-17
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

Question by:Grime121
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 22

Accepted Solution

cookre earned 600 total points
ID: 12416836
How about a NET USE with the desired credentials, then just copy the file(s) to the USEd drive letter.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question