Home
%3CLINGO-SUB%20id%3D%22lingo-sub-723613%22%20slang%3D%22en-US%22%3EThe%20Case%20of%20the%20Missing%20AutoPlay%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723613%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TechNet%20on%20Dec%2031%2C%202007%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CB%20style%3D%22mso-bidi-font-weight%3A%20normal%22%3E%20%3CFONT%20size%3D%223%22%3E%20%3CFONT%20face%3D%22Calibri%22%3E%20%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FB%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%E2%80%99ve%20been%20presenting%20talks%20on%20Windows%20Vista%20kernel%20changes%20since%20TechEd%20US%20in%20the%20summer%20of%202006%20and%20one%20of%20the%20features%20I%20cover%20in%20the%20session%20is%20ReadyBoost%2C%20a%20write-through%20disk%20caching%20technology%20that%20can%20potentially%20improve%20system%20performance%20by%20leveraging%20flash%20media%20as%20a%20disk%20cache.%20I%20explain%20ReadyBoost%20in%20depth%20in%20my%20TechNet%20Magazine%20article%2C%20%E2%80%9C%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Ftechnetmag%2Fissues%2F2007%2F03%2FVistaKernel%2F%22%20mce_href%3D%22http%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Ftechnetmag%2Fissues%2F2007%2F03%2FVistaKernel%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EInside%20the%20Windows%20Vista%20Kernel%3A%20Part%202%20%3C%2FA%3E%E2%80%9D%2C%20%3C%2FFONT%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3Ebut%20the%20basic%20idea%20is%20that%2C%20since%20flash%20has%20significantly%20better%20random%20access%20latency%20than%20disk%2C%20ReadyBoost%20intercepts%20disk%20accesses%20and%20directs%20random-access%20reads%20to%20its%20cache%20when%20the%20cache%20holds%20the%20data%2C%20but%20sends%20sequential%20access%20to%20directly%20to%20the%20disk.%20During%20my%20presentation%2C%20I%20insert%20a%20USB%20key%2C%20whereupon%20Windows%20displays%20an%20AutoPlay%20dialog%20that%20includes%20an%20option%20to%20configure%20the%20device%20for%20ReadyBoost%20caching%3A%20%3C%2FFONT%3E%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%3CSHAPETYPE%20coordsize%3D%2221600%2C21600%22%20filled%3D%22f%22%20id%3D%22_x0000_t75%22%20preferrelative%3D%22t%22%20spt%3D%2275%22%20path%3D%22m%404%405l%404%4011%409%4011%409%405xe%22%20stroked%3D%22f%22%3E%0A%20%20%20%20%20%3CSTROKE%20joinstyle%3D%22miter%22%3E%0A%20%20%20%20%20%3C%2FSTROKE%3E%0A%20%20%20%20%20%3CFORMULAS%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22if%20lineDrawn%20pixelLineWidth%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%400%201%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%200%200%20%401%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%402%201%202%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%403%2021600%20pixelWidth%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%403%2021600%20pixelHeight%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%400%200%201%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%406%201%202%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%407%2021600%20pixelWidth%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%408%2021600%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22prod%20%407%2021600%20pixelHeight%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%20%3CF%20eqn%3D%22sum%20%4010%2021600%200%22%3E%0A%20%20%20%20%20%20%3C%2FF%3E%0A%20%20%20%20%20%3C%2FFORMULAS%3E%0A%20%20%20%20%20%3CPATH%20gradientshapeok%3D%22t%22%20connecttype%3D%22rect%22%20extrusionok%3D%22f%22%3E%0A%20%20%20%20%20%3C%2FPATH%3E%0A%20%20%20%20%20%3CLOCK%20aspectratio%3D%22t%22%20ext%3D%22edit%22%3E%0A%20%20%20%20%20%3C%2FLOCK%3E%0A%20%20%20%20%3C%2FSHAPETYPE%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22237%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696756%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696756%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121000i36FEFD9A04DB0E6C%22%20style%3D%22WIDTH%3A%20334px%3B%20HEIGHT%3A%20237px%22%20width%3D%22334%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20first%20time%20I%20gave%20the%20talk%2C%20the%20demonstration%20went%20flawlessly%2C%20but%20in%20subsequent%20deliveries%20I%20didn%E2%80%99t%20get%20the%20AutoPlay%20experience.%20I%20would%20notice%20the%20lack%20of%20AutoPlay%20as%20I%20ran%20through%20the%20demonstrations%20before%20a%20session%2C%20but%20was%20always%20pressed%20for%20time%20and%20so%20couldn%E2%80%99t%20investigate.%20As%20a%20workaround%2C%20I%20would%20manual%20open%20the%20properties%20dialog%20of%20the%20device%E2%80%99s%20volume%20after%20insertion%20to%20show%20the%20ReadyBoost%20page%20that%E2%80%99s%20displayed%20when%20you%20click%20on%20the%20%E2%80%9CSpeed%20up%20my%20system%E2%80%9D%20link%20on%20the%20AutoPlay%20dialog.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20last%20time%20I%20presented%20the%20session%2C%20at%20TechEd%2FITforum%20in%20Barcelona%20in%20November%2C%20I%20had%20some%20extra%20time%20beforehand%20so%20I%20decided%20to%20find%20out%20why%20AutoPlay%20wasn%E2%80%99t%20working.%20The%20first%20thing%20I%20did%20was%20to%20check%20the%20AutoPlay%20settings%2C%20which%20you%20configure%20in%20the%20AutoPlay%20section%20of%20the%20Control%20Panel%E2%80%99s%20Hardware%20and%20Sound%20page.%20Some%20of%20the%20entries%20were%20set%20to%20%E2%80%9CAsk%20me%20every%20time%E2%80%9D%2C%20which%20shouldn%E2%80%99t%20have%20had%20any%20effect%2C%20and%20even%20after%20resetting%20to%20the%20defaults%2C%20AutoPlay%20still%20didn%E2%80%99t%20work%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22210%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696759%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696759%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121001i56E105F5CC83B311%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20210px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20At%20this%20point%20I%20had%20to%20look%20under%20the%20hood%20at%20an%20insertion%E2%80%99s%20associated%20Registry%20and%20file%20system%20activity%20to%20see%20if%20that%20would%20reveal%20the%20reason%20why%20Explorer%20wasn%E2%80%99t%20honoring%20the%20Control%20Panel%E2%80%99s%20AutoPlay%20settings.%20I%20ran%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb896645.aspx%22%20mce_href%3D%22http%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Fsysinternals%2Fbb896645.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EProcess%20Monitor%20%3C%2FA%3E%2C%20configured%20the%20filter%20to%20include%20Explorer%E2%80%99s%20Registry%20operations%2C%20and%20re-inserted%20the%20key.%20Then%20I%20stopped%20the%20capture%20and%20looked%20at%20what%20Process%20Monitor%20had%20collected.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20A%20staggering%2022%2C000%20events%20meant%20that%20scanning%20through%20the%20trace%20event-by-event%20would%20take%20hours%20and%20there%20were%20no%20obvious%20error%20codes%20to%20search%20for%2C%20so%20I%20had%20to%20think%20of%20some%20keyword%20that%20might%20lead%20me%20to%20the%20relevant%20lines.%20I%20first%20searched%20for%20%E2%80%9Cautoplay%E2%80%9D%2C%20but%20came%20up%20empty.%20I%20knew%20that%20Explorer%20looks%20for%20a%20file%20named%20Autorun.inf%20in%20the%20root%20directory%20of%20removable%20media%20volumes%2C%20which%20can%20contain%20pointers%20to%20an%20icon%20to%20show%20for%20the%20volume%20and%20an%20executable%20that%20launches%20when%20the%20user%20double-clicks%20on%20the%20volume%2C%20so%20I%20next%20searched%20for%20%E2%80%9Cautorun%E2%80%9D.%20The%20first%20hit%20didn%E2%80%99t%20look%20interesting%20because%20it%20referred%20to%20the%20volume%E2%80%99s%20mount-point%20GUID%2C%20information%20that%20Windows%20generates%20dynamically%20when%20it%20notices%20a%20new%20volume%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%2270%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696763%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696763%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121002i866E36E70DD133F2%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%2070px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20next%20hits%20were%20just%20a%20few%20entries%20later%20and%20all%20referred%20to%20values%20that%20store%20Group%20Policy%20settings%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22119%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696764%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696764%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121003iE9336E5A8B48817E%22%20style%3D%22WIDTH%3A%20550px%3B%20HEIGHT%3A%20119px%22%20width%3D%22550%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20queries%20of%20the%20first%20two%20locations%20resulted%20in%20NAME%20NOT%20FOUND%20errors%2C%20indicating%20that%20the%20policies%20weren%E2%80%99t%20defined%2C%20but%20a%20query%20of%20HKLM%5CSoftware%5CMicrosoft%5CWindows%5CCurrentVersion%5CPolicies%5CExplorer%5CNoDriveTypeAutoRun%20was%20successful.%20Process%20Monitor%20showed%20the%20value%20Explorer%20had%20read%20in%20the%20Details%20column%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22107%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696766%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696766%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121004iD36F3F0CDDCF4DDD%22%20style%3D%22WIDTH%3A%20251px%3B%20HEIGHT%3A%20107px%22%20width%3D%22251%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3EI%20didn%E2%80%99t%20know%20how%20to%20interpret%20a%20setting%20of%20255%2C%20so%20I%20executed%20a%20Web%20search%20for%20%E2%80%9Cnodrivetypeautorun%E2%80%9D%20and%20found%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Fprodtechnol%2Fwindows2000serv%2Freskit%2Fregentry%2F93502.mspx%3Fmfr%3Dtrue%22%20mce_href%3D%22http%3A%2F%2Fwww.microsoft.com%2Ftechnet%2Fprodtechnol%2Fwindows2000serv%2Freskit%2Fregentry%2F93502.mspx%3Fmfr%3Dtrue%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ea%20page%20%3C%2FA%3Ein%20the%20Windows%202000%20Resource%20Kit%20%3C%2FFONT%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3Ethat%20describes%20the%20value%20as%20a%20bitmask%20specifying%20which%20device%20types%20have%20AutoPlay%20disabled.%20A%20value%20of%20255%20decimal%20(0xFF%20hexadecimal)%20disables%20AutoPlay%20on%20all%20devices%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22119%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696767%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696767%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121005iD6003E07A529611E%22%20style%3D%22WIDTH%3A%20360px%3B%20HEIGHT%3A%20119px%22%20width%3D%22360%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%20used%20Process%20Monitor%E2%80%99s%20Jump-To%20functionality%20to%20launch%20Regedit%20and%20navigate%20directly%20to%20the%20value%2C%20opened%20the%20value%20editor%2C%20and%20changed%20the%20setting%20to%200%20to%20enable%20AutoPlay%20on%20all%20devices.%20Next%20I%20had%20to%20test%20the%20change.%20I%20removed%20and%20reinserted%20the%20key%20and%2C%20to%20my%20satisfaction%2C%20the%20AutoPlay%20dialog%20appeared.%20Note%20that%20on%20Windows%20Vista%2C%20AutoPlay%20no%20longer%20means%20%22automatically%20execute%20what's%20in%20Autorun.inf%22%2C%20but%20rather%2C%20%22show%20me%20my%20options%22%2C%20so%20I%20wasn't%20introcuding%20a%20potential%26nbsp%3Bsecurity%20issue.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20The%20case%20was%20almost%20closed%2C%20but%20I%20had%20one%20detail%20to%20wrap%20up.%20AutoPlay%20was%20disabled%20on%20my%20system%20by%20the%20Group%20Policy%20configuration%20of%20the%20Microsoft%20domain%20to%20which%20the%20system%20is%20joined.%20That%20explained%20why%20the%20demonstration%20had%20worked%20for%20the%20first%20few%20times%3A%20my%20first%20deliveries%20of%20the%20session%20were%20before%20I%20had%20joined%20Microsoft.%20It%20also%20meant%20that%20the%20value%20would%20get%20restored%20to%20its%20previous%20setting%20the%20next%20time%20I%20logged%20on%20and%20Group%20Policy%20reapplied%20the%20domain%E2%80%99s%20configuration.%20If%20I%20happened%20to%20logon%20before%20the%20session%20the%20demonstration%20would%20break%20again.%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20There%E2%80%99s%20no%20way%20to%20opt%20out%20of%20Group%20Policy%20updates%20short%20of%20removing%20the%20system%20from%20the%20domain%20or%20never%20connecting%20to%20the%20domain.%20However%2C%20because%20I%20have%20local%20administrative%20rights%2C%20I%20realized%20that%20I%20could%20prevent%20Group%20Policy%20from%20changing%20the%20value%20by%20setting%20the%20permissions%20on%20the%20policy%E2%80%99s%20key%20such%20that%20Group%20Policy%20wouldn%E2%80%99t%20have%20permission%20to%20do%20so.%20Group%20Policy%20processing%20occurs%20in%20the%20Local%20System%20account%2C%20so%20I%20opened%20Regedit%E2%80%99s%20permissions%20editor%20and%20removed%20write%20access%20for%20the%20Local%20System%20account%3A%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CSPAN%20style%3D%22mso-no-proof%3A%20yes%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20%3CIMG%20height%3D%22371%22%20mce_src%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696768%2Foriginal.aspx%22%20original-url%3D%22http%3A%2F%2Fblogs.technet.com%2Fphotos%2Fmarkrussinovich%2Fimages%2F2696768%2Foriginal.aspx%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F121006iBE487CE107D4D621%22%20style%3D%22WIDTH%3A%20294px%3B%20HEIGHT%3A%20371px%22%20width%3D%22294%22%20%2F%3E%20%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22MsoNormal%22%20style%3D%22MARGIN%3A%200in%200in%2010pt%22%3E%3CFONT%20face%3D%22Calibri%22%20size%3D%223%22%3E%20I%20was%20now%20confident%20that%20the%20demonstration%20would%20work%20for%20my%20current%20delivery%20of%20the%20Vista%20Kernel%20Changes%20session%2C%20as%20well%20as%20any%20future%20ones%2C%20and%20I%20closed%20the%20case.%20Besides%20highlighting%20Process%20Monitor%E2%80%99s%20usefulness%20for%20uncovering%20a%20root%20cause%2C%20this%20example%20also%20illustrates%20the%20power%20of%20local%20administrative%20rights.%20A%20local%20administrator%20is%20the%20master%20of%20the%20computer%20and%20is%20able%20to%20do%20anything%20they%20want%2C%20including%20circumventing%20domain%20policies%2C%20something%20I%20covered%20in%20a%20%3CA%20class%3D%22%22%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fmarkrussinovich%2Farchive%2F2005%2F04%2F30%2Fcircumventing-group-policy-settings.aspx%22%20mce_href%3D%22http%3A%2F%2Fblogs.technet.com%2Fmarkrussinovich%2Farchive%2F2005%2F04%2F30%2Fcircumventing-group-policy-settings.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eprevious%20blog%20post%20%3C%2FA%3E%2C%20and%20that's%20just%20one%20more%20reason%20enterprises%20should%20strive%20to%20have%20their%20end%20users%20run%20as%20standard%20users.%20%3C%2FFONT%3E%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-723613%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TechNet%20on%20Dec%2031%2C%202007%20%26nbsp%3BI%E2%80%99ve%20been%20presenting%20talks%20on%20Windows%20Vista%20kernel%20changes%20since%20TechEd%20US%20in%20the%20summer%20of%202006%20and%20one%20of%20the%20features%20I%20cover%20in%20the%20session%20is%20ReadyBoost%2C%20a%20write-through%20disk%20caching%20technology%20that%20can%20potentially%20improve%20system%20performance%20by%20leveraging%20flash%20media%20as%20a%20disk%20cache.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-723613%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMark%20Russinovich%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TechNet on Dec 31, 2007

