Compare commits
No commits in common. "97ad26ff910a85887ba5a66d5fc8cebd71eaf95b" and "4253dee3273176ff5490130e3dc014706779dfdd" have entirely different histories.
97ad26ff91
...
4253dee327
9 changed files with 12 additions and 125 deletions
14
cleanW10.ps1
14
cleanW10.ps1
|
@ -460,6 +460,7 @@ function DelFile {
|
||||||
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ExecCommand {
|
function ExecCommand {
|
||||||
param (
|
param (
|
||||||
[cmdletbinding(
|
[cmdletbinding(
|
||||||
|
@ -470,22 +471,19 @@ function ExecCommand {
|
||||||
ParameterSetName="params",
|
ParameterSetName="params",
|
||||||
Position = 0
|
Position = 0
|
||||||
)]
|
)]
|
||||||
[object]$params
|
[object]$params
|
||||||
)
|
)
|
||||||
$path = $params.path.Replace("##mod_path##", $script:current_module_path)
|
Write-Host -NoNewline "`tExecute : $($params.path) : "
|
||||||
$args = $params.arguments.Replace("##mod_path##", $script:current_module_path)
|
if ( -not (Test-Path $params.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"
|
Write-Host -ForegroundColor Yellow "File not found"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Start-Process -wait -filepath $path -ArgumentList $args.split(" ")
|
Start-Process $params.path -ArgumentList $params.arguments
|
||||||
Write-Host -ForegroundColor Green "done"
|
Write-Host -ForegroundColor Green "done"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host -NoNewLine -ForegroundColor Red "Error`n`t"
|
Write-Host -NoNewLine -ForegroundColor Red "`Error in DelFile`n`t"
|
||||||
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,26 +7,26 @@
|
||||||
"_comment" : "This is the principal reg key controlled by GPO",
|
"_comment" : "This is the principal reg key controlled by GPO",
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsRunInBackground",
|
"key" : "LetAppsRunInBackgound",
|
||||||
"value" : "2"
|
"value" : "2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsRunInBackground_UserInControlOfTheseApps",
|
"key" : "LetAppsRunInBackgound_UserInControlOfTheseApps",
|
||||||
"type" : "MultiString"
|
"type" : "MultiString"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsRunInBackground_ForceAllowTheseApps",
|
"key" : "LetAppsRunInBackgound_ForceAllowTheseApps",
|
||||||
"type" : "MultiString"
|
"type" : "MultiString"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsRunInBackground_ForceDenyTheseApps",
|
"key" : "LetAppsRunInBackgound_ForceDenyTheseApps",
|
||||||
"type" : "MultiString"
|
"type" : "MultiString"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsAccessCallHistory",
|
"key" : "LetAppsAccessCallHistory",
|
||||||
"value" : "2"
|
"value" : "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
"_comment" : "The 3 bottom k eys seems to be some kind of ACL for App right",
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"action" : "AddRegKey",
|
"action" : "AddRegKey",
|
||||||
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
"path" : "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppPrivacy",
|
||||||
"key" : "LetAppsAccessEmail",
|
"key" : "LetAppsAccessEmail",
|
||||||
"value" : "2"
|
"value" : "0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_comment" : "The 3 bottom k eys s eems to be some kind of ACL for App right",
|
"_comment" : "The 3 bottom k eys s eems to be some kind of ACL for App right",
|
||||||
|
|
|
@ -1,53 +0,0 @@
|
||||||
{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
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
|
|
|
@ -1,10 +0,0 @@
|
||||||
DolbyLaboratories.DolbyAccess
|
|
||||||
Expedia.ExpediaHotelsFlightsCarsActivities
|
|
||||||
2414FC7A.Viber
|
|
||||||
64885BlueEdge.OneCalendar
|
|
||||||
89006A2E.AutodeskSketchBook
|
|
||||||
9E2F88E3.Twitter
|
|
||||||
CAF9E577.Plex
|
|
||||||
king.com.CandyCrushSodaSaga
|
|
||||||
SpotifyAB.SpotifyMusic
|
|
||||||
WinZipComputing.WinZipUniversal
|
|
|
@ -1,5 +0,0 @@
|
||||||
Microsoft.Xbox.TCUI
|
|
||||||
Microsoft.XboxApp
|
|
||||||
Microsoft.XboxGameOverlay
|
|
||||||
Microsoft.XboxIdentityProvider
|
|
||||||
Microsoft.XboxSpeechToTextOverlay
|
|
|
@ -1,4 +0,0 @@
|
||||||
XblAuthManager
|
|
||||||
XblGameSave
|
|
||||||
XboxNetApiSvc
|
|
||||||
XboxGipSvc
|
|
Reference in a new issue