Browse Source

Added UnpinTaskbarShortcuts -Shortcuts Outlook argument value

master
Dmitry Nefedov 2 weeks ago
parent
commit
16b71e48a8
  1. 8
      Wrapper/Localizations/de-DE/tooltip_Windows_10.json
  2. 10
      Wrapper/Localizations/de-DE/tooltip_Windows_11.json
  3. 8
      Wrapper/Localizations/en-US/tooltip_Windows_10.json
  4. 10
      Wrapper/Localizations/en-US/tooltip_Windows_11.json
  5. 8
      Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
  6. 10
      Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
  7. 8
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  8. 4
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  9. 4
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  10. 8
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  11. 25
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  12. 6
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  13. 4
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  14. 25
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
  15. 6
      src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

8
Wrapper/Localizations/de-DE/tooltip_Windows_10.json

@ -618,19 +618,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Die Verknüpfungen \"Microsoft Edge\", \"Microsoft Store\" oder \"Mail\" von der Taskleiste lösen.", "ToolTip": "Die Verknüpfungen Microsoft Edge, Microsoft Store oder Mail von der Taskleiste lösen.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Die Verknüpfung \"Microsoft Edge\" von der Taskleiste lösen." "ToolTip": "Die Verknüpfung Microsoft Edge von der Taskleiste lösen."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Die Verknüpfung \"Microsoft Store\" von der Taskleiste lösen." "ToolTip": "Die Verknüpfung Microsoft Store von der Taskleiste lösen."
}, },
"Two": { "Two": {
"Tag": "Mail", "Tag": "Mail",
"ToolTip": "Die Verknüpfung \"Mail\" von der Taskleiste lösen" "ToolTip": "Die Verknüpfung Mail von der Taskleiste lösen"
} }
} }
}, },

10
Wrapper/Localizations/de-DE/tooltip_Windows_11.json

@ -566,15 +566,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Die Verknüpfungen \"Microsoft Edge\", \"Microsoft Store\" oder \"Mail\" von der Taskleiste lösen.", "ToolTip": "Die Verknüpfungen Microsoft Edge, Microsoft Store oder Outlook von der Taskleiste lösen.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Die Verknüpfung \"Microsoft Edge\" von der Taskleiste lösen." "ToolTip": "Die Verknüpfung Microsoft Edge von der Taskleiste lösen."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Die Verknüpfung \"Microsoft Store\" von der Taskleiste lösen." "ToolTip": "Die Verknüpfung Microsoft Store von der Taskleiste lösen."
},
"Two": {
"Tag": "Outlook",
"ToolTip": "Die Verknüpfung Outlook von der Taskleiste lösen."
} }
} }
}, },

8
Wrapper/Localizations/en-US/tooltip_Windows_10.json

@ -614,19 +614,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Unpin the \"Microsoft Edge\", \"Microsoft Store\", or \"Mail\" shortcuts from the taskbar.", "ToolTip": "Unpin Microsoft Edge, Microsoft Store, or Mail shortcuts from the taskbar.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Unpin the \"Microsoft Edge\" shortcut from the taskbar." "ToolTip": "Unpin Microsoft Edge shortcut from the taskbar."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Unpin the \"Microsoft Store\" shortcut from the taskbar." "ToolTip": "Unpin Microsoft Store shortcut from the taskbar."
}, },
"Two": { "Two": {
"Tag": "Mail", "Tag": "Mail",
"ToolTip": "Unpin the \"Mail\" shortcut from the taskbar." "ToolTip": "Unpin Mail shortcut from the taskbar."
} }
} }
}, },

10
Wrapper/Localizations/en-US/tooltip_Windows_11.json

@ -566,15 +566,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Unpin the \"Microsoft Edge\" and \"Microsoft Store\" shortcuts from the taskbar.", "ToolTip": "Unpin Microsoft Edge, Microsoft Store, and Outlook shortcuts from the taskbar.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Unpin the \"Microsoft Edge\" shortcut from the taskbar." "ToolTip": "Unpin Microsoft Edge shortcut from the taskbar."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Unpin the \"Microsoft Store\" shortcut from the taskbar." "ToolTip": "Unpin Microsoft Store shortcut from the taskbar."
},
"Two": {
"Tag": "Outlook",
"ToolTip": "Unpin Outlook shortcut from the taskbar."
} }
} }
}, },

8
Wrapper/Localizations/ru-RU/tooltip_Windows_10.json

@ -618,19 +618,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Открепить ярлыки \"Microsoft Edge\", \"Microsoft Store\" или \"Почта\" от панели задач.", "ToolTip": "Открепить ярлыки Microsoft Edge, Microsoft Store или Почта от панели задач.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Открепить ярлык \"Microsoft Edge\" от панели задач." "ToolTip": "Открепить ярлык Microsoft Edge от панели задач."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Открепить ярлык \"Microsoft Store\" от панели задач." "ToolTip": "Открепить ярлык Microsoft Store от панели задач."
}, },
"Two": { "Two": {
"Tag": "Mail", "Tag": "Mail",
"ToolTip": "Открепить ярлык \"Почта\" от панели задач" "ToolTip": "Открепить ярлык Почта от панели задач"
} }
} }
}, },

