Question

I wish to have an automated process that basically deploys (copies) a asp.net web site in a CI situation. I have built the web site and I then want to copy the code to the web server. This powershell code is running on my build server. the build server is running under a defined service account and i have given that account full control to the folder on the web server where the web site needs to be deployed.
The powershell code works if i run it from my local machine under my accoount (i have full control). When I run the code from the build under my admin acount it fails. when it runs under the service account it fails.
The web server and build server are both windows 2003 boxes. My machine is Vista.

I am really confused here it seems like the user credential are not correctly getting passed from the build server to the web server, but are from my vista pc to the web server. I wish our admins had a clue, this seems like some very basic authencitaions issues.

commands that a failing are Copy-Item and Remove-Item, I can do get-childitems no worries as i am copying all the existing file into a zip before i re-deploy (ie i can access the folder i just can write)

Thanks in advance

RhysC

Was it helpful?

Solution

See this: PowerShell 2.0: Accessing Windows Shares during a Remote Session

I know you mentioned that Get-ChildItem was not failing, but what are the read rights (share and file-system) on the WebServer?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top