From 0b2dc1dcbc3b569fda44839886eb7b8ed5c1bb9d Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Wed, 8 Mar 2023 22:25:53 +0300 Subject: [PATCH] fixed typos --- src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 | 6 +++--- .../Module/Sophia.psm1 | 6 +++--- .../Module/Sophia.psm1 | 6 +++--- .../Module/Sophia.psm1 | 6 +++--- src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 | 6 +++--- .../Module/Sophia.psm1 | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index f439841a..980ec6ff 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -11941,7 +11941,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -12234,7 +12234,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -12520,7 +12520,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index b0597fb0..f7f81454 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -8581,7 +8581,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -8874,7 +8874,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -9160,7 +9160,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 0e097d6e..1cfed399 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -9723,7 +9723,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -10016,7 +10016,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -10302,7 +10302,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index b1180f0d..973ba0e8 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -11964,7 +11964,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -12257,7 +12257,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -12543,7 +12543,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index caf9f262..64768d85 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -11369,7 +11369,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -11662,7 +11662,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -11948,7 +11948,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index b08abb0a..990ebe80 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -11392,7 +11392,7 @@ while ([WinAPI.Focus]::GetFocusAssistState() -ne "OFF") # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\Windows_Cleanup_Notification.ps1" -Value $ToastNotification -Encoding Default -Force # Replace here-string double quotes with single ones @@ -11685,7 +11685,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\SoftwareDistributionTask.ps1" -Value $SoftwareDistributionTask -Encoding Default -Force # Replace here-string double quotes with single ones @@ -11971,7 +11971,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object -FilterScript {`$_ # Save script to be able to call them from VBS file if (-not (Test-Path -Path $env:SystemRoot\System32\Tasks\Sophia)) { - New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -Force + New-Item -Path $env:SystemRoot\System32\Tasks\Sophia -ItemType Directory -Force } Set-Content -Path "$env:SystemRoot\System32\Tasks\Sophia\TempTask.ps1" -Value $TempTask -Encoding Default -Force # Replace here-string double quotes with single ones