I’ve been presenting talks on Windows Vista kernel changes since TechEd US in the summer of 2006 and one of the features I cover in the session is ReadyBoost, a write-through disk caching technology that can potentially improve system performance by leveraging flash media as a disk cache. I explain ReadyBoost in depth in my TechNet Magazine article, “ Inside the Windows Vista Kernel: Part 2 ”, but the basic idea is that, since flash has significantly better random access latency than disk, ReadyBoost intercepts disk accesses and directs random-access reads to its cache when the cache holds the data, but sends sequential access to directly to the disk. During my presentation, I insert a USB key, whereupon Windows displays an AutoPlay dialog that includes an option to configure the device for ReadyBoost caching:




The first time I gave the talk, the demonstration went flawlessly, but in subsequent deliveries I didn’t get the AutoPlay experience. I would notice the lack of AutoPlay as I ran through the demonstrations before a session, but was always pressed for time and so couldn’t investigate. As a workaround, I would manual open the properties dialog of the device’s volume after insertion to show the ReadyBoost page that’s displayed when you click on the “Speed up my system” link on the AutoPlay dialog.


The last time I presented the session, at TechEd/ITforum in Barcelona in November, I had some extra time beforehand so I decided to find out why AutoPlay wasn’t working. The first thing I did was to check the AutoPlay settings, which you configure in the AutoPlay section of the Control Panel’s Hardware and Sound page. Some of the entries were set to “Ask me every time”, which shouldn’t have had any effect, and even after resetting to the defaults, AutoPlay still didn’t work:




At this point I had to look under the hood at an insertion’s associated Registry and file system activity to see if that would reveal the reason why Explorer wasn’t honoring the Control Panel’s AutoPlay settings. I ran Process Monitor , configured the filter to include Explorer’s Registry operations, and re-inserted the key. Then I stopped the capture and looked at what Process Monitor had collected.


A staggering 22,000 events meant that scanning through the trace event-by-event would take hours and there were no obvious error codes to search for, so I had to think of some keyword that might lead me to the relevant lines. I first searched for “autoplay”, but came up empty. I knew that Explorer looks for a file named Autorun.inf in the root directory of removable media volumes, which can contain pointers to an icon to show for the volume and an executable that launches when the user double-clicks on the volume, so I next searched for “autorun”. The first hit didn’t look interesting because it referred to the volume’s mount-point GUID, information that Windows generates dynamically when it notices a new volume:




The next hits were just a few entries later and all referred to values that store Group Policy settings:




The queries of the first two locations resulted in NAME NOT FOUND errors, indicating that the policies weren’t defined, but a query of HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun was successful. Process Monitor showed the value Explorer had read in the Details column:




I didn’t know how to interpret a setting of 255, so I executed a Web search for “nodrivetypeautorun” and found a page in the Windows 2000 Resource Kit that describes the value as a bitmask specifying which device types have AutoPlay disabled. A value of 255 decimal (0xFF hexadecimal) disables AutoPlay on all devices:




