Authentication failure with the local MID server service credential. *** Failed to access target system. Please check credentials and firewall settings on the target system to ensure accessibility: Access is denied. (Exception from HRESULT: 0x800700

swathi52
Tera Expert

Hi All,

We are trying to set profile path of user account through powershell script below.

$user = [ADSI] "LDAP://${workflow.scratchpad.usrdn}"
$user.psbase.Invokeset("terminalservicesprofilepath","${workflow.scratchpad.pp}")
$user.setinfo()

It is throwing below error : 

Authentication failure with the local MID server service credential. *** Failed to access target system.  Please check credentials and firewall settings on the target system to ensure accessibility: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))Stack Trace:  

 

With the same credentials, we are able to create user account, disable user account using PowerShell scripts. Only when we try to set the profile path, we are getting above error.

 

Can somebody help here. How to handle this error.

 

Thanks,
Swathi

1 REPLY 1

Kieran Anson
Kilo Patron

As part of your powershell script, are you passing credentials to be used? If not, the mid service user account will be used, which, unless configured during the setup, will be a local account rather than a domain user.