none
Azure Files and cmdkey not working

    Question

  • No matter how I try to use cmdkey to persist the credentials for a mapping to an Azure Files share it will not remember them and always asks for them on trying to access the mapped drive.

    I've followed the procedure in https://blogs.msdn.microsoft.com/windowsazurestorage/2014/05/26/persisting-connections-to-microsoft-azure-files/ and tried cmdkey from a Powershell prompt, Powershell prompt run as administrator, command prompt and command prompt as administrator and although it lists the credentials it still asks for a password.

    Has anyone else had this problem and, if so, did you find a resolution?


    Alan Farley

    Thursday, August 4, 2016 8:24 AM

All replies

  • Hi,

    Thank you for posting here! We are happy to assist you.

    1. Do you get any error message or error code?
    2. Check the firewall settings?

    Try changing the Admin Password and check the status.

    If the issue still persists, try the below mentioned steps:

    Follow the steps below to disable the policy, then run the cmdkey command and try to mount file share with stored credentials.

    Steps:
    1. On the Management Server, click Start, click Run, type gpedit.msc, and then click OK.
    2. Under Computer Configuration, expand Windows Settings, expand Security Settings, expand Local Policies, and then expand Security Options.
    3. In the Policy pane, right-click Network access: Do not allow storage of credentials for network authentication, click Properties, click Disabled, and then click OK.

    Regards,
    Sumanth BM

    Thursday, August 4, 2016 4:06 PM
    Moderator