Here is the variant of the same topic from vSphere 6.7 documentation - https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.security.doc/GUID-BDCE47DD-8AD2-4C98-94FF-7769D0BEE1C2.html
Could you provide more info on what is not working? The command returns some error, or something else?