I got this error message when run the commad "Get-ADUser xxx -Properties *" on any desktop. I was able to run that on any computer few months ago. Can someone help me out?
The server was unable to process the request due to an internal error. For more information about the error, either tur
Point of note, this error is not unique to PoSH, it happens with other languages and even service interop with languages. So, this is really and environmental thing. Meaning if this worked in the past, and not working now, something has changed which is impacting you successfully using cmdlets.
It could be anything, like services – like ADWS, permissions, permission inheritance, etc. So, you need to enabled / enhanced / extended logging on your AD server, etc., and look at event logs to see what is really going on.
Now, this forum is about helping you with code issues or code direction, and your post is not really about that. Yet, I gave the above just to give you something to start troubleshooting with.
Lastly, from a code perspective. What you show here is straight forward stuff. You also don't say if the RSAT tools are installed on the systems you are using or if you are using PoSH implicit / explicit remoting to a DC to proxy the AD cmdlets to whatever host you are using. You also do not state what permissions you are using to run the cmdlets, i.e., normal user or admin user.
You must be logged in to reply to this topic.