mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-17 09:25:41 +00:00
Added Function CheckInstallService
This commit is contained in:
parent
34753740aa
commit
69246b9cc2
@ -209,6 +209,14 @@ Function CheckService {
|
||||
Start-Service -Name dmwappushservice }
|
||||
}
|
||||
|
||||
Function CheckInstallService {
|
||||
|
||||
Param([switch]$Debloat)
|
||||
|
||||
If (Get-Service -Name InstallService | Where-Object ($_.Status -eq "Stopped"}) {
|
||||
Start-Service -Name InstallService
|
||||
Set-Service -Name InstallService -StartupType Automatic
|
||||
|
||||
Write-Output "Initiating Sysprep"
|
||||
Begin-SysPrep
|
||||
Write-Output "Removing bloatware apps."
|
||||
|
Loading…
Reference in New Issue
Block a user