Changed log folder path

I changed the log folder path from C:\Windows10Debloater to C:\Temp\Windows10Debloater
This commit is contained in:
Richard Newton 2018-12-23 14:42:28 -08:00 committed by GitHub
parent e75fbd9f91
commit ad05dee3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -4,17 +4,18 @@
#no errors throughout
$ErrorActionPreference = 'silentlycontinue'
If (Test-Path "C:\Windows10Debloater") {
Write-Output "C:\Windows10Debloater exists. Skipping."
$DebloatFolder = "C:\Temp\Windows10Debloater"
If (Test-Path $DebloatFolder) {
Write-Output "$DebloatFolder exists. Skipping."
}
Else {
Write-Output "The folder 'C:\Windows10Debloater' doesn't exist. This folder will be used for storing logs created after the script runs. Creating now."
Write-Output "The folder "$DebloatFolder" doesn't exist. This folder will be used for storing logs created after the script runs. Creating now."
Start-Sleep 1
New-Item -Path "C:\Windows10Debloater" -ItemType Directory
Write-Output "The folder C:\Windows10Debloater was successfully created."
New-Item -Path "$DebloatFolder" -ItemType Directory
Write-Output "The folder $DebloatFolder was successfully created."
}
Start-Transcript -OutputDirectory "C:\Windows10Debloater"
Start-Transcript -OutputDirectory "$DebloatFolder"
Add-Type -AssemblyName PresentationCore, PresentationFramework