10
Wrapper/Localizations/ru-RU/tooltip_Windows_11.json

@ -566,15 +566,19 @@
{ {
"Region": "UI & Personalization", "Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts", "Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Открепить ярлыки \"Microsoft Edge\", \"Microsoft Store\" от панели задач.", "ToolTip": "Открепить ярлыки Microsoft Edge, Microsoft Store и Outlook от панели задач.",
"Arg": { "Arg": {
"Zero": { "Zero": {
"Tag": "Edge", "Tag": "Edge",
"ToolTip": "Открепить ярлык \"Microsoft Edge\" от панели задач." "ToolTip": "Открепить ярлык Microsoft Edge от панели задач."
}, },
"One": { "One": {
"Tag": "Store", "Tag": "Store",
"ToolTip": "Открепить ярлык \"Microsoft Store\" от панели задач." "ToolTip": "Открепить ярлык Microsoft Store от панели задач."
},
"Two": {
"Tag": "Outlook",
"ToolTip": "Открепить ярлык Outlook от панели задач."
} }
} }
}, },

8
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -66,10 +66,6 @@ function InitialActions
# https://github.com/PowerShell/PowerShell/issues/2138 # https://github.com/PowerShell/PowerShell/issues/2138
$Script:ProgressPreference = "SilentlyContinue" $Script:ProgressPreference = "SilentlyContinue"
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)
@ -4104,10 +4100,10 @@ function TaskbarCombine
Unpin shortcuts from the taskbar Unpin shortcuts from the taskbar
.PARAMETER Edge .PARAMETER Edge
Unpin the "Microsoft Edge" shortcut from the taskbar Unpin Microsoft Edge shortcut from the taskbar
.PARAMETER Store .PARAMETER Store
Unpin the "Microsoft Store" shortcut from the taskbar Unpin Microsoft Store from the taskbar
.PARAMETER Mail .PARAMETER Mail
Unpin the "Mail" shortcut from the taskbar Unpin the "Mail" shortcut from the taskbar

4
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -66,10 +66,6 @@ function InitialActions
# https://github.com/PowerShell/PowerShell/issues/2138 # https://github.com/PowerShell/PowerShell/issues/2138
$Script:ProgressPreference = "SilentlyContinue" $Script:ProgressPreference = "SilentlyContinue"
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)

4
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -66,10 +66,6 @@ function InitialActions
# https://github.com/PowerShell/PowerShell/issues/2138 # https://github.com/PowerShell/PowerShell/issues/2138
$Script:ProgressPreference = "SilentlyContinue" $Script:ProgressPreference = "SilentlyContinue"
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)

8
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -65,10 +65,6 @@ function InitialActions
# Import PowerShell 5.1 modules # Import PowerShell 5.1 modules
Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx, DISM -UseWindowsPowerShell Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx, DISM -UseWindowsPowerShell
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerOptions = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerOptions = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerOptions.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerOptions.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)
@ -4122,10 +4118,10 @@ function TaskbarCombine
Unpin shortcuts from the taskbar Unpin shortcuts from the taskbar
.PARAMETER Edge .PARAMETER Edge
Unpin the "Microsoft Edge" shortcut from the taskbar Unpin Microsoft Edge shortcut from the taskbar
.PARAMETER Store .PARAMETER Store
Unpin the "Microsoft Store" shortcut from the taskbar Unpin Microsoft Store from the taskbar
.PARAMETER Mail .PARAMETER Mail
Unpin the "Mail" shortcut from the taskbar Unpin the "Mail" shortcut from the taskbar

25
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -66,10 +66,6 @@ function InitialActions
# https://github.com/PowerShell/PowerShell/issues/2138 # https://github.com/PowerShell/PowerShell/issues/2138
$Script:ProgressPreference = "SilentlyContinue" $Script:ProgressPreference = "SilentlyContinue"
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)
@ -3594,13 +3590,16 @@ function TaskbarCombine
Unpin shortcuts from the taskbar Unpin shortcuts from the taskbar
.PARAMETER Edge .PARAMETER Edge
Unpin the "Microsoft Edge" shortcut from the taskbar Unpin Microsoft Edge shortcut from the taskbar
.PARAMETER Store .PARAMETER Store
Unpin the "Microsoft Store" shortcut from the taskbar Unpin Microsoft Store from the taskbar
.PARAMETER Outlook
Unpin Outlook shortcut from the taskbar
.EXAMPLE .EXAMPLE
UnpinTaskbarShortcuts -Shortcuts Edge, Store UnpinTaskbarShortcuts -Shortcuts Edge, Store, Outlook
.NOTES .NOTES
Current user Current user
@ -3611,7 +3610,7 @@ function UnpinTaskbarShortcuts
param param
( (
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[ValidateSet("Edge", "Store")] [ValidateSet("Edge", "Store", "Outlook")]
[string[]] [string[]]
$Shortcuts $Shortcuts
) )
@ -3644,6 +3643,16 @@ function UnpinTaskbarShortcuts
}).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()} }).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}
} }
} }
Outlook
{
if ((New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items() | Where-Object -FilterScript {$_.Name -match "Outlook"})
{
# Extract the localized "Unpin from taskbar" string from shell32.dll
((New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items() | Where-Object -FilterScript {
$_.Name -match "Outlook"
}).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}
}
}
} }
} }
} }

