It adds a folder named 273113a3-d2c2-4479-bc61-605e2d725c for example and when finished has a web.config in there.
I tried running config manually on the web.config in the folder and it runs ok manually?
Does any one have a encrypt config that works on win2008r2, or what is wrong?
Executing script on ‘jfprodwebtest’
April 20th 2018 10:40:39Info
Configuration - Encrypt .config
April 20th 2018 10:40:39Info
WebsiteDirectory: C:\inetpub\wwwroot\SalesforceDataCleanup
April 20th 2018 10:40:39Info
SectionsToEncrypt: connectionStrings
April 20th 2018 10:40:39Info
Provider:
April 20th 2018 10:40:39Info
ConfigFile: web.config
April 20th 2018 10:40:39Info
configFilePath: C:\inetpub\wwwroot\SalesforceDataCleanup\web.config
April 20th 2018 10:40:39Info
Directory: C:\inetpub\wwwroot\SalesforceDataCleanup
April 20th 2018 10:40:39Info
Mode LastWriteTime Length Name
April 20th 2018 10:40:39Info
April 20th 2018 10:40:39Info
d---- 4/20/2018 10:42 AM 273113a3-d2c2-4479-bc61-605e2d725c
April 20th 2018 10:40:39Info
8c
April 20th 2018 10:40:39Info
Directory: C:\inetpub\wwwroot\SalesforceDataCleanup\273113a3-d2c2-4479-bc61
April 20th 2018 10:40:39Info
-605e2d725c8c
April 20th 2018 10:40:39Info
Mode LastWriteTime Length Name
April 20th 2018 10:40:39Info
April 20th 2018 10:40:39Info
-a— 4/20/2018 10:42 AM 0 web.config
April 20th 2018 10:40:39Error
New-Item : Could not find a part of the path ‘C:\inetpub\wwwroot\SalesforceData
April 20th 2018 10:40:39Error
Cleanup\273113a3-d2c2-4479-bc61-605e2d725c8c’.
April 20th 2018 10:40:39Error
At C:\Octopus\Work\20180420144218-960-17\Script.ps1:76 char:14
April 20th 2018 10:40:39Error
-
New-Item <<<< -ItemType File -Path (Join-Path $tempPath $fileName) -For
April 20th 2018 10:40:39Error
ce
April 20th 2018 10:40:39Error
+ CategoryInfo : WriteError: (C:\inetpub\wwwr…1-605e2d725c8c:S
April 20th 2018 10:40:39Error
tring) [New-Item], DirectoryNotFoundException
April 20th 2018 10:40:39Error
+ FullyQualifiedErrorId : NewItemIOError,Microsoft.PowerShell.Commands.New
April 20th 2018 10:40:39Error
ItemCommand
April 20th 2018 10:40:39Error
April 20th 2018 10:40:39Fatal
The remote script failed with exit code 1
April 20th 2018 10:40:39Fatal
The action Configuration - Encrypt Section on jfprodwebtest failed