简体   繁体   English

net use 命令要求输入用户名和密码

[英]net use command asking for a username and password

Azure Files SMB Access On-premises with private endpoints, But when I used the.net use command to mount the drive. Azure Files SMB Access On-premises with private endpoints,但是当我使用 .net 使用命令来安装驱动器时。

c:.net use Z: \myshare.file.core.windows.net\testshare its keep asking username passowrd Enter the user name for myacc.file.core.windows.net': c:.net 使用 Z: \myshare.file.core.windows.net\testshare 它不断询问用户名 passowrd 输入 myacc.file.core.windows.net 的用户名':

Thanks Shanuka M感谢 Shanuka M

Azure file share with On-prem AD Authentication Azure 使用本地 AD 身份验证的文件共享

Net use command fails if the storage account contains a forward slash如果存储帐户包含正斜杠,Net use 命令将失败

 Try the below mentioned cmdlet New-SmbMapping -LocalPath z: -RemotePath \\StorageAccountName.file.core.windows.net\sharename -UserName StorageAccountName -Password "AccountPassword"

This article will help in Mapping a Network Drive to an Azure File Share Using Domain Credentials本文将有助于使用域凭据将网络驱动器映射到 Azure 文件共享

I would recommended to please refer the Prerequisites: on-premises Active Directory Domain Services authentication over SMB for Azure file shares我建议请参阅先决条件: 通过 SMB 进行本地 Active Directory 域服务身份验证以获取 Azure 文件共享

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM