Skip to content

Commit

Permalink
13.07.2021 v5.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 authored Jul 13, 2021
1 parent e2352f0 commit 2636bc6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Sophia/PowerShell 7/Functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.11
Date: 12.07.2021
Version: v5.11.1
Date: 13.07.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & Inestic
Expand Down
2 changes: 1 addition & 1 deletion Sophia/PowerShell 7/Manifest/Sophia.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.11'
ModuleVersion = '5.11.1'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
Expand Down
10 changes: 5 additions & 5 deletions Sophia/PowerShell 7/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version: v5.11
Date: 12.07.2021
Version: v5.11.1
Date: 13.07.2021
Copyright (c) 2014–2021 farag
Copyright (c) 2019–2021 farag & Inestic
Expand Down Expand Up @@ -93,7 +93,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.Name -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -Index 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf

switch ($CurrentUserName -ne $LoginUserName)
{
Expand Down Expand Up @@ -2891,10 +2891,10 @@ function WindowsColorMode
The default app mode
.PARAMETER Dark
Set the default app mode dark
Set the default app mode to dark
.PARAMETER Light
Set the default app mode light
Set the default app mode to light
.EXAMPLE
AppMode -Dark
Expand Down
17 changes: 14 additions & 3 deletions Sophia/PowerShell 7/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script"
Version: v5.11
Version: v5.11.1
Date: 12.07.2021
Copyright (c) 2014–2021 farag
Expand Down Expand Up @@ -71,7 +71,7 @@ param

Clear-Host

$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.11 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014–2021"
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script v5.11.1 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014–2021"

Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Expand Down Expand Up @@ -883,13 +883,24 @@ RestartDeviceAfterUpdate -Enable
#endregion System

#region WSL
# Install the Windows Subsystem for Linux (WSL) ###
# Install the Windows Subsystem for Linux (WSL)
# Установить подсистему Windows для Linux (WSL)
# WSL -Enable

# Uninstall the Windows Subsystem for Linux (WSL)
# Удалить подсистему Windows для Linux (WSL)
# WSL -Disable

<#
Download and install the Linux kernel update package
Set WSL 2 as the default version when installing a new Linux distribution
Run the function only after WSL installed and PC restart
Скачать и установить пакет обновления ядра Linux
Установить WSL 2 как версию по умолчанию при установке нового дистрибутива Linux
Выполните функцию только после установки WSL и перезагрузки ПК
#>
# EnableWSL2
#endregion WSL

#region Start menu
Expand Down

0 comments on commit 2636bc6

Please sign in to comment.