I agree with this suggestion.
Needed as wel when using WMI to get a security descriptor
For instance:
 Code:
$str_path = "C:\Test"
$objSecurity = GetObject("winmgmts:{(Security,Restore)}\\.\root\cimv2:Win32_LogicalFileSecuritySetting='" + $str_path + "'")
$objSecurity.GetSecurityDescriptor($objSD)