Browse Source

13.07.2021 v5.11.1

pull/217/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
2636bc64e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Sophia/PowerShell 7/Functions.ps1
  2. 2
      Sophia/PowerShell 7/Manifest/Sophia.psd1
  3. 10
      Sophia/PowerShell 7/Module/Sophia.psm1
  4. 17
      Sophia/PowerShell 7/Sophia.ps1

4
Sophia/PowerShell 7/Functions.ps1

@ -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) 20142021 farag
Copyright (c) 20192021 farag & Inestic

2
Sophia/PowerShell 7/Manifest/Sophia.psd1

@ -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'

10
Sophia/PowerShell 7/Module/Sophia.psm1

@ -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) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -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)
{
@ -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

17
Sophia/PowerShell 7/Sophia.ps1

@ -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) 20142021 farag
@ -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
@ -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

Loading…
Cancel
Save