Test-NetConnection
cmdlet.Test-NetConnection
cmdlet, the Azure PowerShell module must be installed, see Install Azure PowerShell module for more information. Remember to replace <your-storage-account-name>
and <your-resource-group-name>
with the relevant names for your storage account.reg query HKLMSYSTEMCurrentControlSetServicesLanmanWorkstationParametersPolicies
HKEY_Local_MACHINESYSTEMCurrentControlSetServicesLanmanWorkstationParametersPolicies {96c345ef-3cac-477b-8fcd-bea1a564241c} REG_DWORD 0x1
New-SmbMapping -LocalPath y: -RemotePath servershare -UserName accountName -Password 'password can contain / and etc'
Echo new-smbMapping .. | powershell -command –
runas
.cmdkey /add:<storage-account-name>.file.core.windows.net /user:AZURE<storage-account-name> /pass:<storage-account-key>
net use * storage-account-name.file.core.windows.netshare