Skip to content

Commit 8881bf0

Browse files
committed
Fixed missing parameter
1 parent 8016b5f commit 8881bf0

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12235,7 +12235,7 @@ function CleanupTask
1223512235
}
1223612236

1223712237
# Convert SID to username
12238-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12238+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1223912239

1224012240
if ($TaskUserAccount -ne $env:USERNAME)
1224112241
{
@@ -12675,7 +12675,7 @@ function SoftwareDistributionTask
1267512675
}
1267612676

1267712677
# Convert SID to username
12678-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12678+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1267912679

1268012680
if ($TaskUserAccount -ne $env:USERNAME)
1268112681
{
@@ -12993,7 +12993,7 @@ function TempTask
1299312993
}
1299412994

1299512995
# Convert SID to username
12996-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12996+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1299712997

1299812998
if ($TaskUserAccount -ne $env:USERNAME)
1299912999
{

src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Thanks to all https://forum.ru-board.com members involved
1919
2020
.NOTES
21-
Supported Windows 10 x64 Enterprise LTSC 2019
21+
Supports Windows 10 x64 Enterprise LTSC 2019
2222
2323
.LINK
2424
https://github.com/farag2/Sophia-Script-for-Windows
@@ -9007,7 +9007,7 @@ function CleanupTask
90079007
}
90089008

90099009
# Convert SID to username
9010-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
9010+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
90119011

90129012
if ($TaskUserAccount -ne $env:USERNAME)
90139013
{
@@ -9447,7 +9447,7 @@ function SoftwareDistributionTask
94479447
}
94489448

94499449
# Convert SID to username
9450-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
9450+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
94519451

94529452
if ($TaskUserAccount -ne $env:USERNAME)
94539453
{
@@ -9765,7 +9765,7 @@ function TempTask
97659765
}
97669766

97679767
# Convert SID to username
9768-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
9768+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
97699769

97709770
if ($TaskUserAccount -ne $env:USERNAME)
97719771
{

src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
iwr script.sophia.team -useb | iex
2525
2626
.NOTES
27-
Supported Windows 10 Enterprise LTSC 2019
27+
Supports Windows 10 Enterprise LTSC 2019
2828
Architecture: x64
2929
3030
.NOTES

src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10129,7 +10129,7 @@ function CleanupTask
1012910129
}
1013010130

1013110131
# Convert SID to username
10132-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
10132+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1013310133

1013410134
if ($TaskUserAccount -ne $env:USERNAME)
1013510135
{
@@ -10569,7 +10569,7 @@ function SoftwareDistributionTask
1056910569
}
1057010570

1057110571
# Convert SID to username
10572-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
10572+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1057310573

1057410574
if ($TaskUserAccount -ne $env:USERNAME)
1057510575
{
@@ -10887,7 +10887,7 @@ function TempTask
1088710887
}
1088810888

1088910889
# Convert SID to username
10890-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
10890+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1089110891

1089210892
if ($TaskUserAccount -ne $env:USERNAME)
1089310893
{

src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
iwr script.sophia.team -useb | iex
2525
2626
.NOTES
27-
Supported Windows 10 Enterprise LTSC 2021
27+
Supports Windows 10 Enterprise LTSC 2021
2828
Architecture: x64
2929
3030
.NOTES

src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12265,7 +12265,7 @@ function CleanupTask
1226512265
}
1226612266

1226712267
# Convert SID to username
12268-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12268+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1226912269

1227012270
if ($TaskUserAccount -ne $env:USERNAME)
1227112271
{
@@ -12705,7 +12705,7 @@ function SoftwareDistributionTask
1270512705
}
1270612706

1270712707
# Convert SID to username
12708-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12708+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1270912709

1271012710
if ($TaskUserAccount -ne $env:USERNAME)
1271112711
{
@@ -13023,7 +13023,7 @@ function TempTask
1302313023
}
1302413024

1302513025
# Convert SID to username
13026-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
13026+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1302713027

1302813028
if ($TaskUserAccount -ne $env:USERNAME)
1302913029
{

src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11225,7 +11225,7 @@ function CleanupTask
1122511225
}
1122611226

1122711227
# Convert SID to username
11228-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
11228+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1122911229

1123011230
if ($TaskUserAccount -ne $env:USERNAME)
1123111231
{
@@ -11686,7 +11686,7 @@ function SoftwareDistributionTask
1168611686
}
1168711687

1168811688
# Convert SID to username
11689-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
11689+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1169011690

1169111691
if ($TaskUserAccount -ne $env:USERNAME)
1169211692
{
@@ -12025,7 +12025,7 @@ function TempTask
1202512025
}
1202612026

1202712027
# Convert SID to username
12028-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12028+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1202912029

1203012030
if ($TaskUserAccount -ne $env:USERNAME)
1203112031
{

src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10517,7 +10517,7 @@ function CleanupTask
1051710517
}
1051810518

1051910519
# Convert SID to username
10520-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
10520+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1052110521

1052210522
if ($TaskUserAccount -ne $env:USERNAME)
1052310523
{
@@ -10978,7 +10978,7 @@ function SoftwareDistributionTask
1097810978
}
1097910979

1098010980
# Convert SID to username
10981-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
10981+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1098210982

1098310983
if ($TaskUserAccount -ne $env:USERNAME)
1098410984
{
@@ -11317,7 +11317,7 @@ function TempTask
1131711317
}
1131811318

1131911319
# Convert SID to username
11320-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
11320+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1132111321

1132211322
if ($TaskUserAccount -ne $env:USERNAME)
1132311323
{

src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11255,7 +11255,7 @@ function CleanupTask
1125511255
}
1125611256

1125711257
# Convert SID to username
11258-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
11258+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1125911259

1126011260
if ($TaskUserAccount -ne $env:USERNAME)
1126111261
{
@@ -11716,7 +11716,7 @@ function SoftwareDistributionTask
1171611716
}
1171711717

1171811718
# Convert SID to username
11719-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
11719+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1172011720

1172111721
if ($TaskUserAccount -ne $env:USERNAME)
1172211722
{
@@ -12055,7 +12055,7 @@ function TempTask
1205512055
}
1205612056

1205712057
# Convert SID to username
12058-
$TaskUserAccount = (New-Object System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
12058+
$TaskUserAccount = (New-Object -TypeName System.Security.Principal.SecurityIdentifier($SID)).Translate([System.Security.Principal.NTAccount]).Value -split "\\" | Select-Object -Last 1
1205912059

1206012060
if ($TaskUserAccount -ne $env:USERNAME)
1206112061
{

0 commit comments

Comments
 (0)