Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

powershell logon scripts

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
0
Ksean
Asked:
Ksean
  • 4
  • 2
1 Solution
 
John HurstBusiness Consultant (Owner)Commented:
You can put the password after the user name and that will work. I use this on my own very secure machine.
0
 
KseanAuthor Commented:
This runs from AD servers so I cannot put a specific password. and I also don't want to hardcode the password anywhere.
0
 
John HurstBusiness Consultant (Owner)Commented:
I don't think powershell can help then. You would need to create some sort of program.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
John HurstBusiness Consultant (Owner)Commented:
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.
0
 
KseanAuthor Commented:
I've requested that this question be deleted for the following reason:

I cannot get the answer
0
 
John HurstBusiness Consultant (Owner)Commented:
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"
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now