c#: detect windows 7 audit mode
**Background**

OEMS, Sys Admins etc. often use [OPK][1] or [WAIK][2] for mass installation. During this they often ship some pre-installed applications. The installations of such applications happen when Windows installation enters in [Audit Mode][3] 

**Question**

Using c#, how do I detect that Windows is currently in Audit Mode?


  [1]: http://oem.microsoft.com/script/contentpage.aspx?pageid=565676
  [2]: http://technet.microsoft.com/library/dd349343.aspx
  [3]: http://technet.microsoft.com/en-us/library/dd744337%28WS.10%29.aspx
c#: detect windows 7 audit mode
===

**Background**

OEMS, Sys Admins etc. often use [OPK][1] or [WAIK][2] for mass installation. During this they often ship some pre-installed applications. The installations of such applications happen when Windows installation enters in [Audit Mode][3] 

**Question**

Using c#, how do I detect that Windows is currently in Audit Mode?


  [1]: http://oem.microsoft.com/script/contentpage.aspx?pageid=565676
  [2]: http://technet.microsoft.com/library/dd349343.aspx
  [3]: http://technet.microsoft.com/en-us/library/dd744337%28WS.10%29.aspx