Browse Source

Fixed missing parameter

master
Dmitry Nefedov 4 weeks ago
parent
commit
e4412a9523
  1. 6
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 11
      src/Sophia_Script_for_Windows_10/Sophia.ps1
  3. 8
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  4. 13
      src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
  5. 8
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  6. 13
      src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
  7. 6
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  8. 11
      src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
  9. 6
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  10. 11
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  11. 6
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  12. 11
      src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1
  13. 6
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
  14. 11
      src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

6
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -12235,7 +12235,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -12675,7 +12675,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -12993,7 +12993,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

11
src/Sophia_Script_for_Windows_10/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 10" Default preset file for "Sophia Script for Windows 10"
Version: 5.20.0 .VERSION
Date: 29.12.2024 5.20.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION

8
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -18,7 +18,7 @@
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.NOTES .NOTES
Supported Windows 10 x64 Enterprise LTSC 2019 Supports Windows 10 x64 Enterprise LTSC 2019
.LINK .LINK
https://github.com/farag2/Sophia-Script-for-Windows https://github.com/farag2/Sophia-Script-for-Windows
@ -9007,7 +9007,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -9447,7 +9447,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -9765,7 +9765,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

13
src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2019" Default preset file for "Sophia Script for Windows 10 LTSC 2019"
Version: 5.10.0 .VERSION
Date: 29.12.2024 5.10.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION
@ -24,7 +29,7 @@
iwr script.sophia.team -useb | iex iwr script.sophia.team -useb | iex
.NOTES .NOTES
Supported Windows 10 Enterprise LTSC 2019 Supports Windows 10 Enterprise LTSC 2019
Architecture: x64 Architecture: x64
.NOTES .NOTES

8
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
.VERSION .VERSION
5.10.0 5.20.0
.DATE .DATE
29.12.2024 29.12.2024
@ -10129,7 +10129,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -10569,7 +10569,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -10887,7 +10887,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

13
src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC 2021" Default preset file for "Sophia Script for Windows 10 LTSC 2021"
Version: 5.20.0 .VERSION
Date: 29.12.2024 5.20.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION
@ -24,7 +29,7 @@
iwr script.sophia.team -useb | iex iwr script.sophia.team -useb | iex
.NOTES .NOTES
Supported Windows 10 Enterprise LTSC 2021 Supports Windows 10 Enterprise LTSC 2021
Architecture: x64 Architecture: x64
.NOTES .NOTES

6
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -12265,7 +12265,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -12705,7 +12705,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -13023,7 +13023,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

11
src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" Default preset file for "Sophia Script for Windows 10 (PowerShell 7)"
Version: 5.20.0 .VERSION
Date: 29.12.2024 5.20.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION

6
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -11225,7 +11225,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -11686,7 +11686,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -12025,7 +12025,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

11
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 11" Default preset file for "Sophia Script for Windows 11"
Version: 6.8.0 .VERSION
Date: 29.12.2024 6.8.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION

6
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -10517,7 +10517,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -10978,7 +10978,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -11317,7 +11317,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

11
src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 11 LTSC 2024" Default preset file for "Sophia Script for Windows 11 LTSC 2024"
Version: 6.8.0 .VERSION
Date: 29.12.2024 6.8.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -11255,7 +11255,7 @@ function CleanupTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -11716,7 +11716,7 @@ function SoftwareDistributionTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {
@ -12055,7 +12055,7 @@ function TempTask
} }
# Convert SID to username # Convert SID to username
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1 $TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
if ($TaskUserAccount -ne $env:USERNAME) if ($TaskUserAccount -ne $env:USERNAME)
{ {

11
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -2,11 +2,16 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" Default preset file for "Sophia Script for Windows 11 (PowerShell 7)"
Version: 6.8.0 .VERSION
Date: 29.12.2024 6.8.0
Copyright (c) 20142025 farag, Inestic & lowl1f3 .DATE
29.12.2024
.COPYRIGHT
(c) 20142025 farag, Inestic & lowl1f3
.THANKS
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION .DESCRIPTION

Loading…
Cancel
Save