diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ae1957f..c4f9a493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.17.1 | 6.5.1 — 03.06.2023 + +* Fixed bug in `Export-Associations`; + * Reported by @lowl1f3. +* Closed #494; + * Now `TaskbarChat` function except hiding the cion also prevents `Microsoft Teams` from installing for new users by creating a special registry key as `NT SERVICE\TrustedInstaller`. + +### Wrapper 2.6.7 + +* Closed #490. + +> **Note**: Please note that Wrapper doesn't have all functions as CLI `Sophia Script` provides. If you want to apply all functions, you need to configure `Sophia.ps1` file. + + ## 5.17.0 | 6.5.0 — 27.05.2023 * Expanded start-up checks; @@ -29,8 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Thanks to @sensinsane. * Minor changes. -> **Note**: Please note that Wrapper doesn't have all functions as CLI `Sophia Script` provides. If you want to apply all functions, you need to -configure `Sophia.ps1` file. +> **Note**: Please note that Wrapper doesn't have all functions as CLI `Sophia Script` provides. If you want to apply all functions, you need to configure `Sophia.ps1` file. `Sophia Script for Windows` hits more than 700 000 downloads! Thank you for your interest in Windows tweaking! ❤️ diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json index 33aa5c01..293b9ff6 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_10.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_10.json @@ -501,7 +501,7 @@ }, "Two": { "Tag": "SearchBox", - "ToolTip": "Das Suchfeld in der Taskleiste anzeigen (Standardeinstellung)" + "ToolTip": "Das Suchfeld in der Taskleiste anzeigen (Standardeinstellung)." } } }, @@ -675,7 +675,7 @@ }, "Two": { "Tag": "Category", - "ToolTip": "Anzeigen der Symbole der Systemsteuerung nach \"Kategorie\" (Standardeinstellung)" + "ToolTip": "Anzeigen der Symbole der Systemsteuerung nach \"Kategorie\" (Standardeinstellung)." } } }, @@ -1223,7 +1223,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Ändern Sie den Speicherort von Benutzerordnern auf die Standardeinstellunge Benutzerdateien oder -ordner lassen sich nicht an einen neuen Speicherort verschieben. Verschieben Sie sie manuell. Sie befinden sich standardmäßig im Ordner %USERPROFILE% (Standardeinstellung)" + "ToolTip": "Ändern Sie den Speicherort von Benutzerordnern auf die Standardeinstellunge Benutzerdateien oder -ordner lassen sich nicht an einen neuen Speicherort verschieben. Verschieben Sie sie manuell. Sie befinden sich standardmäßig im Ordner %USERPROFILE% (Standardeinstellung)." } } }, diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index 8b093b9d..f02ecb56 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -505,7 +505,7 @@ }, "Three": { "Tag": "SearchBox", - "ToolTip": "Suchsymbol in der Taskleiste anzeigen (Standardeinstellung)" + "ToolTip": "Suchsymbol in der Taskleiste anzeigen (Standardeinstellung)." } } }, @@ -531,11 +531,11 @@ "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Chat-Symbols (Microsoft Teams) in der Taskleiste ausblenden." + "ToolTip": "Blenden Sie das Chat-Symbol (Microsoft Teams) in der Taskleiste aus und verhindern Sie, dass Microsoft Teams für neue Benutzer installiert wird." }, "One": { "Tag": "Show", - "ToolTip": "Chat-Symbol (Microsoft Teams) in der Taskleiste anzeigen (Standardeinstellung)." + "ToolTip": "Zeigen Sie das Chat-Symbol (Microsoft Teams) in der Taskleiste an und entfernen Sie die Sperre für die Installation von Microsoft Teams für neue Benutzer (Standardwert)." } } }, @@ -585,7 +585,7 @@ }, "Two": { "Tag": "Category", - "ToolTip": "Symbole der Systemsteuerung nach \"Kategorie\" anzeigen (Standardeinstellung)" + "ToolTip": "Symbole der Systemsteuerung nach \"Kategorie\" anzeigen (Standardeinstellung)." } } }, @@ -1103,7 +1103,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Ändern Sie den Speicherort von Benutzerordnern auf die Standardeinstellunge Benutzerdateien oder -ordner lassen sich nicht an einen neuen Speicherort verschieben. Verschieben Sie sie manuell. Sie befinden sich standardmäßig im Ordner %USERPROFILE% (Standardeinstellung)" + "ToolTip": "Ändern Sie den Speicherort von Benutzerordnern auf die Standardeinstellunge Benutzerdateien oder -ordner lassen sich nicht an einen neuen Speicherort verschieben. Verschieben Sie sie manuell. Sie befinden sich standardmäßig im Ordner %USERPROFILE% (Standardeinstellung)." } } }, @@ -1499,7 +1499,7 @@ }, "Two": { "Tag": "ShowMoreRecommendations", - "ToolTip": "Weitere Empfehlungen auf Start anzeigen (nur für 22621+ Build)" + "ToolTip": "Weitere Empfehlungen auf Start anzeigen (nur für 22621+ Build)." } } }, diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_10.json b/Wrapper/Localizations/en-US/tooltip_Windows_10.json index 1b043e2e..634730f9 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_10.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_10.json @@ -486,7 +486,7 @@ }, "Two": { "Tag": "SearchBox", - "ToolTip": "Show the search box on the taskbar (default value)" + "ToolTip": "Show the search box on the taskbar (default value)." } } }, @@ -660,7 +660,7 @@ }, "Two": { "Tag": "Category", - "ToolTip": "View the Control Panel icons by category (default value)" + "ToolTip": "View the Control Panel icons by category (default value)." } } }, @@ -1208,7 +1208,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)" + "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." } } }, diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index 82d6a9fd..10dea3b0 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -10,7 +10,7 @@ }, "One": { "Tag": "", - "ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file" + "ToolTip": "The mandatory Checks. No argument therefore no warning message about whether you've customized the preset file." } } }, @@ -47,7 +47,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the DiagTrack service, firewall rule for Unified Telemetry Client Outbound Traffic and allow connection (default value)" + "ToolTip": "Enable the DiagTrack service, firewall rule for Unified Telemetry Client Outbound Traffic and allow connection (default value)." } } }, @@ -62,7 +62,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Set the diagnostic data collection to default (default value)" + "ToolTip": "Set the diagnostic data collection to default (default value)." } } }, @@ -77,7 +77,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Turn on the Windows Error Reporting (default value)" + "ToolTip": "Turn on the Windows Error Reporting (default value)." } } }, @@ -92,7 +92,7 @@ }, "One": { "Tag": "Automatically", - "ToolTip": "Change the feedback frequency to \"Automatically\" (default value)" + "ToolTip": "Change the feedback frequency to \"Automatically\" (default value)." } } }, @@ -107,7 +107,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Turn on the diagnostics tracking scheduled tasks (default value)" + "ToolTip": "Turn on the diagnostics tracking scheduled tasks (default value)." } } }, @@ -122,7 +122,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Use sign-in info to automatically finish setting up device and reopen apps after an update or restart (default value)" + "ToolTip": "Use sign-in info to automatically finish setting up device and reopen apps after an update or restart (default value)." } } }, @@ -137,7 +137,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Let websites provide locally relevant content by accessing language list (default value)" + "ToolTip": "Let websites provide locally relevant content by accessing language list (default value)." } } }, @@ -152,7 +152,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Allow apps to use advertising ID (default value)" + "ToolTip": "Allow apps to use advertising ID (default value)." } } }, @@ -167,7 +167,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested (default value)" + "ToolTip": "Show the Windows welcome experiences after updates and occasionally when I sign in to highlight what's new and suggested (default value)." } } }, @@ -197,7 +197,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show me suggested content in the Settings app (default value)" + "ToolTip": "Show me suggested content in the Settings app (default value)." } } }, @@ -212,7 +212,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Turn on automatic installing suggested apps (default value)" + "ToolTip": "Turn on automatic installing suggested apps (default value)." } } }, @@ -227,7 +227,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Suggest ways I can finish setting up my device to get the most out of Windows (default value)" + "ToolTip": "Suggest ways I can finish setting up my device to get the most out of Windows (default value)." } } }, @@ -242,7 +242,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Let Microsoft offer you tailored experiences based on the diagnostic data setting you hava chosen (default value)" + "ToolTip": "Let Microsoft offer you tailored experiences based on the diagnostic data setting you hava chosen (default value)." } } }, @@ -257,7 +257,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Bing search in the Start Menu (default value)" + "ToolTip": "Enable Bing search in the Start Menu (default value)." } } }, @@ -272,7 +272,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide the \"This PC\" icon on Desktop (default value)" + "ToolTip": "Hide the \"This PC\" icon on Desktop (default value)." } } }, @@ -287,7 +287,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Use check boxes to select items (default value)" + "ToolTip": "Use check boxes to select items (default value)." } } }, @@ -302,7 +302,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not show hidden files, folders, and drives (default value)" + "ToolTip": "Do not show hidden files, folders, and drives (default value)." } } }, @@ -317,7 +317,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide the file name extensions (default value)" + "ToolTip": "Hide the file name extensions (default value)." } } }, @@ -332,7 +332,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide folder merge conflicts (default value)" + "ToolTip": "Hide folder merge conflicts (default value)." } } }, @@ -347,7 +347,7 @@ }, "One": { "Tag": "QuickAccess", - "ToolTip": "Open File Explorer to Quick access (default value)" + "ToolTip": "Open File Explorer to Quick access (default value)." } } }, @@ -362,7 +362,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the File Explorer compact mode (default value)" + "ToolTip": "Enable the File Explorer compact mode (default value)." } } }, @@ -377,7 +377,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show sync provider notification within File Explorer (default value)" + "ToolTip": "Show sync provider notification within File Explorer (default value)." } } }, @@ -392,7 +392,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "When I snap a window, show what I can snap next to it (default value)" + "ToolTip": "When I snap a window, show what I can snap next to it (default value)." } } }, @@ -407,7 +407,7 @@ }, "One": { "Tag": "Compact", - "ToolTip": "Show the file transfer dialog box in the compact mode (default value)" + "ToolTip": "Show the file transfer dialog box in the compact mode (default value)." } } }, @@ -422,7 +422,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not display the recycle bin files delete confirmation (default value)" + "ToolTip": "Do not display the recycle bin files delete confirmation (default value)." } } }, @@ -437,7 +437,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show recently used files in Quick access (default value)" + "ToolTip": "Show recently used files in Quick access (default value)." } } }, @@ -452,7 +452,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show frequently used folders in Quick access (default value)" + "ToolTip": "Show frequently used folders in Quick access (default value)." } } }, @@ -467,7 +467,7 @@ }, "One": { "Tag": "Center", - "ToolTip": "Set the taskbar alignment to the center (default value)" + "ToolTip": "Set the taskbar alignment to the center (default value)." } } }, @@ -497,15 +497,15 @@ }, "One": { "Tag": "SearchIcon", - "ToolTip": "Show the search icon on the taskbar" + "ToolTip": "Show the search icon on the taskbar." }, "Two": { "Tag": "SearchIconLabel", - "ToolTip": "Show the search icon and label on the taskbar" + "ToolTip": "Show the search icon and label on the taskbar." }, "Three": { "Tag": "SearchBox", - "ToolTip": "Show the search box on the taskbar (default value)" + "ToolTip": "Show the search box on the taskbar (default value)." } } }, @@ -520,7 +520,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the Task View button on the taskbar (default value)" + "ToolTip": "Show the Task View button on the taskbar (default value)." } } }, @@ -531,11 +531,11 @@ "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Hide the Chat icon (Microsoft Teams) on the taskbar." + "ToolTip": "Hide the Chat icon (Microsoft Teams) on the taskbar and prevent Microsoft Teams from installing for new users." }, "One": { "Tag": "Show", - "ToolTip": "Show the Chat icon (Microsoft Teams) on the taskbar (default value)" + "ToolTip": "Show the Chat icon (Microsoft Teams) on the taskbar and remove block from installing Microsoft Teams for new users (default value)." } } }, @@ -581,11 +581,11 @@ }, "One": { "Tag": "SmallIcons", - "ToolTip": "View the Control Panel icons by small icons" + "ToolTip": "View the Control Panel icons by small icons." }, "Two": { "Tag": "Category", - "ToolTip": "View the Control Panel icons by category (default value)" + "ToolTip": "View the Control Panel icons by category (default value)." } } }, @@ -600,7 +600,7 @@ }, "One": { "Tag": "Light", - "ToolTip": "Set the default Windows mode to light (default value)" + "ToolTip": "Set the default Windows mode to light (default value)." } } }, @@ -615,7 +615,7 @@ }, "One": { "Tag": "Light", - "ToolTip": "Set the default app mode to light (default value)" + "ToolTip": "Set the default app mode to light (default value)." } } }, @@ -630,7 +630,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Show user first sign-in animation after the upgrade (default value)" + "ToolTip": "Show user first sign-in animation after the upgrade (default value)." } } }, @@ -645,7 +645,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Set the quality factor of the JPEG desktop wallpapers to default (default value)" + "ToolTip": "Set the quality factor of the JPEG desktop wallpapers to default (default value)." } } }, @@ -660,7 +660,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Add the \"- Shortcut\" suffix to the file name of created shortcuts (default value)" + "ToolTip": "Add the \"- Shortcut\" suffix to the file name of created shortcuts (default value)." } } }, @@ -675,7 +675,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not use the Print screen button to open screen snipping (default value)" + "ToolTip": "Do not use the Print screen button to open screen snipping (default value)." } } }, @@ -690,7 +690,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Let me use a different input method for each app window" + "ToolTip": "Let me use a different input method for each app window." } } }, @@ -705,7 +705,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "When I grab a windows's title bar and shake it, don't minimize all other windows (default value)" + "ToolTip": "When I grab a windows's title bar and shake it, don't minimize all other windows (default value)." } } }, @@ -720,11 +720,11 @@ }, "One": { "Tag": "Light", - "ToolTip": "Download and install free light \"Windows 11 Cursors Concept v2\" cursors from Jepri Creations" + "ToolTip": "Download and install free light \"Windows 11 Cursors Concept v2\" cursors from Jepri Creations." }, "Two": { "Tag": "Dark", - "ToolTip": "Download and install free dark \"Windows 11 Cursors Concept v2\" cursors from Jepri Creations" + "ToolTip": "Download and install free dark \"Windows 11 Cursors Concept v2\" cursors from Jepri Creations." } } }, @@ -739,7 +739,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Group files and folder by date modified in the Downloads folder" + "ToolTip": "Group files and folder by date modified in the Downloads folder." } } }, @@ -754,7 +754,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Expand to open folder on navigation pane" + "ToolTip": "Expand to open folder on navigation pane." } } }, @@ -769,7 +769,7 @@ }, "One": { "Tag": "Install", - "ToolTip": "Install OneDrive 64-bit" + "ToolTip": "Install OneDrive 64-bit." } } }, @@ -795,7 +795,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Turn off Storage Sense (default value)" + "ToolTip": "Turn off Storage Sense (default value)." } } }, @@ -810,7 +810,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Run Storage Sense during low free disk space (default value)" + "ToolTip": "Run Storage Sense during low free disk space (default value)." } } }, @@ -840,7 +840,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable hibernate (default value)" + "ToolTip": "Enable hibernate (default value)." } } }, @@ -855,7 +855,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Change %TEMP% environment variable path to %LOCALAPPDATA%\\Temp (default value)" + "ToolTip": "Change %TEMP% environment variable path to %LOCALAPPDATA%\\Temp (default value)." } } }, @@ -870,7 +870,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the Windows 260 character path limit (default value)" + "ToolTip": "Enable the Windows 260 character path limit (default value)." } } }, @@ -885,7 +885,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not Stop error code when BSoD occurs (default value)" + "ToolTip": "Do not Stop error code when BSoD occurs (default value)." } } }, @@ -900,7 +900,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Choose when to be notified about changes to your computer: notify me only when apps try to make changes to my computer (default value)" + "ToolTip": "Choose when to be notified about changes to your computer: notify me only when apps try to make changes to my computer (default value)." } } }, @@ -915,7 +915,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Turn off access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled (default value)" + "ToolTip": "Turn off access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled (default value)." } } }, @@ -930,7 +930,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Turn on Delivery Optimization (default value)" + "ToolTip": "Turn on Delivery Optimization (default value)." } } }, @@ -945,7 +945,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Never wait for the network at computer startup and logon for workgroup networks (default value)" + "ToolTip": "Never wait for the network at computer startup and logon for workgroup networks (default value)." } } }, @@ -960,7 +960,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Let Windows manage my default printer (default value)" + "ToolTip": "Let Windows manage my default printer (default value)." } } }, @@ -975,7 +975,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the Windows features using the pop-up dialog box (default value)" + "ToolTip": "Enable the Windows features using the pop-up dialog box (default value)." } } }, @@ -990,7 +990,7 @@ }, "One": { "Tag": "Install", - "ToolTip": "Install optional features using the pop-up dialog box (default value)" + "ToolTip": "Install optional features using the pop-up dialog box (default value)." } } }, @@ -1005,7 +1005,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not receive updates for other Microsoft products when you update Windows (default value)" + "ToolTip": "Do not receive updates for other Microsoft products when you update Windows (default value)." } } }, @@ -1020,7 +1020,7 @@ }, "One": { "Tag": "Balanced", - "ToolTip": "Set the power plan on \"Balanced\" (default value)" + "ToolTip": "Set the power plan on \"Balanced\" (default value)." } } }, @@ -1035,7 +1035,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not use the latest installed .NET runtime for all apps (default value)" + "ToolTip": "Do not use the latest installed .NET runtime for all apps (default value)." } } }, @@ -1050,7 +1050,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Allow the computer to turn off the network adapters to save power (default value)" + "ToolTip": "Allow the computer to turn off the network adapters to save power (default value)." } } }, @@ -1065,11 +1065,11 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections (default value). Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipify.org" + "ToolTip": "Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections (default value). Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipify.org." }, "Two": { "Tag": "PreferIPv4overIPv6", - "ToolTip": "Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections. Prefer IPv4 over IPv6. Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipify.org" + "ToolTip": "Enable the Internet Protocol Version 6 (TCP/IPv6) component for all network connections. Prefer IPv4 over IPv6. Before invoking the function, a check will be run whether your ISP supports the IPv6 protocol using https://ipify.org." } } }, @@ -1084,7 +1084,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Override for default input method: use language list (default value)" + "ToolTip": "Override for default input method: use language list (default value)." } } }, @@ -1103,7 +1103,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)" + "ToolTip": "Change user folders location to the default values. User files or folders won't me moved to a new location. Move them manually. They're located in the %USERPROFILE% folder by default (default value)." } } }, @@ -1118,7 +1118,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Save screenshots by pressing Win+PrtScr in the Pictures folder (default value)" + "ToolTip": "Save screenshots by pressing Win+PrtScr in the Pictures folder (default value)." } } }, @@ -1133,7 +1133,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Ask me before running troubleshooters. In order this feature to work the OS level of diagnostic data gathering will be set to \"Optional diagnostic data\" and the error reporting feature will be turned on (default value)" + "ToolTip": "Ask me before running troubleshooters. In order this feature to work the OS level of diagnostic data gathering will be set to \"Optional diagnostic data\" and the error reporting feature will be turned on (default value)." } } }, @@ -1148,7 +1148,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not launch folder windows in a separate process (default value)" + "ToolTip": "Do not launch folder windows in a separate process (default value)." } } }, @@ -1163,7 +1163,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable reserved storage (default value)" + "ToolTip": "Enable reserved storage (default value)." } } }, @@ -1178,7 +1178,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable help lookup via F1 (default value)" + "ToolTip": "Enable help lookup via F1 (default value)." } } }, @@ -1193,7 +1193,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable Num Lock at startup (default value)" + "ToolTip": "Disable Num Lock at startup (default value)." } } }, @@ -1208,7 +1208,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Caps Lock (default value)" + "ToolTip": "Enable Caps Lock (default value)." } } }, @@ -1223,7 +1223,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Turn on pressing the Shift key 5 times to turn Sticky keys (default value)" + "ToolTip": "Turn on pressing the Shift key 5 times to turn Sticky keys (default value)." } } }, @@ -1238,7 +1238,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Use AutoPlay for all media and devices (default value)" + "ToolTip": "Use AutoPlay for all media and devices (default value)." } } }, @@ -1253,7 +1253,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable thumbnail cache removal (default value)" + "ToolTip": "Enable thumbnail cache removal (default value)." } } }, @@ -1268,7 +1268,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable automatically saving my restartable apps when signing out and restart them after signing in (default value)" + "ToolTip": "Disable automatically saving my restartable apps when signing out and restart them after signing in (default value)." } } }, @@ -1283,7 +1283,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable \"Network Discovery\" and \"File and Printers Sharing\" for workgroup networks (default value)" + "ToolTip": "Disable \"Network Discovery\" and \"File and Printers Sharing\" for workgroup networks (default value)." } } }, @@ -1298,7 +1298,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Do not show a notification when your PC requires a restart to finish updating (default value)" + "ToolTip": "Do not show a notification when your PC requires a restart to finish updating (default value)." } } }, @@ -1313,7 +1313,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not restart this device as soon as possible when a restart is required to install an update (default value)" + "ToolTip": "Do not restart this device as soon as possible when a restart is required to install an update (default value)." } } }, @@ -1328,7 +1328,7 @@ }, "One": { "Tag": "Manually", - "ToolTip": "Manually adjust active hours for me based on daily usage (default value)" + "ToolTip": "Manually adjust active hours for me based on daily usage (default value)." } } }, @@ -1380,7 +1380,7 @@ }, "One": { "Tag": "ConsoleHost", - "ToolTip": "Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)" + "ToolTip": "Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)." } } }, @@ -1417,7 +1417,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable proxying only blocked sites from the unified registry of Roskomnadzor (default value)" + "ToolTip": "Disable proxying only blocked sites from the unified registry of Roskomnadzor (default value)." } } }, @@ -1443,7 +1443,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)" + "ToolTip": "Do not prevent desktop shortcut creation upon Microsoft Edge update (default value)." } } }, @@ -1458,7 +1458,7 @@ }, "One": { "Tag": "Default", - "ToolTip": "Show up all internal SATA drives as removeable media in the taskbar notification area (default value)" + "ToolTip": "Show up all internal SATA drives as removeable media in the taskbar notification area (default value)." } } }, @@ -1495,11 +1495,11 @@ }, "One": { "Tag": "ShowMorePins", - "ToolTip": "Show more pins on Start (for 22621+ build only)" + "ToolTip": "Show more pins on Start (for 22621+ build only)." }, "Two": { "Tag": "ShowMoreRecommendations", - "ToolTip": "Show more recommendations on Start (for 22621+ build only)" + "ToolTip": "Show more recommendations on Start (for 22621+ build only)." } } }, @@ -1562,7 +1562,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Cortana autostarting (default value)" + "ToolTip": "Enable Cortana autostarting (default value)." } } }, @@ -1577,7 +1577,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Microsoft Teams autostarting (default value)" + "ToolTip": "Enable Microsoft Teams autostarting (default value)." } } }, @@ -1592,7 +1592,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Xbox Game Bar (default value)" + "ToolTip": "Enable Xbox Game Bar (default value)." } } }, @@ -1607,7 +1607,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Xbox Game Bar tips (default value)" + "ToolTip": "Enable Xbox Game Bar tips (default value)." } } }, @@ -1633,7 +1633,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Turn off hardware-accelerated GPU scheduling. Restart needed (default value)" + "ToolTip": "Turn off hardware-accelerated GPU scheduling. Restart needed (default value)." } } }, @@ -1648,7 +1648,7 @@ }, "One": { "Tag": "Delete", - "ToolTip": "Delete the \"Windows Cleanup\" and \"Windows Cleanup Notification\" scheduled tasks for cleaning up Windows unused files and updates" + "ToolTip": "Delete the \"Windows Cleanup\" and \"Windows Cleanup Notification\" scheduled tasks for cleaning up Windows unused files and updates." } } }, @@ -1663,7 +1663,7 @@ }, "One": { "Tag": "Delete", - "ToolTip": "Delete the \"SoftwareDistribution\" scheduled task for cleaning up the %SystemRoot%\\SoftwareDistribution\\Download folder" + "ToolTip": "Delete the \"SoftwareDistribution\" scheduled task for cleaning up the %SystemRoot%\\SoftwareDistribution\\Download folder." } } }, @@ -1678,7 +1678,7 @@ }, "One": { "Tag": "Delete", - "ToolTip": "Delete the \"Temp\" scheduled task for cleaning up the %TEMP% folder" + "ToolTip": "Delete the \"Temp\" scheduled task for cleaning up the %TEMP% folder." } } }, @@ -1693,7 +1693,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable Microsoft Defender Exploit Guard network protection (default value)" + "ToolTip": "Disable Microsoft Defender Exploit Guard network protection (default value)." } } }, @@ -1708,7 +1708,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable detection for potentially unwanted applications and block them (default value)" + "ToolTip": "Disable detection for potentially unwanted applications and block them (default value)." } } }, @@ -1745,7 +1745,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable events auditing generated when a process is created (starts) (default value)" + "ToolTip": "Disable events auditing generated when a process is created (starts) (default value)." } } }, @@ -1760,7 +1760,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not include command line in process creation events (default value)" + "ToolTip": "Do not include command line in process creation events (default value)." } } }, @@ -1775,7 +1775,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Remove \"Process Creation\" Event Viewer сustom view to log executed processes and their arguments (default value)" + "ToolTip": "Remove \"Process Creation\" Event Viewer сustom view to log executed processes and their arguments (default value)." } } }, @@ -1790,7 +1790,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable logging for all Windows PowerShell modules (default value)" + "ToolTip": "Disable logging for all Windows PowerShell modules (default value)." } } }, @@ -1805,7 +1805,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable logging for all PowerShell scripts input to the Windows PowerShell event log (default value)" + "ToolTip": "Disable logging for all PowerShell scripts input to the Windows PowerShell event log (default value)." } } }, @@ -1820,7 +1820,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Microsoft Defender SmartScreen marks downloaded files from the Internet as unsafe (default value)" + "ToolTip": "Microsoft Defender SmartScreen marks downloaded files from the Internet as unsafe (default value)." } } }, @@ -1835,7 +1835,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable the Attachment Manager marking files that have been downloaded from the Internet as unsafe (default value)" + "ToolTip": "Enable the Attachment Manager marking files that have been downloaded from the Internet as unsafe (default value)." } } }, @@ -1850,7 +1850,7 @@ }, "One": { "Tag": "Enable", - "ToolTip": "Enable Windows Script Host (default value)" + "ToolTip": "Enable Windows Script Host (default value)." } } }, @@ -1865,7 +1865,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable Windows Sandbox (default value)" + "ToolTip": "Disable Windows Sandbox (default value)." } } }, @@ -1880,7 +1880,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable DNS-over-HTTPS for IPv4 (default value)" + "ToolTip": "Disable DNS-over-HTTPS for IPv4 (default value)." } } }, @@ -1895,7 +1895,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable Local Security Authority protection (default value)" + "ToolTip": "Disable Local Security Authority protection (default value)." } } }, @@ -1910,7 +1910,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide the \"Extract all\" item from the Windows Installer (.msi) context menu (default value)" + "ToolTip": "Hide the \"Extract all\" item from the Windows Installer (.msi) context menu (default value)." } } }, @@ -1925,7 +1925,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide the \"Install\" item from the Cabinet (.cab) filenames extensions context menu (default value)" + "ToolTip": "Hide the \"Install\" item from the Cabinet (.cab) filenames extensions context menu (default value)." } } }, @@ -1940,7 +1940,7 @@ }, "One": { "Tag": "Hide", - "ToolTip": "Hide the \"Run as different user\" item from the .exe filename extensions context menu (default value)" + "ToolTip": "Hide the \"Run as different user\" item from the .exe filename extensions context menu (default value)." } } }, @@ -1955,7 +1955,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Cast to Device\" item in the media files and folders context menu (default value)" + "ToolTip": "Show the \"Cast to Device\" item in the media files and folders context menu (default value)." } } }, @@ -1970,7 +1970,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Share\" item in the context menu (default value)" + "ToolTip": "Show the \"Share\" item in the context menu (default value)." } } }, @@ -1985,7 +1985,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Edit with Clipchamp\" item in the media files context menu (default value)" + "ToolTip": "Show the \"Edit with Clipchamp\" item in the media files context menu (default value)." } } }, @@ -2000,7 +2000,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Print\" item in the .bat and .cmd context menu (default value)" + "ToolTip": "Show the \"Print\" item in the .bat and .cmd context menu (default value)." } } }, @@ -2015,7 +2015,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Include in Library\" item in the folders and drives context menu (default value)" + "ToolTip": "Show the \"Include in Library\" item in the folders and drives context menu (default value)." } } }, @@ -2030,7 +2030,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Send to\" item in the folders context menu (default value)" + "ToolTip": "Show the \"Send to\" item in the folders context menu (default value)." } } }, @@ -2045,7 +2045,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Compressed (zipped) Folder\" item to the \"New\" context menu (default value)" + "ToolTip": "Show the \"Compressed (zipped) Folder\" item to the \"New\" context menu (default value)." } } }, @@ -2060,7 +2060,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Disable the \"Open\", \"Print\", and \"Edit\" context menu items for more than 15 items selected (default value)" + "ToolTip": "Disable the \"Open\", \"Print\", and \"Edit\" context menu items for more than 15 items selected (default value)." } } }, @@ -2075,7 +2075,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Look for an app in the Microsoft Store\" item in the \"Open with\" dialog (default value)" + "ToolTip": "Show the \"Look for an app in the Microsoft Store\" item in the \"Open with\" dialog (default value)." } } }, @@ -2090,7 +2090,7 @@ }, "One": { "Tag": "Show", - "ToolTip": "Show the \"Open in Windows Terminal\" menu option in the folders context menu (default value)" + "ToolTip": "Show the \"Open in Windows Terminal\" menu option in the folders context menu (default value)." } } }, @@ -2105,7 +2105,7 @@ }, "One": { "Tag": "Disable", - "ToolTip": "Do not open Windows Terminal in context menu as administrator by default (default value)" + "ToolTip": "Do not open Windows Terminal in context menu as administrator by default (default value)." } } }, diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json index cbb28d4b..806d9ee6 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_10.json @@ -501,7 +501,7 @@ }, "Two": { "Tag": "SearchBox", - "ToolTip": "Показать поле поиска на панели задач (значение по умолчанию)" + "ToolTip": "Показать поле поиска на панели задач (значение по умолчанию)." } } }, @@ -675,7 +675,7 @@ }, "Two": { "Tag": "Category", - "ToolTip": "Просмотр иконок Панели управления как категория (значение по умолчанию)" + "ToolTip": "Просмотр иконок Панели управления как категория (значение по умолчанию)." } } }, @@ -1223,7 +1223,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Изменить расположение пользовательских папок на значения по умолчанию. Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную. По умолчанию они располагаются в папке %USERPROFILE% (значение по умолчанию)" + "ToolTip": "Изменить расположение пользовательских папок на значения по умолчанию. Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную. По умолчанию они располагаются в папке %USERPROFILE% (значение по умолчанию)." } } }, diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index 20a64d8d..2a602540 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -490,7 +490,7 @@ }, "Three": { "Tag": "SearchBox", - "ToolTip": "Показывать значок поиска на панели задач (значение по умолчанию)" + "ToolTip": "Показывать значок поиска на панели задач (значение по умолчанию)." } } }, @@ -531,11 +531,11 @@ "Arg": { "Zero": { "Tag": "Hide", - "ToolTip": "Скрыть кнопку чата (Microsoft Teams) на панели задач." + "ToolTip": "Скрыть кнопку чата (Microsoft Teams) с панели задач и запретить установку Microsoft Teams для новых пользователей." }, "One": { "Tag": "Show", - "ToolTip": "Показывать кнопку чата (Microsoft Teams) на панели задач (значение по умолчанию)." + "ToolTip": "Отобразить кнопку чата (Microsoft Teams) на панели задач и убрать блокировку на устанвоку Microsoft Teams для новых пользователей (значение по умолчанию)." } } }, @@ -585,7 +585,7 @@ }, "Two": { "Tag": "Category", - "ToolTip": "Просмотр иконок Панели управления как категория (значение по умолчанию)" + "ToolTip": "Просмотр иконок Панели управления как категория (значение по умолчанию)." } } }, @@ -1103,7 +1103,7 @@ }, "Two": { "Tag": "Default", - "ToolTip": "Изменить расположение пользовательских папок на значения по умолчанию. Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную. По умолчанию они располагаются в папке %USERPROFILE% (значение по умолчанию)" + "ToolTip": "Изменить расположение пользовательских папок на значения по умолчанию. Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную. По умолчанию они располагаются в папке %USERPROFILE% (значение по умолчанию)." } } }, @@ -1499,7 +1499,7 @@ }, "Two": { "Tag": "ShowMoreRecommendations", - "ToolTip": "Отображать больше рекомендаций на начальном экране (только для сборок 22621+)" + "ToolTip": "Отображать больше рекомендаций на начальном экране (только для сборок 22621+)." } } }, diff --git a/Wrapper/SophiaScriptWrapper.exe b/Wrapper/SophiaScriptWrapper.exe index 62447de0..8ef6637b 100644 Binary files a/Wrapper/SophiaScriptWrapper.exe and b/Wrapper/SophiaScriptWrapper.exe differ diff --git a/sophia_script_versions.json b/sophia_script_versions.json index 9c62c140..2acbe18e 100644 --- a/sophia_script_versions.json +++ b/sophia_script_versions.json @@ -1,9 +1,9 @@ { - "Sophia_Script_Windows_10_PowerShell_5_1": "5.17.0", - "Sophia_Script_Windows_10_PowerShell_7": "5.17.0", - "Sophia_Script_Windows_10_LTSC2019": "5.7.0", - "Sophia_Script_Windows_10_LTSC2021": "5.17.0", - "Sophia_Script_Windows_11_PowerShell_5_1": "6.5.0", - "Sophia_Script_Windows_11_PowerShell_7": "6.5.0", - "Sophia_Script_Wrapper": "2.6.6" + "Sophia_Script_Windows_10_PowerShell_5_1": "5.17.1", + "Sophia_Script_Windows_10_PowerShell_7": "5.17.1", + "Sophia_Script_Windows_10_LTSC2019": "5.7.1", + "Sophia_Script_Windows_10_LTSC2021": "5.17.1", + "Sophia_Script_Windows_11_PowerShell_5_1": "6.5.1", + "Sophia_Script_Windows_11_PowerShell_7": "6.5.1", + "Sophia_Script_Wrapper": "2.6.7" } diff --git a/src/Sophia_Script_for_Windows_10/Functions.ps1 b/src/Sophia_Script_for_Windows_10/Functions.ps1 index 4e302e08..442b5fd5 100644 --- a/src/Sophia_Script_for_Windows_10/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 index 4c6d6b57..fd0c7f53 100644 --- a/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.0' + ModuleVersion = '5.17.1' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index ef4c0499..647a3ac2 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -9769,9 +9769,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9779,9 +9782,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -9805,9 +9811,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -9829,9 +9838,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -9839,9 +9851,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9849,9 +9864,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -9878,6 +9896,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10/Sophia.ps1 b/src/Sophia_Script_for_Windows_10/Sophia.ps1 index 65917a3e..91f4bdb1 100644 --- a/src/Sophia_Script_for_Windows_10/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10" - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 index a950a6af..3aa1db83 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.7.0 - Date: 27.05.2023 + Version: v5.7.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 index 5fe1cb43..83a178eb 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.7.0' + ModuleVersion = '5.7.1' GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' 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 1d12fc27..b2311ae8 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 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.7.0 - Date: 27.05.2023 + Version: v5.7.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -8111,9 +8111,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -8121,9 +8124,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -8147,9 +8153,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -8171,9 +8180,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -8181,9 +8193,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -8191,9 +8206,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -8220,6 +8238,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 index e5971277..f7f11156 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2019" - Version: v5.7.0 - Date: 27.05.2023 + Version: v5.7.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2019 v5.7.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 index 288226e8..60ec2f4a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 index 4c6d6b57..fd0c7f53 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.0' + ModuleVersion = '5.17.1' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' 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 546c1ebe..16f93395 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 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -8739,9 +8739,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -8749,9 +8752,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -8775,9 +8781,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -8799,9 +8808,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -8809,9 +8821,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -8819,9 +8834,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -8848,6 +8866,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 index fc44b244..a2152bb7 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 LTSC 2021" - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC 2021 v5.17.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 index 31fcd566..8b97a545 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.0 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 index 727e7680..cb688ebf 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '5.17.0' + ModuleVersion = '5.17.1' GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' 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 fd0e1e5d..40323ab5 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 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -9774,9 +9774,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9784,9 +9787,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -9810,9 +9816,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -9834,9 +9843,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -9844,9 +9856,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9854,9 +9869,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -9883,6 +9901,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 index a0015552..bec37cd4 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 10 (PowerShell 7)" - Version: v5.17.0 - Date: 27.05.2023 + Version: v5.17.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -70,7 +70,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.0 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.17.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index 484970de..84a02782 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 index 0c831731..74497f0e 100644 --- a/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.0' + ModuleVersion = '6.5.1' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index aff9a688..27c9e310 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -3184,10 +3184,10 @@ function TaskViewButton The Chat icon (Microsoft Teams) on the taskbar .PARAMETER Hide - Hide the Chat icon (Microsoft Teams) on the taskbar + Hide the Chat icon (Microsoft Teams) on the taskbar and prevent Microsoft Teams from installing for new users .PARAMETER Show - Show the Chat icon (Microsoft Teams) on the taskbar + Show the Chat icon (Microsoft Teams) on the taskbar and remove block from installing Microsoft Teams for new users .EXAMPLE TaskbarChat -Hide @@ -3217,17 +3217,39 @@ function TaskbarChat $Show ) + Clear-Variable -Name Task -ErrorAction Ignore + switch ($PSCmdlet.ParameterSetName) { "Hide" { New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarMn -PropertyType DWord -Value 0 -Force + # Save string to run it as "NT SERVICE\TrustedInstaller" + # Prevent Microsoft Teams from installing for new users + $Task = "New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications -Name ConfigureChatAutoInstall -Value 0 -Type Dword -Force" } "Show" { New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarMn -PropertyType DWord -Value 1 -Force + # Save string to run it as "NT SERVICE\TrustedInstaller" + # Remove block for Microsoft Teams from installing for new users + $Task = "Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications -Name ConfigureChatAutoInstall -Value 1 -Type Dword -Force" } } + + # Create a Scheduled Task to run it as "NT SERVICE\TrustedInstaller" + $Parameters = @{ + TaskName = "BlockTeamsInstallation" + Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $Task" + } + Register-ScheduledTask @Parameters -Force + + $ScheduleService = New-Object -ComObject Schedule.Service + $ScheduleService.Connect() + $ScheduleService.GetFolder("\").GetTask("BlockTeamsInstallation").RunEx($null, 0, 0, "NT SERVICE\TrustedInstaller") + + # Remove temporary task + Unregister-ScheduledTask -TaskName BlockTeamsInstallation -Confirm:$false } <# @@ -9446,9 +9468,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9456,9 +9481,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -9482,9 +9510,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -9506,9 +9537,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -9516,9 +9550,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9526,9 +9563,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -9555,6 +9595,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_11/Sophia.ps1 b/src/Sophia_Script_for_Windows_11/Sophia.ps1 index c6116750..062da920 100644 --- a/src/Sophia_Script_for_Windows_11/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11" - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force @@ -389,12 +389,12 @@ TaskViewButton -Hide # Отобразить кнопку "Представление задач" на панели задач (значение по умолчанию) # TaskViewButton -Show -# Hide the Chat icon (Microsoft Teams) on the taskbar -# Скрыть кнопку чата (Microsoft Teams) с панели задач +# Hide the Chat icon (Microsoft Teams) on the taskbar and prevent Microsoft Teams from installing for new users +# Скрыть кнопку чата (Microsoft Teams) с панели задач и запретить установку Microsoft Teams для новых пользователей TaskbarChat -Hide -# Show the Chat icon (Microsoft Teams) on the taskbar (default value) -# Отобразить кнопку чата (Microsoft Teams) на панели задач (значение по умолчанию) +# Show the Chat icon (Microsoft Teams) on the taskbar and remove block from installing Microsoft Teams for new users (default value) +# Отобразить кнопку чата (Microsoft Teams) на панели задач и убрать блокировку на устанвоку Microsoft Teams для новых пользователей (значение по умолчанию) # TaskbarChat -Show # Show seconds on the taskbar clock diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 index eae97dc6..f2a165cc 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Functions.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS The TAB completion for functions and their arguments - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -50,7 +50,7 @@ function Sophia Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.0 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 index 2a2ebb4d..032a4345 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Manifest/Sophia.psd1 @@ -1,6 +1,6 @@ @{ RootModule = '..\Module\Sophia.psm1' - ModuleVersion = '6.5.0' + ModuleVersion = '6.5.1' GUID = '109cc881-c42b-45af-a74a-550781989d6a' Author = 'Dmitry "farag" Nefedov' Copyright = '(c) 2014—2023 farag & Inestic. All rights reserved' 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 f8a93818..5c515ad2 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 @@ -2,8 +2,8 @@ .SYNOPSIS Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -3202,6 +3202,25 @@ function TaskViewButton .NOTES Current user #> +<# + .SYNOPSIS + The Chat icon (Microsoft Teams) on the taskbar + + .PARAMETER Hide + Hide the Chat icon (Microsoft Teams) on the taskbar and prevent Microsoft Teams from installing for new users + + .PARAMETER Show + Show the Chat icon (Microsoft Teams) on the taskbar and remove block for Microsoft Teams from installing for new users + + .EXAMPLE + TaskbarChat -Hide + + .EXAMPLE + TaskbarChat -Show + + .NOTES + Current user +#> function TaskbarChat { param @@ -3221,17 +3240,39 @@ function TaskbarChat $Show ) + Clear-Variable -Name Task -ErrorAction Ignore + switch ($PSCmdlet.ParameterSetName) { "Hide" { New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarMn -PropertyType DWord -Value 0 -Force + # Save string to run it as "NT SERVICE\TrustedInstaller" + # Prevent Microsoft Teams from installing for new users + $Task = "New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications -Name ConfigureChatAutoInstall -Value 0 -Type Dword -Force" } "Show" { New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarMn -PropertyType DWord -Value 1 -Force + # Save string to run it as "NT SERVICE\TrustedInstaller" + # Remove block for Microsoft Teams from installing for new users + $Task = "Remove-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications -Name ConfigureChatAutoInstall -Value 1 -Type Dword -Force" } } + + # Create a Scheduled Task to run it as "NT SERVICE\TrustedInstaller" + $Parameters = @{ + TaskName = "BlockTeamsInstallation" + Action = New-ScheduledTaskAction -Execute powershell.exe -Argument "-WindowStyle Hidden -Command $Task" + } + Register-ScheduledTask @Parameters -Force + + $ScheduleService = New-Object -ComObject Schedule.Service + $ScheduleService.Connect() + $ScheduleService.GetFolder("\").GetTask("BlockTeamsInstallation").RunEx($null, 0, 0, "NT SERVICE\TrustedInstaller") + + # Remove temporary task + Unregister-ScheduledTask -TaskName BlockTeamsInstallation -Confirm:$false } <# @@ -9451,9 +9492,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9461,9 +9505,12 @@ function Export-Associations $PartProgramPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $Program = $PartProgramPath.Substring(0, ($PartProgramPath.IndexOf(".exe") + 4)).Trim('"') - if (Test-Path -Path $Program) + if ($Program) { - $ProgramPath = $PartProgramPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($Program))) + { + $ProgramPath = $PartProgramPath + } } } @@ -9487,9 +9534,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\DefaultIcon", "", $false)) @@ -9511,9 +9561,12 @@ function Export-Associations } } - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = $IconPartPath + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = $IconPartPath + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_CURRENT_USER\Software\Classes\$($_.ProgId)\shell\open\command", "", $false)) @@ -9521,9 +9574,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKCU:\Software\Classes\$($_.ProgId)\shell\open\command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4).Trim('"') - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } elseif ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command", "", $false)) @@ -9531,9 +9587,12 @@ function Export-Associations $IconPartPath = (Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Classes\$($_.ProgId)\Shell\Open\Command" -Name "(default)").Trim() $IconPath = $IconPartPath.Substring(0, $IconPartPath.IndexOf(".exe") + 4) - if (Test-Path -Path $IconPath) + if ($IconPath) { - $Icon = "$IconPath,0" + if (Test-Path -Path $([System.Environment]::ExpandEnvironmentVariables($IconPath))) + { + $Icon = "$IconPath,0" + } } } } @@ -9560,6 +9619,8 @@ function Export-Associations $AllJSON += $JSON } + Clear-Variable -Name ProgramPath, Icon -ErrorAction Ignore + $AllJSON | ConvertTo-Json | Set-Content -Path "$PSScriptRoot\..\Application_Associations.json" -Force -Encoding utf8 Remove-Item -Path "$env:TEMP\Application_Associations.xml" -Force diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 index 00553ba9..defe5e1d 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" - Version: v6.5.0 - Date: 27.05.2023 + Version: v6.5.1 + Date: 03.06.2023 Copyright (c) 2014—2023 farag Copyright (c) 2019—2023 farag & Inestic @@ -69,7 +69,7 @@ param Clear-Host -$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.0 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.5.1 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2023" Remove-Module -Name Sophia -Force -ErrorAction Ignore Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force @@ -398,12 +398,12 @@ TaskbarWidgets -Hide # Отобразить кнопку "Мини-приложения" на панели задач (значение по умолчанию) # TaskbarWidgets -Show -# Hide the Chat icon (Microsoft Teams) on the taskbar -# Скрыть кнопку чата (Microsoft Teams) с панели задач +# Hide the Chat icon (Microsoft Teams) on the taskbar and prevent Microsoft Teams from installing for new users +# Скрыть кнопку чата (Microsoft Teams) с панели задач и запретить установку Microsoft Teams для новых пользователей TaskbarChat -Hide -# Show the Chat icon (Microsoft Teams) on the taskbar (default value) -# Отобразить кнопку чата (Microsoft Teams) на панели задач (значение по умолчанию) +# Show the Chat icon (Microsoft Teams) on the taskbar and remove block from installing Microsoft Teams for new users (default value) +# Отобразить кнопку чата (Microsoft Teams) на панели задач и убрать блокировку на устанвоку Microsoft Teams для новых пользователей (значение по умолчанию) # TaskbarChat -Show # Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar