I have been freaking out with google trying to find answer, but come up null. I hope someone on here maybe able to shed some light on the problem I am getting.
When we try to run a powershell workflow we get the error below.
Cannot find drive. A drive with the name ‘SQLSERVER’ does not exist.
At line:392 char:25
+ Receive-Job -Job $job -Wait -Verbose -Debug -ErrorAction …
_ + CategoryInfo : ObjectNotFound: (SQLSERVER:String) , ParentContainsErrorRecordException_
_ + FullyQualifiedErrorId : DriveNotFound_
_ + PSComputerName : [localhost]_
The remote script failed with exit code 1
Quick snip example of the code used to produce the error.
foreach -parallel ($instance in $instances)
add-content -path C:\deploytemp\log.txt “in line started”
pararunner -instances $instances
I am hoping this is something really simple and that I have not set a system variable right.
Octopus.Action.PowerShell.ExecuteWithoutProfile is set to true, which is the var which I thought would be the fix. But I am quite new to Octopus Deploy and I may be setting its or calling it wrong…
Any help would be greatly appreciated.
Thanks for reading