@@ -37,7 +37,8 @@ private async static Task Privacy()
37
37
new ( true , false , "Deactivate cross device message and clipboard sync" , null ! ) ,
38
38
new ( true , false , "Deactivate Cortana" , null ! ) ,
39
39
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 ! ) ,
41
42
] ;
42
43
43
44
OptionSelector optionSelector = new ( "Privacy" , options , new ( true , 0 , "privacy.cfg" ) ) ;
@@ -440,16 +441,16 @@ await Task.Run(() =>
440
441
{
441
442
Log . FastLog ( "[MACHINE][USER] Deactivating Cortana" , LogSeverity . Info , PRIVACY_SOURCE ) ;
442
443
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 ) ;
446
447
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 ) ;
449
450
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 ) ;
453
454
454
455
455
456
}
@@ -465,9 +466,9 @@ await Task.Run(() =>
465
466
{
466
467
Log . FastLog ( "[MACHINE] Deactivating reports to SpyNet" , LogSeverity . Info , PRIVACY_SOURCE ) ;
467
468
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 ) ;
471
472
}
472
473
}
473
474
catch ( Exception exception )
@@ -479,16 +480,40 @@ await Task.Run(() =>
479
480
{
480
481
if ( optionSelector . Result . UserSelection [ 24 ] )
481
482
{
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 ) ;
483
484
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 ) ;
485
494
}
486
495
}
487
496
catch ( Exception exception )
488
497
{
489
498
Log . FastLog ( "[USER] Don't remember recently opened files failed with: " + exception . Message , LogSeverity . Error , PRIVACY_SOURCE ) ;
490
499
}
491
500
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
+
492
517
Util . RestartExplorerForUser ( ) ;
493
518
} ) ;
494
519
0 commit comments