tag:blogger.com,1999:blog-1722448004085608050.post4604717403972661010..comments2024-03-18T13:13:44.519+08:00Comments on Nathan's Thoughts and Notes: Delegating WMI security remotely with powershellNathan Linleyhttp://www.blogger.com/profile/05564124143656054803noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1722448004085608050.post-57530763578359852702018-06-29T20:40:48.416+08:002018-06-29T20:40:48.416+08:00Thanks for sharing Adam. I will see if I can retr...Thanks for sharing Adam. I will see if I can retry it to see if something has changed with newer OS's over the years. I have something similar running in one of my production scripts for 2012R2 servers, but its using "new-object System.Managment.ManagementClass Win32_securityDescriptHelper" and using that to convert a hardcoded SDDL string with .SDDLTOBinarySD($sddlstring). It Nathan Linleyhttps://www.blogger.com/profile/05564124143656054803noreply@blogger.comtag:blogger.com,1999:blog-1722448004085608050.post-10120739271974075262018-05-29T12:51:45.947+08:002018-05-29T12:51:45.947+08:00I know this post is very very old, but when I trie...I know this post is very very old, but when I tried to run [Void]$sdlocal.psbase.invokemethod("SetSD",$binarySD) I got an error message that says: Exception calling "InvokeMethod" with "2" argument(s): "Unable to cast object of type 'System.Byte' to type<br />'System.Array'." Just in case anybody is trying this in the future.Adam Vhttps://www.blogger.com/profile/15559468406209601445noreply@blogger.com