User Rights part of local policies can be created as an extended object using secedit utility. This is a Windows security utility part of Windows OS. The script spits out the user rights (local policies). This can be used as extended object and the output can be used for compliance. One of the customers had the problem, where they couldn't use local policies(allow log on) to match the wild card search and hence the above script.
Native2ascii is used to change the file encoding as `cat ` was not giving correct results.