Search found 1 match
- 2023-Feb-22, 5:34 pm
- Forum: Windows PowerShell
- Topic: Mapping Accessible Network Shares via Powershell
- Replies: 1
- Views: 199
Mapping Accessible Network Shares via Powershell
I have written the following script: line 1: cmdkey /add:pcname /user:network\username /pass:password line 2: New-PSDrive -Name "E" -Root "\\vm-beta\ShareOne" -Persist -PSProvider "FileSystem". I want to rewrite this script in that once the login credentials to the NAS ...