@@ -14,6 +14,7 @@ function Main() {
14
14
$Script :NeedRestart = $false
15
15
$Script :DoneTitle = " Information"
16
16
$Script :DoneMessage = " Process Completed!"
17
+ $Host.UI.RawUI.WindowTitle = ' 🚀 Win Debloat Tools'
17
18
}
18
19
19
20
Process {
@@ -41,19 +42,20 @@ function Main() {
41
42
Import-Module - DisableNameChecking " $PSScriptRoot \src\utils\Individual-Tweaks.psm1" - Force
42
43
Import-Module - DisableNameChecking " $PSScriptRoot \src\utils\Install-Individual-System-Apps.psm1" - Force
43
44
45
+ Set-ConsoleStyle
46
+
44
47
If (" $pwd " -notlike " $PSScriptRoot " ) {
45
- Write-Host " Wrong location detected, changing to script folder!" - BackgroundColor Yellow
48
+ Write-Style " Wrong location detected, changing to script folder! ( $pwd ) " - Color Yellow - BackColor Black - Style Bold
46
49
Set-Location - Path " $PSScriptRoot "
47
50
}
48
51
49
- Set-ConsoleStyle
50
52
$CurrentFileName = (Split-Path - Path $PSCommandPath - Leaf).Split(' .' )[0 ]
51
53
$CurrentFileLastModified = (Get-Item " $ ( Split-Path - Path $PSCommandPath - Leaf) " ).LastWriteTimeUtc | Get-Date - Format " yyyy.MM.dd"
52
- (Get-Item " $ ( Split-Path - Path $PSCommandPath - Leaf) " ).LastWriteTimeUtc | Get-Date - Format " yyyy-MM- dd"
54
+ (Get-Item " $ ( Split-Path - Path $PSCommandPath - Leaf) " ).LastWriteTimeUtc | Get-Date - Format " yyyy.MM. dd"
53
55
Start-Logging - File " $CurrentFileName -$ ( Get-Date - Format " yyyy-MM" ) "
54
56
Write-Caption " $CurrentFileName v$CurrentFileLastModified "
55
- Write-Host " Your Current Folder $pwd "
56
- Write-Host " Script Root Folder $PSScriptRoot "
57
+ Write-Style " Your Current Folder $pwd " - Color Cyan - BackColor Black - Style Bold
58
+ Write-Style " Script Root Folder $PSScriptRoot " - Color Cyan - BackColor Black - Style Bold
57
59
Write-ScriptLogo
58
60
59
61
If ($args ) {
0 commit comments