@@ -37,7 +37,8 @@ private async static Task Privacy()
3737 new ( true , false , "Deactivate cross device message and clipboard sync" , null ! ) ,
3838 new ( true , false , "Deactivate Cortana" , null ! ) ,
3939 new ( true , false , "Deactivate reports to SpyNet" , null ! ) ,
40- new ( true , false , "Don't remember recently opened files" , null ! ) ,
40+ new ( true , false , "*Don't remember and show recently opened files" , "WIN + R will not keep track of entered commands" ) ,
41+ new ( true , false , "Deactivate Lock scree tips and tricks" , null ! ) ,
4142 ] ;
4243
4344 OptionSelector optionSelector = new ( "Privacy" , options , new ( true , 0 , "privacy.cfg" ) ) ;
@@ -440,16 +441,16 @@ await Task.Run(() =>
440441 {
441442 Log . FastLog ( "[MACHINE][USER] Deactivating Cortana" , LogSeverity . Info , PRIVACY_SOURCE ) ;
442443
443- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" , "AllowCortana " , 0 , RegistryValueKind . DWord ) ;
444- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" , "AllowCortanaAboveLock " , 0 , RegistryValueKind . DWord ) ;
445- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\InputPersonalization" , "AllowInputPersonalization " , 0 , RegistryValueKind . DWord ) ;
444+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" , "AllowCortana" , 0 , RegistryValueKind . DWord ) ;
445+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search" , "AllowCortanaAboveLock" , 0 , RegistryValueKind . DWord ) ;
446+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\InputPersonalization" , "AllowInputPersonalization" , 0 , RegistryValueKind . DWord ) ;
446447
447- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Windows Search" , "CortanaConsent " , 0 , RegistryValueKind . DWord ) ;
448- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Personalization\Settings" , "AcceptedPrivacyPolicy " , 0 , RegistryValueKind . DWord ) ;
448+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Windows Search" , "CortanaConsent" , 0 , RegistryValueKind . DWord ) ;
449+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Personalization\Settings" , "AcceptedPrivacyPolicy" , 0 , RegistryValueKind . DWord ) ;
449450
450- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization" , "RestrictImplicitTextCollection " , 0 , RegistryValueKind . DWord ) ;
451- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization" , "RestrictImplicitInkCollection " , 0 , RegistryValueKind . DWord ) ;
452- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization\TrainedDataStore" , "HarvestContacts " , 0 , RegistryValueKind . DWord ) ;
451+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization" , "RestrictImplicitTextCollection" , 0 , RegistryValueKind . DWord ) ;
452+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization" , "RestrictImplicitInkCollection" , 0 , RegistryValueKind . DWord ) ;
453+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\InputPersonalization\TrainedDataStore" , "HarvestContacts" , 0 , RegistryValueKind . DWord ) ;
453454
454455
455456 }
@@ -465,9 +466,9 @@ await Task.Run(() =>
465466 {
466467 Log . FastLog ( "[MACHINE] Deactivating reports to SpyNet" , LogSeverity . Info , PRIVACY_SOURCE ) ;
467468
468- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet" , "SubmitSamplesConsent " , 2 , RegistryValueKind . DWord ) ;
469- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet" , "SpyNetReporting " , 0 , RegistryValueKind . DWord ) ;
470- Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT" , "DontReportInfectionInformation " , 1 , RegistryValueKind . DWord ) ;
469+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet" , "SubmitSamplesConsent" , 2 , RegistryValueKind . DWord ) ;
470+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Spynet" , "SpyNetReporting" , 0 , RegistryValueKind . DWord ) ;
471+ Registry . SetValue ( @"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT" , "DontReportInfectionInformation" , 1 , RegistryValueKind . DWord ) ;
471472 }
472473 }
473474 catch ( Exception exception )
@@ -479,16 +480,40 @@ await Task.Run(() =>
479480 {
480481 if ( optionSelector . Result . UserSelection [ 24 ] )
481482 {
482- Log . FastLog ( "[USER] Don't remember recently opened files" , LogSeverity . Info , PRIVACY_SOURCE ) ;
483+ Log . FastLog ( "[USER] Don't remember and show recently opened files" , LogSeverity . Info , PRIVACY_SOURCE ) ;
483484
484- Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" , "Start_TrackDocs " , 0 , RegistryValueKind . DWord ) ;
485+ RegistryKey key = Registry . CurrentUser . OpenSubKey ( "Software\\ Microsoft\\ Windows\\ CurrentVersion\\ Explorer\\ RecentDocs" , true ) ;
486+ key ? . DeleteValue ( "MRUListEx" , false ) ;
487+
488+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" , "ShowFrequent" , 0 , RegistryValueKind . DWord ) ;
489+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" , "ShowRecent" , 0 , RegistryValueKind . DWord ) ;
490+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" , "ShowRecommendations" , 0 , RegistryValueKind . DWord ) ;
491+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" , "ShowCloudFilesInQuickAccess" , 0 , RegistryValueKind . DWord ) ;
492+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start" , "ShowRecentList" , 0 , RegistryValueKind . DWord ) ;
493+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" , "Start_TrackDoc" , 0 , RegistryValueKind . DWord ) ;
485494 }
486495 }
487496 catch ( Exception exception )
488497 {
489498 Log . FastLog ( "[USER] Don't remember recently opened files failed with: " + exception . Message , LogSeverity . Error , PRIVACY_SOURCE ) ;
490499 }
491500
501+ try
502+ {
503+ if ( optionSelector . Result . UserSelection [ 25 ] )
504+ {
505+ Log . FastLog ( "[USER] Disabling lock screen tips and tricks" , LogSeverity . Info , PRIVACY_SOURCE ) ;
506+
507+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" , "SubscribedContent-338387Enabled" , 0 , RegistryValueKind . DWord ) ;
508+ Registry . SetValue ( @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" , "RotatingLockScreenOverlayEnabled" , 0 , RegistryValueKind . DWord ) ;
509+
510+ }
511+ }
512+ catch ( Exception exception )
513+ {
514+ Log . FastLog ( "[USER] Disabling lock screen tips and tricks failed with: " + exception . Message , LogSeverity . Error , PRIVACY_SOURCE ) ;
515+ }
516+
492517 Util . RestartExplorerForUser ( ) ;
493518 } ) ;
494519
0 commit comments