powershell logon scripts

Posted on 2015-01-22
Last Modified: 2015-03-24
Hi Experts,
I have to map the cloud server using WebDAV so that users can use the mapped drive.
My problem is that when I use a regular logon scripts, the user name and password screen pops up.
If I use /user:domain\%username% parameter the end, then only password is required
Can I automate this process using a PowerShell so that nobody has to put the username and password?
If you have sample of this, that would be nice.
Thanks in advance
Question by:Ksean
  • 4
  • 2
LVL 92

Expert Comment

by:John Hurst
ID: 40564933
You can put the password after the user name and that will work. I use this on my own very secure machine.

Author Comment

ID: 40565038
This runs from AD servers so I cannot put a specific password. and I also don't want to hardcode the password anywhere.
LVL 92

Expert Comment

by:John Hurst
ID: 40565044
I don't think powershell can help then. You would need to create some sort of program.
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

LVL 92

Accepted Solution

John Hurst earned 500 total points
ID: 40566406
Can I automate this process using a PowerShell so that nobody has to put the username and password?

Yes, with a regular script as noted.

I also don't want to hardcode the password anywhere.

180 degrees contradicts the first objective. Complete oxymoron.

If you do not wish to hard code the password (good idea), then it must prompt.

Author Comment

ID: 40640687
I've requested that this question be deleted for the following reason:

I cannot get the answer
LVL 92

Expert Comment

by:John Hurst
ID: 40640688
The workaround suggested above WILL work. If you do not want to hard code things then you must live with a prompt. So I do not think you can say "No Answer"

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.
Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now