Avatar of klsphotos
klsphotos

asked on 

Mapping Azure Storage drive automatically

Hi Experts,

I have a Azure Storage Folder Share and have successfully mapped it to my windows system here at the office and also on our RDS server out in Azure.  I have tested and saved a document to it and can see it on the RDS server.  Works beautifully.

I did this by adding a mapped drive and entering in the credentials and password key of the share.

How can I do this automatically?  

In group policy the "connect as" is greyed out.  When I created a powershell script and ran it it didn't work.

I want the users who log into the RDS server to have this drive show available to them and I want selected users here at the office to have the same drive available to them.  

Thank you,

Karen
StorageWindows OSAzure

Avatar of undefined
Last Comment
Seth Simmons
Avatar of Jose Gabriel Ortega Castro
Jose Gabriel Ortega Castro
Flag of Venezuela, Bolivarian Republic of image

What if you do a bat file.

net use Z:\  \\(azuredrive)  /u:<azureuser> /pwd
And save it into the Start up scripts on the computers (local policy).

Or just Following this script

$acctKey = ConvertTo-SecureString -String "<storage-account-key>" -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential -ArgumentList "Azure\<storage-account-name>", $acctKey
New-PSDrive -Name <desired-drive-letter> -PSProvider FileSystem -Root "\\<storage-account-name>.file.core.windows.net\<share-name>" -Credential $credential

Open in new window


that is in the documentation (https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows)

I mean setting it as startup script by user on the rdp policies or local policies.
ASKER CERTIFIED SOLUTION
Avatar of klsphotos
klsphotos

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: klsphotos (https:#a42479179)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
Windows OS
Windows OS

This topic area includes legacy versions of Windows prior to Windows 2000: Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions including Windows Mobile.

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo