Search code examples
.netwindowswinapiregistry

Having a particular key in the registry apply to multiple conditions via the AppliesTo string value


I have a key that needs the rules enforced by it to apply to multiple drives. Its value is currently set to AppliesTo=C: and I am wondering if there is a some way to use AppliesTo like AppliesTo=C:, D: (does not work but is meant to append two drives).

Thanks in advance.


Solution

  • The 'OR' keyword can be used to apply the rule enforced by a key to multiple cases in the AppliesTo string value.

    Example: AppliesTo=C: OR D: