I am in need of VB code to change the permissions on a specific key in the registry. Does anyone know if this is possible? Here are the details: I am writing .msi files and VB scripts to completely Automate configuration of Windows 2000 Professional (soon to be XP so it should work for both). I created a value in the registry under HKLM\System\CurrCtlSet\LanManServer\Parameters named SrvComment that uses variables to show the currently logged on user under the Server Comment. All works fine except that when a standard user logs on, they do not have sufficient permission to modify this registry key. If I manually change this permission it will work, but I want to automate everything. So I need to find a way to automatically change the permission to this registry key so I don't have to touch it. Lack of security on this key does not concern me.