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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2020 06:47 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2020 07:28 AM
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.