Compare commits
3 commits
995eb60e9f
...
4253dee327
Author | SHA1 | Date | |
---|---|---|---|
4253dee327 | |||
ade08ccca0 | |||
4ba4ef330a |
23 changed files with 51 additions and 64 deletions
|
@ -217,7 +217,7 @@ function DelRegKey {
|
|||
)
|
||||
Write-Host -NoNewline "`tDelete registery key $($params.key) : "
|
||||
if ( ! (Test-Path $params.path) ){
|
||||
Write-Host -ForegroundColor Red " Error path not found"
|
||||
Write-Host -ForegroundColor Red " Error (path not found)"
|
||||
return
|
||||
}
|
||||
try {
|
||||
|
@ -225,12 +225,11 @@ function DelRegKey {
|
|||
Write-host -ForegroundColor Green "done"
|
||||
}
|
||||
catch [System.Security.SecurityException]{
|
||||
Write-Host -ForegroundColor Red "Error in DelRegKey`n`t"
|
||||
Write-Host -ForegoundColor DarkRed "Access to $($params.path)\$($params.key) denied"
|
||||
Write-Host -ForegroundColor Red "Error (access denied)"
|
||||
}
|
||||
catch {
|
||||
Write-Host -ForegroundColor Red -NoNewLine "Error in DelRegKey`n`t"
|
||||
Write-Host -ForegoundColor DarkRed $Error[0].Exception.Message
|
||||
Write-Host -ForegroundColor Red -NoNewLine "Error`n`t"
|
||||
Write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"Name" : "Cortana (Firewall)",
|
||||
"Description" : "This module Add a firewall rule to desactivate Cortana net traffic",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
"action" : "FwBlockProgram",
|
||||
"name" : "Cortana",
|
||||
"path" : "$env:systemroot\\systemapps\\Microsoft.Windows.Cortana_cw5n1h2txyewy\\SearchUI.exe"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -111,7 +111,7 @@
|
|||
{
|
||||
"action" : "FwBlockProgram",
|
||||
"name" : "Edge",
|
||||
"path" : "$env:systemroot\\systemapps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe"
|
||||
"path" : "$env:systemroot\\systemapps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\MicrosoftEdge.exe"
|
||||
},
|
||||
{
|
||||
"action" : "FwBlockProgram",
|
||||
|
@ -126,7 +126,7 @@
|
|||
{
|
||||
"action" : "FwBlockProgram",
|
||||
"name" : "BackgroundTransferHost64",
|
||||
"path" : "$env:systemroot\\SysWOW64\BackgroundTransferHost.exe"
|
||||
"path" : "$env:systemroot\\SysWOW64\\BackgroundTransferHost.exe"
|
||||
},
|
||||
{
|
||||
"action" : "FwBlockProgram",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessAccountInfo",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom keys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsRunInBackgound",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Calendar (GPO)",
|
||||
"Description" : "This module desactivate Calendar access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Calendar access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessCalendar",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Call history (GPO)",
|
||||
"Description" : "This module desactivate Call history access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Call history access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Camera (GPO)",
|
||||
"Description" : "This module desactivate Camera access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Camera access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessCamera",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Contacts (GPO)",
|
||||
"Description" : "This module desactivate Contacts access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Contacts access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessContacts",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom keys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "DiagnisticInfo (GPO)",
|
||||
"Description" : "This module desactivate diagnistic info access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate diagnistic info access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsGetDiagnosticInfo",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Email access (GPO)",
|
||||
"Description" : "This module desactivate email access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate email access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Input Speech Ink (GPO)",
|
||||
"Description" : "This module desactivate Input personalization, speech and ink recognition like GPO did.",
|
||||
"Description" : "This module desactivate Input personalization, speech and ink recognition like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -25,7 +25,7 @@
|
|||
"key" : "AllowInputPersonnalization",
|
||||
"value" : "0"
|
||||
},
|
||||
{
|
||||
{
|
||||
"_comment" : "Desactivate voice data automatic updates",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\Software\\Policies\\Microsoft\\Speech",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Location (GPO)",
|
||||
"Description" : "This module desactivate Location access for third party Apps like GPO did.",
|
||||
"Name" : "Location ans sensors (GPO)",
|
||||
"Description" : "This module desactivate Location access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessLocation",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom keys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Messaging (GPO)",
|
||||
"Description" : "This module desactivate Messaging access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Messaging access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessMessaging",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Microphone (GPO)",
|
||||
"Description" : "This module desactivate Microphone access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Microphone access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessMicrophone",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Motion Sensor (GPO)",
|
||||
"Description" : "This module desactivate Motion sensor access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Motion sensor access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessMotion",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Notifications (GPO)",
|
||||
"Description" : "This module desactivate Notifications access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Notifications access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessNotifications",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Phone (GPO)",
|
||||
"Description" : "This module desactivate Phone access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Phone access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessPhone",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"Name" : "Radios (GPO)",
|
||||
"Description" : "This module desactivate Radios (Bluetooth, Wifi ...) access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Radios (Bluetooth, Wifi ...) access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessRadios",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"Name" : "Setting Sync (GPO)",
|
||||
"Description" : "This module desactivate Setting sync between devices like GPO did.",
|
||||
"Description" : "This module desactivate Setting sync between devices like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
{
|
||||
"_comment" : "Disable Setting Sync",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\SettingSync",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Sync with devices (GPO)",
|
||||
"Description" : "This module desactivate sync with devices for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate sync with devices for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsSyncWithDevices",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom keys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "Tasks (GPO)",
|
||||
"Description" : "This module desactivate Tasks access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Tasks access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessTasks",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom keys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"Name" : "TrustedDevices (GPO)",
|
||||
"Description" : "This module desactivate Trusted Devices access for third party Apps like GPO did.",
|
||||
"Description" : "This module desactivate Trusted Devices access for third party Apps like GPO does.",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessTrustedDevices",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
Reference in a new issue