I'm trying to grant full WMI remote access to a domain user, just like this one
It works but I need to automate this process with powershell scripts, any ideas?
I can't find anything relevant on MSDN.
Here's someone who wrote (and documented!) a UserRights.ps1 module that is just what you need. This will grant privileges to groups as well as individual users.
You can add users to a group with vanilla Powershell: add-ADGroupMember