简体   繁体   中英

detect windows 7 audit mode

Background

OEMS, Sys Admins etc. often use OPK or WAIK 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

Question

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

You need to check the registry:

  • HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\State
    for something other than IMAGE_STATE_COMPLETE
  • HKEY_LOCAL_MACHINE\\System\\Setup for AuditInProgress

EDIT - as per comment:

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\OOBE could provide some information in this regard too...

For details see see

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM