forked from LeDragoX/Win-Debloat-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install-Individual-System-Apps.psm1
79 lines (62 loc) · 2.92 KB
/
Install-Individual-System-Apps.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Import-Module -DisableNameChecking "$PSScriptRoot\..\lib\Manage-Software.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\..\lib\Title-Templates.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\..\lib\debloat-helper\Set-ItemPropertyVerified.psm1"
Import-Module -DisableNameChecking "$PSScriptRoot\..\utils\Individual-Tweaks.psm1"
$Script:TweakType = "App"
function Install-Cortana() {
$Apps = @("9NFFX4SZZ23L")
Install-Software -Name "Cortana" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-DolbyAudio() {
$Apps = @("9NJZD5S7QN99")
Install-Software -Name "Dolby Audio" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-MicrosoftEdge() {
Install-Software -Name "Microsoft Edge" -Packages "Microsoft.Edge"
}
function Install-OneDrive() {
Write-Status -Types "*" -Status "Installing OneDrive..."
Set-ItemPropertyVerified -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Type DWord -Value 0
Start-Process -FilePath "$env:SystemRoot\SysWOW64\OneDriveSetup.exe"
}
function Install-PaintPaint3D() {
$Apps = @("9PCFS5B6T72H", "9NBLGGH5FV99")
Install-Software -Name "Paint + Paint 3D" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-PhoneLink() {
$Apps = @("9NMPJ99VJBWV")
Install-Software -Name "Phone Link (Your Phone)" -Packages $Apps -PackageProvider 'MsStore'
Enable-PhoneLink
}
function Install-QuickAssist() {
$Apps = @("9P7BP5VNWKX5")
Install-Software -Name "Quick Assist" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-SoundRecorder() {
$Apps = @("9WZDNCRFHWKN")
Install-Software -Name "Sound Recorder" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-TaskbarWidgetsApp() {
$Apps = @("9MSSGKG348SP")
Install-Software -Name "Taskbar Widgets" -Packages $Apps -PackageProvider 'MsStore'
}
function Install-UWPWindowsMediaPlayer() {
Install-Software -Name "Windows Media Player (UWP)" -Packages @("9WZDNCRFJ3PT") -PackageProvider 'MsStore'
}
function Install-Xbox() {
$PathToLMServicesXbgm = "HKLM:\SYSTEM\CurrentControlSet\Services\xbgm"
$TweakType = "Xbox"
$XboxServices = @(
"XblAuthManager" # Xbox Live Auth Manager
"XblGameSave" # Xbox Live Game Save
"XboxGipSvc" # Xbox Accessory Management Service
"XboxNetApiSvc"
)
$XboxApps = @("9MWPM2CQNLHN", "9MV0B5HZVK9Z", "9WZDNCRD1HKW", "9NZKPSTSNW4P")
Write-Status -Types "*", $TweakType -Status "Enabling ALL Xbox Services..."
Set-ServiceStartup -State 'Manual' -Services $XboxServices
Install-Software -Name "Missing Xbox Apps" -Packages $XboxApps -PackageProvider 'MsStore' -NoDialog
Write-Status -Types "*", $TweakType -Status "Enabling Xbox Game Monitoring..."
Set-ItemPropertyVerified -Path "$PathToLMServicesXbgm" -Name "Start" -Type DWord -Value 3
Enable-XboxGameBarDVRandMode
}