Need help Creating a powershell script for a project....

Greeting Experts,

I hope someone out there can give me a hand creating a PowerShell script to write server user accounts in to the server’s memory (i.e. lsass.exe process).  The manual process uses the following process below in the following steps… I am trying to automat this in to a script so I can plug in 5 different users accounts in to the servers memory (i.e. user1, user2, user3, etc.) along with a password for each one.  
My problem is that my scripting skills are not that advanced and was hoping to find someone that has the skill set to create a small script to plug in 5 different user accounts with passwords  and hand them off to the system as it is shown below in the manual way… I don’t know if this can be done or note… can someone give a try….. ???  
If you have any questions please ask…..


Manual process for creating account in memory.
1)      Open up command line
2)      Type in the following string “ runas /user:computername\username /netonly  cmd.exe
3)      Hit Enter
4)      Type in password
5)      Completed  (Screenshot blow)


Manual Process
MikeSecurityAsked:
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.

McKnifeCommented:
Again?
I linked the batch that you could have used, a one liner. Why not use it?
MikeSecurityAuthor Commented:
it does not pass off the passwords for mutiple users (i.e. user1, user2, etc).... instead it want to pass off null passwords. Like it was not entered.....
McKnifeCommented:
?
Please explain. If I use multiple of these lines, I can create fake honey hashes, as many as I like.
The IT Degree for Career Advancement

Earn your B.S. in Network Operations and Security and become a network and IT security expert. This WGU degree program curriculum was designed with tech-savvy, self-motivated students in mind – allowing you to use your technical expertise, to address real-world business problems.

MikeSecurityAuthor Commented:
Ok... so you are using mutiple lines.. but are you using one text file for all the passwords or different text files with one password in each
McKnifeCommented:
Use one file, one login script for all.
MikeSecurityAuthor Commented:
Can you show me the script you are using for reference...????
McKnifeCommented:
What I linked, but just more lines.
runas /user:hq\ScriptAdmin /netonly gpresult < password1.txt
runas /user:hq\SuperAdmin /netonly gpresult < password2.txt
...
MikeSecurityAuthor Commented:
Quick Question: when I attempt to use the following syntics  " runas /user:Domain\ScriptAdmin /netonly gpresult < C:\password.txt" it does not want to pull in the password from the password file... both the batch.bat file and password.txt file are both sitting in C:\ directory
McKnifeCommented:
To test that, I would need to get all shields down here in the office. I will test at home, but believe me, I already did and it worked a few days ago. What makes you believe that it doesn't? How do you determine that "it does not pull"?
McKnifeCommented:
tested:
runas /user:Microsoft.com\Bill /netonly notepad < c:\pw.txt
Use the exact same. Previously, I quoted those guys and gpresult was no good example. Just take Notepad. That'll leave Notepad opened, though. You will need to find out why gpresult and notepadwork differently.

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
MikeSecurityAuthor Commented:
Thanks for the help..!!!!
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
Powershell

From novice to tech pro — start learning today.