Added Start-Transcript

pull/82/head
Richard Newton 6 years ago committed by GitHub
parent 30c0a9a65f
commit 7a1a7125f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,6 +129,8 @@ Else {
Write-Output "The folder $DebloatFolder was successfully created."
}
Start-Transcript -OutputDirectory "$DebloatFolder"
#region gui events {
$RemoveBlacklist.Add_Click( {
$ErrorActionPreference = 'silentlycontinue'
@ -246,7 +248,7 @@ If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disable
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice}
}
}
Function DebloatAll {
@ -500,15 +502,14 @@ If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"})
Function CheckDMWService {
Param([switch]$Debloat)
Param([switch]$Debloat)
If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disabled"}) {
Set-Service -Name dmwappushservice -StartupType Automatic}
If (Get-Service -Name dmwappushservice | Where-Object {$_.StartType -eq "Disabled"}) {
Set-Service -Name dmwappushservice -StartupType Automatic}
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice}
}
}
If(Get-Service -Name dmwappushservice | Where-Object {$_.Status -eq "Stopped"}) {
Start-Service -Name dmwappushservice}
}
Function CheckInstallService {

Loading…
Cancel
Save