6
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -491,9 +491,9 @@ TaskbarCombine -Always
# Объединить кнопки панели задач и никогда не скрывать метки # Объединить кнопки панели задач и никогда не скрывать метки
# TaskbarCombine -Never # TaskbarCombine -Never
# Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar # Unpin Microsoft Edge, Microsoft Store, and Outlook shortcuts from the taskbar
# Открепить ярлыки "Microsoft Edge", "Microsoft Store" от панели задач # Открепить ярлыки Microsoft Edge, Microsoft Store и Outlook от панели задач
UnpinTaskbarShortcuts -Shortcuts Edge, Store UnpinTaskbarShortcuts -Shortcuts Edge, Store, Outlook
# Enable end task in taskbar by right click # Enable end task in taskbar by right click
# Включить завершение задачи на панели задач правой кнопкой мыши # Включить завершение задачи на панели задач правой кнопкой мыши

4
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -66,10 +66,6 @@ function InitialActions
# https://github.com/PowerShell/PowerShell/issues/2138 # https://github.com/PowerShell/PowerShell/issues/2138
$Script:ProgressPreference = "SilentlyContinue" $Script:ProgressPreference = "SilentlyContinue"
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)

25
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -65,10 +65,6 @@ function InitialActions
# Import PowerShell 5.1 modules # Import PowerShell 5.1 modules
Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx, DISM -UseWindowsPowerShell Import-Module -Name Microsoft.PowerShell.Management, PackageManagement, Appx, DISM -UseWindowsPowerShell
# Extract strings from %SystemRoot%\System32\shell32.dll using its number
# https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1
# [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100")
# https://github.com/PowerShell/PowerShell/issues/21070 # https://github.com/PowerShell/PowerShell/issues/21070
$Script:CompilerOptions = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") $Script:CompilerOptions = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll")
$Script:CompilerOptions.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) $Script:CompilerOptions.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false)
@ -3612,13 +3608,16 @@ function TaskbarCombine
Unpin shortcuts from the taskbar Unpin shortcuts from the taskbar
.PARAMETER Edge .PARAMETER Edge
Unpin the "Microsoft Edge" shortcut from the taskbar Unpin Microsoft Edge shortcut from the taskbar
.PARAMETER Store .PARAMETER Store
Unpin the "Microsoft Store" shortcut from the taskbar Unpin Microsoft Store from the taskbar
.PARAMETER Outlook
Unpin Outlook shortcut from the taskbar
.EXAMPLE .EXAMPLE
UnpinTaskbarShortcuts -Shortcuts Edge, Store UnpinTaskbarShortcuts -Shortcuts Edge, Store, Outlook
.NOTES .NOTES
Current user Current user
@ -3629,7 +3628,7 @@ function UnpinTaskbarShortcuts
param param
( (
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[ValidateSet("Edge", "Store")] [ValidateSet("Edge", "Store", "Outlook")]
[string[]] [string[]]
$Shortcuts $Shortcuts
) )
@ -3662,6 +3661,16 @@ function UnpinTaskbarShortcuts
}).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()} }).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}
} }
} }
Outlook
{
if ((New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items() | Where-Object -FilterScript {$_.Name -match "Outlook"})
{
# Extract the localized "Unpin from taskbar" string from shell32.dll
((New-Object -ComObject Shell.Application).NameSpace("shell:::{4234d49b-0245-4df3-b780-3893943456e1}").Items() | Where-Object -FilterScript {
$_.Name -match "Outlook"
}).Verbs() | Where-Object -FilterScript {$_.Name -eq $LocalizedString} | ForEach-Object -Process {$_.DoIt()}
}
}
} }
} }
} }

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -495,9 +495,9 @@ TaskbarCombine -Always
# Объединить кнопки панели задач и никогда не скрывать метки # Объединить кнопки панели задач и никогда не скрывать метки
# TaskbarCombine -Never # TaskbarCombine -Never
# Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar # Unpin Microsoft Edge, Microsoft Store, and Outlook shortcuts from the taskbar
# Открепить ярлыки "Microsoft Edge", "Microsoft Store" от панели задач # Открепить ярлыки Microsoft Edge, Microsoft Store и Outlook от панели задач
UnpinTaskbarShortcuts -Shortcuts Edge, Store UnpinTaskbarShortcuts -Shortcuts Edge, Store, Outlook
# Enable end task in taskbar by right click # Enable end task in taskbar by right click
# Включить завершение задачи на панели задач правой кнопкой мыши # Включить завершение задачи на панели задач правой кнопкой мыши

Loading…
Cancel
Save