فهرست منبع

Added Start-Transcript

Richard Newton 6 سال پیش
والد
کامیت
7a1a7125f3
1فایلهای تغییر یافته به همراه9 افزوده شده و 8 حذف شده
  1. 9 8
      Windows10DebloaterGUI.ps1

+ 9 - 8
Windows10DebloaterGUI.ps1

@@ -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 {