Compare commits
5 commits
4253dee327
...
97ad26ff91
Author | SHA1 | Date | |
---|---|---|---|
97ad26ff91 | |||
f7d0a679ac | |||
1d7d2a6254 | |||
b765d3752f | |||
4e2ad14153 |
9 changed files with 125 additions and 12 deletions
12
cleanW10.ps1
12
cleanW10.ps1
|
@ -460,7 +460,6 @@ function DelFile {
|
|||
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
||||
}
|
||||
}
|
||||
|
||||
function ExecCommand {
|
||||
param (
|
||||
[cmdletbinding(
|
||||
|
@ -473,17 +472,20 @@ function ExecCommand {
|
|||
)]
|
||||
[object]$params
|
||||
)
|
||||
Write-Host -NoNewline "`tExecute : $($params.path) : "
|
||||
if ( -not (Test-Path $params.path) ) {
|
||||
$path = $params.path.Replace("##mod_path##", $script:current_module_path)
|
||||
$args = $params.arguments.Replace("##mod_path##", $script:current_module_path)
|
||||
Write-Host -NoNewline "`tExecute : $path : "
|
||||
$path = Invoke-Expression """$($path)"""
|
||||
if ( -not (Test-Path $path) -and -not $path -eq "powershell" ) {
|
||||
Write-Host -ForegroundColor Yellow "File not found"
|
||||
return
|
||||
}
|
||||
try {
|
||||
Start-Process $params.path -ArgumentList $params.arguments
|
||||
Start-Process -wait -filepath $path -ArgumentList $args.split(" ")
|
||||
Write-Host -ForegroundColor Green "done"
|
||||
}
|
||||
catch {
|
||||
Write-Host -NoNewLine -ForegroundColor Red "`Error in DelFile`n`t"
|
||||
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"
|
||||
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,26 +7,26 @@
|
|||
"_comment" : "This is the principal reg key controlled by GPO",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsRunInBackgound",
|
||||
"key" : "LetAppsRunInBackground",
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsRunInBackgound_UserInControlOfTheseApps",
|
||||
"key" : "LetAppsRunInBackground_UserInControlOfTheseApps",
|
||||
"type" : "MultiString"
|
||||
},
|
||||
{
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsRunInBackgound_ForceAllowTheseApps",
|
||||
"key" : "LetAppsRunInBackground_ForceAllowTheseApps",
|
||||
"type" : "MultiString"
|
||||
},
|
||||
{
|
||||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsRunInBackgound_ForceDenyTheseApps",
|
||||
"key" : "LetAppsRunInBackground_ForceDenyTheseApps",
|
||||
"type" : "MultiString"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessCallHistory",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"action" : "AddRegKey",
|
||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||
"key" : "LetAppsAccessEmail",
|
||||
"value" : "0"
|
||||
"value" : "2"
|
||||
},
|
||||
{
|
||||
"_comment" : "The 3 bottom k eys s eems to be some kind of ACL for App right",
|
||||
|
|
53
modules.d/UninstallModernApp.conf
Normal file
53
modules.d/UninstallModernApp.conf
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"name" : "Uninstall Modern Apps",
|
||||
"description" : "Uninstall unwanted Modern App",
|
||||
"actions" :
|
||||
[
|
||||
{
|
||||
"_comment" : "Disable MapsBoker service for uninstall Windows Map",
|
||||
"action" : "DisableService",
|
||||
"name" : "MapsBroker"
|
||||
},
|
||||
{
|
||||
"_comment" : "Uninstall Windows Maps",
|
||||
"action" : "UninstallModernApp",
|
||||
"name" : "Microsoft.WindowsMaps",
|
||||
"removeProvisonned" : "True"
|
||||
},
|
||||
{
|
||||
"_comment" : "Disable xbox services for uninstall Apps",
|
||||
"action" : "DisableService",
|
||||
"file" : "XboxServices.txt"
|
||||
},
|
||||
{
|
||||
"_comment" : "Disable Xbox sheduled tasks",
|
||||
"action" : "RemoveSheduledTask",
|
||||
"path" : "Microsoft\\XblGameSave\\",
|
||||
"name" : "XblGameSaveTask"
|
||||
},
|
||||
{
|
||||
"_comment" : "Disable Xbox sheduled tasks",
|
||||
"action" : "RemoveSheduledTask",
|
||||
"path" : "Microsoft\\XblGameSave\\",
|
||||
"name" : "XblGameSaveTaskLogon"
|
||||
},
|
||||
{
|
||||
"_comment" : "Uninstall Xbox Apps",
|
||||
"action" : "UninstallModernApp",
|
||||
"file" : "XboxApps.txt",
|
||||
"removeProvisonned" : "True"
|
||||
},
|
||||
{
|
||||
"_comment" : "Uninstall Microsoft Apps",
|
||||
"action" : "UninstallModernApp",
|
||||
"file" : "MicrosoftApps.txt",
|
||||
"removeProvisionned" : "True"
|
||||
},
|
||||
{
|
||||
"_comment" : "Uninstall third party apps",
|
||||
"action" : "UninstallModernApp",
|
||||
"file" : "OthersApps.txt",
|
||||
"removeProvisionned" : "True"
|
||||
}
|
||||
]
|
||||
}
|
39
modules.d/UninstallModernApp/MicrosoftApps.txt
Normal file
39
modules.d/UninstallModernApp/MicrosoftApps.txt
Normal file
|
@ -0,0 +1,39 @@
|
|||
Microsoft.3dbuilder
|
||||
Microsoft.Appconnector
|
||||
Microsoft.BingFinance
|
||||
Microsoft.BingFoodAndDrink
|
||||
Microsoft.BingHealthAndFitness
|
||||
Microsoft.BingNews
|
||||
Microsoft.BingSports
|
||||
Microsoft.BingTravel
|
||||
Microsoft.BingWeather
|
||||
Microsoft.CommsPhone
|
||||
Microsoft.ConnectivityStore
|
||||
Microsoft.Getstarted
|
||||
Microsoft.Messaging
|
||||
Microsoft.Microsoft3DViewer
|
||||
Microsoft.MicrosoftOfficeHub
|
||||
Microsoft.MicrosoftPowerBIForWindows
|
||||
Microsoft.MicrosoftSolitaireCollection
|
||||
Microsoft.MicrosoftStickyNotes
|
||||
Microsoft.MinecraftUWP
|
||||
Microsoft.MSPaint
|
||||
Microsoft.Office.OneNote
|
||||
Microsoft.Office.Sway
|
||||
Microsoft.OneConnect
|
||||
Microsoft.People
|
||||
Microsoft.Services.Store.Engagement
|
||||
Microsoft.SkypeApp
|
||||
Microsoft.Windows.Photos
|
||||
Microsoft.WindowsAlarms
|
||||
Microsoft.WindowsCalculator
|
||||
Microsoft.WindowsCamera
|
||||
microsoft.windowscommunicationsapps
|
||||
Microsoft.WindowsFeedbackHub
|
||||
Microsoft.WindowsMaps
|
||||
Microsoft.WindowsPhone
|
||||
Microsoft.WindowsSoundRecorder
|
||||
Microsoft.WindowsStore
|
||||
Microsoft.ZuneMusic
|
||||
Microsoft.ZuneVideo
|
||||
Microsoft.Advertising.Xaml
|
10
modules.d/UninstallModernApp/OthersApps.txt
Normal file
10
modules.d/UninstallModernApp/OthersApps.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
DolbyLaboratories.DolbyAccess
|
||||
Expedia.ExpediaHotelsFlightsCarsActivities
|
||||
2414FC7A.Viber
|
||||
64885BlueEdge.OneCalendar
|
||||
89006A2E.AutodeskSketchBook
|
||||
9E2F88E3.Twitter
|
||||
CAF9E577.Plex
|
||||
king.com.CandyCrushSodaSaga
|
||||
SpotifyAB.SpotifyMusic
|
||||
WinZipComputing.WinZipUniversal
|
5
modules.d/UninstallModernApp/XboxApps.txt
Normal file
5
modules.d/UninstallModernApp/XboxApps.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Microsoft.Xbox.TCUI
|
||||
Microsoft.XboxApp
|
||||
Microsoft.XboxGameOverlay
|
||||
Microsoft.XboxIdentityProvider
|
||||
Microsoft.XboxSpeechToTextOverlay
|
4
modules.d/UninstallModernApp/XboxServices.txt
Normal file
4
modules.d/UninstallModernApp/XboxServices.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
XblAuthManager
|
||||
XblGameSave
|
||||
XboxNetApiSvc
|
||||
XboxGipSvc
|
Reference in a new issue