0
我已经使用msdeploy很多次了,我很难过。msdeploy:Win2012R2 - > Win2012R2:“错误代码:ERROR_USER_NOT_ADMIN”
在源上,我以管理员身份登录。
过去,我没有在目的地上使用“用户名”和“密码”参数,因为我会将驱动器映射到目标,作为目标上的本地管理员用户。但是今天,映射驱动器没有效果,我无法找到前进的道路。
- 来源:域DOMAINNEW
- 目标:在工作组中,而不是在域
- 两者都是在同一个本地子网
- 网络访问端口80和managemnet /网络部署端口全部打开。
命令:
msdeploy -verbose -verb:sync -source:apphostconfig="My.App Web Site",computername="APP1B" -dest:apphostconfig="My.App Web Site",computername=192.168.15.122,username=administrator,password="password",authtype=basic -enableLink:AppPoolExtension >%temp%\msdeploy-verbose-log-SITE.txt
错误:
Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to '192.168.15.122' using the Web Deployment Agent
Service, but could not authorize. Make sure you are an administrator on '192.168
.15.122'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_U
SER_NOT_ADMIN.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
我曾尝试:
- 的authType基本,NTLM和ommitted
- 上的相同的源创建用户名称和密码为admin用户stination
- 通过用户名及密码:本地管理目标,建立目标,没有用户名新用户....