When attempting to Add or Refresh a Target Environment running Windows Server 2019 using Delphix Engine 6.0.10 or earlier, you may see the following error message:
Error: Failed to add or update the iSCSI persistent login target on host "10-43-40-248.qa-ad.delphix.com".
Error Code: exception.windowshost.iscsi.add.persistent_target.failed
Suggested Action: Make sure that the iSCSI initiator service is running and try the operation again.
Command Output: (Duplicate lines removed):
Microsoft iSCSI Initiator Version 10.0 Build 17763 The operation completed successfully. ... Program 'iscsicli.exe' failed to run: Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.At C:\Program Files\Delphix\DelphixConnector\discovery\564db372-96df-9e06-8de0-62e92732d5f8-WINDOWS_HOST_ENVIRONMENT-1\AddPersistentLoginTarget.ps1:77 char:9 + iscsicli AddTargetPortal $targetip $targetport + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~. At C:\Program Files\Delphix\DelphixConnector\discovery\564db372-96df-9e06-8de0-62e92732d5f8-WINDOWS_HOST_ENVIRONMENT-1\AddPersistentLoginTarget.ps1:77 char:9 + iscsicli AddTargetPortal $targetip $targetport + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) , ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed
This article deals specifically with failures that include the error text:
Program 'iscsicli.exe' failed to run: Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer. Contact Microsoft Customer Support Services.
Applicable Delphix Versions
- Click here to view the versions of the Delphix engine to which this article applies
Major Release All Sub Releases 6.0 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52
184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52
184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11
18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168
22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52
This error may be related to Active Directory Group Policy settings that force logging (transcripts) of PowerShell commands. This is a non-default Windows configuration, and may have been explicitly enabled by a System or Domain administrator.
To validate the current Group Policy settings for Windows:
- Log into the affected Windows host using the account that you are using to add the Environment in Delphix.
- Execute the following two commands from an Administrative command prompt:
gpresult /r /v /scope user gpresult /r /v /scope computer
- Look for any customizations visible in the output.
Specifically, the "EnableTranscripting" policy appears to affect this behavior.
If set locally on the computer, this will be displayed as "GPO: Local Group Policy":
GPO: Local Group Policy Folder Id: Software\Policies\Microsoft\Windows\PowerShell\Transcription\EnableTranscripting Value: 1, 0, 0, 0 State: Enabled
If inherited from a group policy set by your Domain Administrators, this will be displayed using the name of the policy that they have created:
GPO: My-Domain-Group-Policy-Name Folder Id: Software\Policies\Microsoft\Windows\PowerShell\Transcription\EnableTranscripting Value: 1, 0, 0, 0 State: Enabled
This incompatibility has been resolved in Delphix Engine version 184.108.40.206.
To allow Environment operations to continue successfully without changing Group Policy settings, please arrange an upgrade to Delphix Engine 220.127.116.11 or later using the instructions in our document Upgrading the Delphix Engine: Overview.
If this is not possible, it will be necessary to disable PowerShell Transcripting so that Environment operations will succeed.
If this policy has been set by Local Group Policy, then it should be possible to disable this using the Windows Local Group Policy Editor (
gpedit.msc) on the affected Target host:
- Computer Configuration → Administrative Templates → Windows Components → Windows PowerShell → Turn on PowerShell Transcription: Disabled / Not Configured
- User Configuration → Administrative Templates → Windows Components → Windows PowerShell → Turn on PowerShell Transcription: Disabled / Not Configured
If this policy has been set by Group Policy, it will be necessary to work with your Windows Domain Administrators to exclude this user or computer from the policy and ensure that it has propagated to the relevant Domain Controllers and applied to the computer (for example, using
The underlying cause of this incompatibility is unknown. For a more detailed analysis of why PowerShell Transcription can result in this type of failure, it may be necessary to engage Microsoft Customer Support Services as indicated by the error message.
If this does not resolve the issue, please contact Delphix Support for further assistance.
The following articles may provide more information or related information to this article: