Browse Source

20.06.2021 v5.2.8

pull/217/head
Dmitry Nefedov 4 years ago
committed by GitHub
parent
commit
faff5eb238
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      Sophia/LTSC/Functions.ps1
  2. 156
      Sophia/LTSC/Localizations/zh-CN/Sophia.psd1
  3. 2
      Sophia/LTSC/Manifest/Sophia.psd1
  4. 40
      Sophia/LTSC/Module/Sophia.psm1
  5. 37
      Sophia/LTSC/Sophia.ps1

12
Sophia/LTSC/Functions.ps1

@ -2,11 +2,11 @@
.SYNOPSIS .SYNOPSIS
The TAB completion for functions and their arguments The TAB completion for functions and their arguments
Version: v5.2.7 Version: v5.2.8
Date: 13.06.2021 Date: 20.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved Thanks to all https://forum.ru-board.com members involved
@ -24,7 +24,7 @@
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
.NOTES .NOTES
Separate functions with comma Separate functions with a comma
.NOTES .NOTES
https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15 https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15
@ -66,7 +66,7 @@ function Sophia
Clear-Host Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" $Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.8 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -108,7 +108,7 @@ $Parameters = @{
"PinToStart" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} "PinToStart" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""}
} }
# "PinToStart -Tiles <functions>" construction # The "PinToStart -Tiles <functions>" construction
"PinToStart" + " " + "-" + $ParameterSet + " " + ($ValidValues -join ", ") | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} "PinToStart" + " " + "-" + $ParameterSet + " " + ($ValidValues -join ", ") | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""}
} }

156
Sophia/LTSC/Localizations/zh-CN/Sophia.psd1

@ -1,83 +1,73 @@
ConvertFrom-StringData -StringData @' ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64 UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H2/21H1和更高版本 UnsupportedOSBuild = 该脚本支持Windows 10版本1809 Enterprise LTSC
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行 UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
UnsupportedRelease = 找到新版本 UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前您是否已自定义Sophia.ps1预设文件中的每个函数 CustomizationWarning = \n在运行Sophia Script之前您是否已自定义Sophia.ps1预设文件中的每个函数
ControlledFolderAccessDisabled = 受控文件夹访问已禁用 ControlledFolderAccessDisabled = 受控文件夹访问已禁用
ScheduledTasks = 计划任务 ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive WindowsFeaturesTitle = Windows功能
OneDriveInstalling = OneDrive正在安装...... OptionalFeaturesTitle = 可选功能
OneDriveDownloading = 正在下载OneDrive...... ~33 MB EnableHardwareVT = UEFI中开启虚拟化
WindowsFeaturesTitle = Windows功能 UserShellFolderNotEmpty = 一些文件留在了{0}文件夹请手动将它们移到一个新位置
OptionalFeaturesTitle = 可选功能 RetrievingDrivesList = 取得驱动器列表
EnableHardwareVT = UEFI中开启虚拟化 DriveSelect = 选择将在其根目录中创建{0}文件夹的驱动器
UserShellFolderNotEmpty = 一些文件留在了{0}文件夹请手动将它们移到一个新位置 UserFolderRequest = 是否要更改{0}文件夹位置
RetrievingDrivesList = 取得驱动器列表 UserFolderSelect = {0}文件夹选择一个文件夹
DriveSelect = 选择将在其根目录中创建{0}文件夹的驱动器 UserDefaultFolder = 您想将{0}文件夹的位置更改为默认值吗
UserFolderRequest = 是否要更改{0}文件夹位置 GraphicsPerformanceTitle = 图形性能偏好
UserFolderSelect = {0}文件夹选择一个文件夹 GraphicsPerformanceRequest = 是否将所选应用程序的图形性能设置设为"高性能"
UserDefaultFolder = 您想将{0}文件夹的位置更改为默认值吗 TaskNotificationTitle = 通知
ReservedStorageIsInUse = 保留存储空间正在使用时不支持此操作请等待所有服务操作完成后再重试 CleanupTaskNotificationTitle = 重要信息
ShortcutPinning = {0}快捷方式将被固定到开始菜单 CleanupTaskDescription = 使用内置磁盘清理工具清理未使用的Windows文件和更新
UninstallUWPForAll = 对于所有用户 CleanupTaskNotificationEventTitle = 运行任务以清理Windows未使用的文件和更新
UWPAppsTitle = UWP应用 CleanupTaskNotificationEvent = Windows清理不会花很长时间下次通知将在30天内显示
WSLUpdateDownloading = Linux内核更新包下载中 ~14 MB CleanupTaskNotificationSnoozeInterval = 选择提醒间隔
WSLUpdateInstalling = 安装Linux内核更新包 CleanupNotificationTaskDescription = 关于清理Windows未使用的文件和更新的弹出通知提醒
HEVCDownloading = Downloading 来自设备制造商的 HEVC 视频扩展... ~2,8 MB SoftwareDistributionTaskNotificationEvent = Windows更新缓存已成功删除
GraphicsPerformanceTitle = 图形性能偏好 TempTaskNotificationEvent = 临时文件文件夹已成功清理
GraphicsPerformanceRequest = 是否将所选应用程序的图形性能设置设为"高性能" FolderTaskDescription = {0}文件夹清理
TaskNotificationTitle = 通知 ControlledFolderAccess = 受控文件夹访问
CleanupTaskNotificationTitle = 重要信息 ProtectedFoldersRequest = 是否启用受控文件夹访问权限并指定文件夹,由微软Defender保护其免受恶意应用程序威胁
CleanupTaskDescription = 使用内置磁盘清理工具清理未使用的Windows文件和更新 ProtectedFoldersListRemoved = 已被移除的文件夹
CleanupTaskNotificationEventTitle = 运行任务以清理Windows未使用的文件和更新 AppControlledFolderRequest = 是否指定应用获取受控文件夹访问权限
CleanupTaskNotificationEvent = Windows清理不会花很长时间下次通知将在30天内显示 AllowedControlledFolderAppsRemoved = 删除了允许的应用
CleanupTaskNotificationSnoozeInterval = 选择提醒间隔 DefenderExclusionFolderRequest = 是否要添加指定文件夹到微软Defender的恶意软件扫描白名单
CleanupNotificationTaskDescription = 关于清理Windows未使用的文件和更新的弹出通知提醒 DefenderExclusionFoldersListRemoved = 排除的文件夹已删除
SoftwareDistributionTaskNotificationEvent = Windows更新缓存已成功删除 AddDefenderExclusionFileRequest = 是否要添加指定文件到微软Defender的恶意软件扫描白名单
TempTaskNotificationEvent = 临时文件文件夹已成功清理 DefenderExclusionFilesRemoved = 排除文件已删除
FolderTaskDescription = {0}文件夹清理 EventViewerCustomViewName = 进程创建
ControlledFolderAccess = 受控文件夹访问 EventViewerCustomViewDescription = 进程创建和命令行审核事件
ProtectedFoldersRequest = 是否启用受控文件夹访问权限并指定文件夹,由微软Defender保护其免受恶意应用程序威胁 RestartWarning = 确保重启电脑
ProtectedFoldersListRemoved = 已被移除的文件夹 ErrorsLine =
AppControlledFolderRequest = 是否指定应用获取受控文件夹访问权限 ErrorsFile = 文件
AllowedControlledFolderAppsRemoved = 删除了允许的应用 ErrorsMessage = 错误/警告
DefenderExclusionFolderRequest = 是否要添加指定文件夹到微软Defender的恶意软件扫描白名单 Add = 添加
DefenderExclusionFoldersListRemoved = 排除的文件夹已删除 AllFilesFilter = 所有文件 (*.*)|*.*
AddDefenderExclusionFileRequest = 是否要添加指定文件到微软Defender的恶意软件扫描白名单 Browse = 浏览
DefenderExclusionFilesRemoved = 排除文件已删除 Change = 更改
EventViewerCustomViewName = 进程创建 DialogBoxOpening = 显示对话窗口
EventViewerCustomViewDescription = 进程创建和命令行审核事件 Disable = 禁用
RestartWarning = 确保重启电脑 Enable = 启用
ErrorsLine = EXEFilesFilter = *.exe|*.exe|所有文件 (*.*)|*.*
ErrorsFile = 文件 FolderSelect = 选择一个文件夹
ErrorsMessage = 错误/警告 FilesWontBeMoved = 文件将不会被移动
Add = 添加 FourHours = 4个小时
AllFilesFilter = 所有文件 (*.*)|*.* HalfHour = 30分钟
Browse = 浏览 Install = 安装
Change = 更改 Minute = 1分钟
DialogBoxOpening = 显示对话窗口 NoData = 无数据
Disable = 禁用 NoInternetConnection = 无网络连接
Enable = 启用 NoResponse = 无法建立https://store.rg-adguard.net连接
EXEFilesFilter = *.exe|*.exe|所有文件 (*.*)|*.* No =
FolderSelect = 选择一个文件夹 Yes = 是的
FilesWontBeMoved = 文件将不会被移动 Open = 打开
FourHours = 4个小时 Patient = 请等待
HalfHour = 30分钟 Restore = 恢复
Install = 安装 Run = 运行
Minute = 1分钟 SelectAll = 全选
NoData = 无数据 Skip = 跳过
NoInternetConnection = 无网络连接 Skipped = 已跳过
NoResponse = 无法建立https://store.rg-adguard.net连接 TelegramTitle = 加入我们的官方电报群组
No = Uninstall = 卸载
Yes = '@
Open = 打开
Patient = 请等待
Restore = 重置
Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
TelegramTitle = 加入我们的官方电报群组
Uninstall = 卸载
'@

2
Sophia/LTSC/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{ @{
RootModule = '..\Module\Sophia.psm1' RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.2.7' ModuleVersion = '5.2.8'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov' Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved' Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'

40
Sophia/LTSC/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
"Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks "Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version: v5.2.7 Version: v5.2.8
Date: 13.06.2021 Date: 20.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic Copyright (c) 20192021 farag & Inestic
@ -463,7 +463,7 @@ function WindowsFeedback
ScheduledTasks -Enable ScheduledTasks -Enable
.NOTES .NOTES
A pop-up dialog box enables the user to select tasks A pop-up dialog box lets a user select tasks
Current user Current user
#> #>
function ScheduledTasks function ScheduledTasks
@ -1908,7 +1908,7 @@ function TaskbarSearch
[Parameter( [Parameter(
Mandatory = $true, Mandatory = $true,
ParameterSetName = "ShowIcon" ParameterSetName = "SearchIcon"
)] )]
[switch] [switch]
$SearchIcon, $SearchIcon,
@ -2901,10 +2901,6 @@ function TempFolder
# Restart the Printer Spooler service (Spooler) # Restart the Printer Spooler service (Spooler)
Restart-Service -Name Spooler -Force Restart-Service -Name Spooler -Force
# Stop OneDrive processes
Stop-Process -Name OneDrive -Force -ErrorAction Ignore
Stop-Process -Name FileCoAuth -Force -ErrorAction Ignore
if (-not (Test-Path -Path $env:SystemDrive\Temp)) if (-not (Test-Path -Path $env:SystemDrive\Temp))
{ {
New-Item -Path $env:SystemDrive\Temp -ItemType Directory -Force New-Item -Path $env:SystemDrive\Temp -ItemType Directory -Force
@ -3013,10 +3009,6 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
# Restart the Printer Spooler service (Spooler) # Restart the Printer Spooler service (Spooler)
Restart-Service -Name Spooler -Force Restart-Service -Name Spooler -Force
# Stop OneDrive processes
Stop-Process -Name OneDrive -Force -ErrorAction Ignore
Stop-Process -Name FileCoAuth -Force -ErrorAction Ignore
# Remove a symbolic link to the %SystemDrive%\Temp folder # Remove a symbolic link to the %SystemDrive%\Temp folder
if (Get-Item -Path $env:LOCALAPPDATA\Temp -Force -ErrorAction Ignore | Where-Object -FilterScript {$_.LinkType -eq "SymbolicLink"}) if (Get-Item -Path $env:LOCALAPPDATA\Temp -Force -ErrorAction Ignore | Where-Object -FilterScript {$_.LinkType -eq "SymbolicLink"})
{ {
@ -3501,7 +3493,7 @@ function WindowsManageDefaultPrinter
WindowsFeatures -Enable WindowsFeatures -Enable
.NOTES .NOTES
A pop-up dialog box enables the user to select features A pop-up dialog box lets a user select features
Current user Current user
#> #>
function WindowsFeatures function WindowsFeatures
@ -3552,9 +3544,9 @@ function WindowsFeatures
[string[]]$UncheckedFeatures = @( [string[]]$UncheckedFeatures = @(
<# <#
Media Features Media Features
Компоненты работы с мультимедиа
If you want to leave "Multimedia settings" in the advanced settings of Power Options do not disable this feature If you want to leave "Multimedia settings" in the advanced settings of Power Options do not disable this feature
Компоненты работы с мультимедиа
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не отключайте этот компонент Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не отключайте этот компонент
#> #>
"MediaPlayback" "MediaPlayback"
@ -3824,7 +3816,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
WindowsCapabilities -Install WindowsCapabilities -Install
.NOTES .NOTES
A pop-up dialog box enables the user to select features A pop-up dialog box lets a user select features
Current user Current user
#> #>
function WindowsCapabilities function WindowsCapabilities
@ -4232,25 +4224,25 @@ function UpdateMicrosoftProducts
<# <#
.SYNOPSIS .SYNOPSIS
Configure the power management scheme Configure a power plan
.PARAMETER High .PARAMETER High
Set the power management scheme on "High performance" Set the power plan on "High performance"
.PARAMETER Balanced .PARAMETER Balanced
Set the power management scheme on "Balanced" Set the power plan on "Balanced"
.EXAMPLE .EXAMPLE
PowerManagementScheme -High PowerPlan -High
.EXAMPLE .EXAMPLE
PowerManagementScheme -Balanced PowerPlan -Balanced
.NOTES .NOTES
Do not recommend turning "High performance" scheme on on laptops It isn't recommended to turn on the "High performance" power plan on laptops
Current user Current user
#> #>
function PowerManagementScheme function PowerPlan
{ {
param param
( (
@ -8352,7 +8344,7 @@ function CABInstallContext
"Add" "Add"
{ {
# Checking whether the File Explorer is associated with the .cab files # Checking whether the File Explorer is associated with the .cab files
if (-not ((Get-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cab\UserChoice -Name ProgId -ErrorAction Ignore) -notmatch "cab")) if (-not ((Get-ItemPropertyValue -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cab\UserChoice -Name ProgId) -eq "CABFolder"))
{ {
# The "Install" context menu item won't be visible unless the File Explorer was assosiated with the .cab files # The "Install" context menu item won't be visible unless the File Explorer was assosiated with the .cab files
Set-Association -ProgramPath CABFolder -Extension .cab -Icon "%SystemRoot%\system32\cabview.dll,0" Set-Association -ProgramPath CABFolder -Extension .cab -Icon "%SystemRoot%\system32\cabview.dll,0"

37
Sophia/LTSC/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Windows 10 Sophia Script" (LTSC version) Default preset file for "Windows 10 Sophia Script" (LTSC version)
Version: v5.2.7 Version: v5.2.8
Date: 13.06.2021 Date: 20.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic Copyright (c) 20192021 farag & Inestic
@ -71,7 +71,7 @@ param
Clear-Host Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" $Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.8 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -92,7 +92,7 @@ Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -Base
if ($Functions) if ($Functions)
{ {
# Regardless of functions entered as an argument, the "Checkings" function will be executed first, # Regardless of functions entered as an argument, the "Checkings" function will be executed first,
# and the "Refresh" and "Errors" functions will be executed at the end # and the "RefreshEnvironment" and "Errors" functions will be executed at the end
Invoke-Command -ScriptBlock {Checkings} Invoke-Command -ScriptBlock {Checkings}
foreach ($Function in $Functions) foreach ($Function in $Functions)
@ -100,14 +100,14 @@ if ($Functions)
Invoke-Expression -Command $Function Invoke-Expression -Command $Function
} }
Invoke-Command -ScriptBlock {Refresh; Errors} Invoke-Command -ScriptBlock {RefreshEnvironment; Errors}
exit exit
} }
#region Protection #region Protection
<# <#
The necessary checkings. If you want to disable a warning message about whether you've customized the preset file remove the "-Warning" argument The necessary checkings. If you want to disable a warning message about whether the preset file was customized, remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
@ -549,7 +549,7 @@ WindowsManageDefaultPrinter -Disable
Отключить компоненты Windows, используя всплывающее диалоговое окно Отключить компоненты Windows, используя всплывающее диалоговое окно
If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not disable the "MediaPlayback" feature If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not disable the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте отключайте "MediaPlayback" Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах схемы управления питанием, не отключайте "MediaPlayback"
#> #>
WindowsFeatures -Disable WindowsFeatures -Disable
@ -559,10 +559,10 @@ WindowsFeatures -Disable
<# <#
Uninstall optional features using the pop-up dialog box Uninstall optional features using the pop-up dialog box
Удалить дополнительные компоненты, используя всплывающее диалоговое окно
If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not uninstall the "MediaPlayback" feature If you want to leave "Multimedia settings" element in the advanced settings of Power Options do not uninstall the "MediaPlayback" feature
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах электропитания, не удаляйте компонент "MediaPlayback"
Удалить дополнительные компоненты, используя всплывающее диалоговое окно
Если вы хотите оставить параметр "Параметры мультимедиа" в дополнительных параметрах схемы управления питанием, не удаляйте компонент "MediaPlayback"
#> #>
WindowsCapabilities -Uninstall WindowsCapabilities -Uninstall
@ -578,13 +578,18 @@ UpdateMicrosoftProducts -Enable
# При обновлении Windows не получать обновления для других продуктов Майкрософт (значение по умолчанию) # При обновлении Windows не получать обновления для других продуктов Майкрософт (значение по умолчанию)
# UpdateMicrosoftProducts -Disable # UpdateMicrosoftProducts -Disable
# Set the power management scheme on "High performance" if device is a desktop <#
# Установить схему управления питанием на "Высокая производительность", если устройство является стационарным ПК Set the power plan on "High performance"
PowerManagementScheme -High It isn't recommended to turn on the "High performance" power plan on laptops
Установить схему управления питанием на "Высокая производительность"
Не рекомендуется включать схему управления питанием "Высокая производительность" для ноутбуков
#>
PowerPlan -High
# Set the power management scheme on "Balanced" (default value) # Set the power plan on "Balanced" (default value)
# Установить схему управления питанием на "Сбалансированная" (значение по умолчанию) # Установить схему управления питанием на "Сбалансированная" (значение по умолчанию)
# PowerManagementScheme -Balanced # PowerPlan -Balanced
# Use latest installed .NET runtime for all apps # Use latest installed .NET runtime for all apps
# Использовать последнюю установленную среду выполнения .NET для всех приложений # Использовать последнюю установленную среду выполнения .NET для всех приложений
@ -726,8 +731,6 @@ SmartActiveHours -Enable
Register app, calculate hash, and set as default for specific extension without the "How do you want to open this?" pop-up Register app, calculate hash, and set as default for specific extension without the "How do you want to open this?" pop-up
Зарегистрировать приложение, вычислить хэш и установить как приложение по умолчанию для конкретного расширения без всплывающего окна "Каким образом вы хотите открыть этот файл?" Зарегистрировать приложение, вычислить хэш и установить как приложение по умолчанию для конкретного расширения без всплывающего окна "Каким образом вы хотите открыть этот файл?"
Examples:
Примеры:
Set-Association -ProgramPath "C:\SumatraPDF.exe" -Extension .pdf -Icon "shell32.dll,100" Set-Association -ProgramPath "C:\SumatraPDF.exe" -Extension .pdf -Icon "shell32.dll,100"
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0" Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#> #>

Loading…
Cancel
Save