I used Process Monitor’s Jump-To functionality to launch Regedit and navigate directly to the value, opened the value editor, and changed the setting to 0 to enable AutoPlay on all devices. Next I had to test the change. I removed and reinserted the key and, to my satisfaction, the AutoPlay dialog appeared. Note that on Windows Vista, AutoPlay no longer means "automatically execute what's in Autorun.inf", but rather, "show me my options", so I wasn't introcuding a potential security issue.


The case was almost closed, but I had one detail to wrap up. AutoPlay was disabled on my system by the Group Policy configuration of the Microsoft domain to which the system is joined. That explained why the demonstration had worked for the first few times: my first deliveries of the session were before I had joined Microsoft. It also meant that the value would get restored to its previous setting the next time I logged on and Group Policy reapplied the domain’s configuration. If I happened to logon before the session the demonstration would break again.


There’s no way to opt out of Group Policy updates short of removing the system from the domain or never connecting to the domain. However, because I have local administrative rights, I realized that I could prevent Group Policy from changing the value by setting the permissions on the policy’s key such that Group Policy wouldn’t have permission to do so. Group Policy processing occurs in the Local System account, so I opened Regedit’s permissions editor and removed write access for the Local System account:




I was now confident that the demonstration would work for my current delivery of the Vista Kernel Changes session, as well as any future ones, and I closed the case. Besides highlighting Process Monitor’s usefulness for uncovering a root cause, this example also illustrates the power of local administrative rights. A local administrator is the master of the computer and is able to do anything they want, including circumventing domain policies, something I covered in a previous blog post , and that's just one more reason enterprises should strive to have their end users run as standard users.