Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


powershell logon scripts

Posted on 2015-01-22
Medium Priority
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
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
  • 4
  • 2
LVL 98

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 98

Expert Comment

by:John Hurst
ID: 40565044
I don't think powershell can help then. You would need to create some sort of program.
2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.

LVL 98

Accepted Solution

John Hurst earned 1500 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 98

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

Cyber Threats to Small Businesses (Part 2)

The evolving cybersecurity landscape presents SMBs with a host of new threats to their clients, their data, and their bottom line. In part 2 of this blog series, learn three quick processes Webroot’s CISO, Gary Hayslip, recommends to help small businesses beat modern threats.

Question has a verified solution.

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

Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
You deserve ‘straight talk’ from your cloud provider about your risk, your costs, security, uptime and the processes that are in place to protect your mission-critical applications.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), 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…

609 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