TFS版本管理Visual Studio 2013 - 权限问题

时间:2015-07-14 13:42:12

标签: tfs tfs2013 release-management

我正在尝试部署到' 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

由于

1 个答案:

答案 0 :(得分:0)

更改帐户权限后,请确保重新启动部署代理服务。