MID Server error: An unexpected error occurred: The term 'XXX' is not recognized as the name of a cmdlet, function, script file, or operable program


Description

MID Server shows the following error:

An unexpected error occurred: XXX : The term 'XXX' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:166
+ ... _0932.windows.x86-64\agent" /remove domainname\username` (XXX)
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (XXX:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Release or Environment

From Orlando

Resolution

Resolve the error and restart the MID Server and the error should go away. To manually remove DACL for the user use the syntax below:


icacls "<MID Install directory>\agent" /remove "domainname\username XXX"