What does ‘__COMPAT_LAYER’ actually do?

__COMPAT_LAYER, and How To Use It __COMPAT_LAYER is a system environment variable that allows you to set compatibility layers, which are the settings you can adjust when you right-click on an executable, select Properties, and go to the Compatibility tab. There are several options to choose from in addition to the one you know about: … Read more

Google Chrome: This setting is enforced by your administrator

I found a better solution on the Chrome product forums by a user called Gary. The original thread is here. Navigate to C:\Windows\System32\GroupPolicy Open each subdirectory there and change the *.pol files to *.sav, E.g. registry.pol becomes registry.sav. Hit Windows-Key + R, type the following in the box and hit enter reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome In … Read more

How to start a new process without administrator privileges from a process with administrator privileges?

What you are trying to achieve cannot be done very easily and is not supported. However, it is possible using a modicum of hacking. Aaron Margosis wrote an article describing one technique. To quote the pertinent section, you will need to carry out these steps: Enable the SeIncreaseQuotaPrivilege in your current token Get an HWND … Read more

What registry access can you get without Administrator privileges?

In general, a non-administrator user has this access to the registry: Read/Write to: HKEY_CURRENT_USER Read Only: HKEY_LOCAL_MACHINE HKEY_CLASSES_ROOT (which is just a link to HKEY_LOCAL_MACHINE\Software\Classes) It is possible to change some of these permissions on a key-by-key basis, but it’s extremely rare. You should not have to worry about that. For your purposes, your application … Read more

Admin rights for a single method

You can add a PrincipalPermission attribute to your method to demand administrative privileges for its execution: [PrincipalPermission(SecurityAction.Demand, Role = @”BUILTIN\Administrators”)] public void MyMethod() { } This is described in more detail in the following article: Security Principles and Local Admin Rights in C# .Net If you are looking for a way to elevate an already … Read more