Re: Get-Content : Cannot find path

2016-12-02 Thread Joel Reed
There might be a couple possible explanations here. First and my guess at most likely cause is that "you" (meaning the Jenkins slave agent executing your code) does not have read access to your applicationHost.config and/or the config parent directory. In my fairly default environments only SYST

Re: Get-Content : Cannot find path

2016-12-02 Thread aaron . trujillo
Bump On Wednesday, November 30, 2016 at 4:39:15 PM UTC-7, aaron.t...@total.care wrote: > > $FilePath = 'C:\Windows\System32\inetsrv\config\applicationHost.config' > $Line2Edit = '' > $AppendAllow = ' />' > > (Get-Content -Path $FilePath) -replace $Line2Edit , "$AppendAllow" | > Set-Content $

Re: Get-Content : Cannot find path

2016-12-01 Thread aaron . trujillo
This is ran as a PowerShell exectued by Jenkins. I have attached the console output for reference . On Wednesday, November 30, 2016 at 6:19:51 PM UTC-7, ok99

Re: Get-Content : Cannot find path

2016-11-30 Thread niristotle okram
More info needed. Is this executed as a powershell script via jenkins or via the pipeline script or executed as a batch command (but feeding a powershell code)? What does the console error look like? On Wed, Nov 30, 2016 at 6:39 PM, wrote: > $FilePath = 'C:\Windows\System32\inetsrv\config\ap