我正在尝试部署到' Program Files'目标服务器上的目录,该目录服务器在一个帐户下运行TFS部署代理,该帐户具有'管理员'特权。
我无法在' Program Files'
上执行任何目录操作当然,部署工具应该能够访问程序文件吗?
Microsoft Release Management ManageWindowsIO PowerShell Script v12.0
Copyright (c) 2013 Microsoft. All rights reserved.
Executing with the following parameters:
Action: Create
Source file or folder name: c:\Program Files\xxx
Destination file or folder name:
Read Only:
Archive:
System:
Hidden:
Owner Domain:
Owner Name:
Working Directory: (script path)
New-Item : Access to the path 'xxx' is denied.
At C:\Users\xxxxxxxxxxxxxx\AppData\Local\Temp\RM\T\RM\Create Folder\201507
141521278761159-39\ManageWindowsIO.ps1:165 char:17
+ New-Item <<<< -ItemType directory -path $FileFolderName
+ CategoryInfo : PermissionDenied: (C:\Program File...
xxx:String) [New-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft
.PowerShell.Commands.NewItemCommand
Done with errors.
The folder could not be created.
Exiting with error: 9999
由于
答案 0 :(得分:0)
更改帐户权限后,请确保重新启动部署代理服务。