Dmitry Nefedov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
10 additions and
10 deletions
Sophia/LTSC/Functions.ps1
Sophia/LTSC/Manifest/Sophia.psd1
Sophia/LTSC/Module/Sophia.psm1
Sophia/LTSC/Sophia.ps1
@ -2,8 +2,8 @@
. SYNOPSIS
. SYNOPSIS
The TAB completion for functions and their arguments
The TAB completion for functions and their arguments
Version : v5 . 2 . 9
Version : v5 . 2 . 10
Date : 12 . 07 . 2021
Date : 13 . 07 . 2021
Copyright ( c ) 2014 – 2021 farag
Copyright ( c ) 2014 – 2021 farag
Copyright ( c ) 2019 – 2021 farag & Inestic
Copyright ( c ) 2019 – 2021 farag & Inestic
@ -52,7 +52,7 @@ function Sophia
Clear-Host
Clear-Host
$Host . UI . RawUI . WindowTitle = " Windows 10 Sophia Script for LTSC v5.2.8 | Made with $( [char] :: ConvertFromUtf32 ( 0x1F497 ) ) of Windows 10 | $( [char] 0x00A9 ) farag & Inestic, 2014–2021 "
$Host . UI . RawUI . WindowTitle = " Windows 10 Sophia Script for LTSC v5.2.10 | Made with $( [char] :: ConvertFromUtf32 ( 0x1F497 ) ) of Windows 10 | $( [char] 0x00A9 ) farag & Inestic, 2014–2021 "
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot \ Manifest \ Sophia . psd1 -PassThru -Force
Import-Module -Name $PSScriptRoot \ Manifest \ Sophia . psd1 -PassThru -Force
@ -1,6 +1,6 @@
@ {
@ {
RootModule = '..\Module\Sophia.psm1'
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.2.9 '
ModuleVersion = '5.2.10 '
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
Copyright = '(c) 2014–2021 farag & Inestic. All rights reserved'
@ -1,9 +1,9 @@
<#
<#
. SYNOPSIS
. SYNOPSIS
" Windows 10 Sophia Script " ( LTSC version ) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Sophia Script ( LTSC version ) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version : v5 . 2 . 9
Version : v5 . 2 . 10
Date : 12 . 07 . 2021
Date : 13 . 07 . 2021
Copyright ( c ) 2014 – 2021 farag
Copyright ( c ) 2014 – 2021 farag
Copyright ( c ) 2019 – 2021 farag & Inestic
Copyright ( c ) 2019 – 2021 farag & Inestic
@ -93,7 +93,7 @@ function Checkings
# Check whether the logged-in user is an admin
# Check whether the logged-in user is an admin
$CurrentUserName = ( Get-Process -Id $PID -IncludeUserName ) . UserName | Split-Path -Leaf
$CurrentUserName = ( Get-Process -Id $PID -IncludeUserName ) . UserName | Split-Path -Leaf
$CurrentSessionId = ( Get-Process -Id $PID -IncludeUserName ) . SessionId
$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 { ( $_ . Process Name -eq " explorer " ) -and ( $_ . SessionId -eq $CurrentSessionId ) } ) . UserName | Select-Object -First 1 | Split-Path -Leaf
switch ( $CurrentUserName -ne $LoginUserName )
switch ( $CurrentUserName -ne $LoginUserName )
{
{
@ -2,7 +2,7 @@
. SYNOPSIS
. SYNOPSIS
Default preset file for " Windows 10 Sophia Script " ( LTSC version )
Default preset file for " Windows 10 Sophia Script " ( LTSC version )
Version : v5 . 2 . 9
Version : v5 . 2 . 10
Date : 12 . 07 . 2021
Date : 12 . 07 . 2021
Copyright ( c ) 2014 – 2021 farag
Copyright ( c ) 2014 – 2021 farag
@ -71,7 +71,7 @@ param
Clear-Host
Clear-Host
$Host . UI . RawUI . WindowTitle = " Windows 10 Sophia Script for LTSC v5.2.9 | Made with $( [char] :: ConvertFromUtf32 ( 0x1F497 ) ) of Windows | $( [char] 0x00A9 ) farag & Inestic, 2014–2021 "
$Host . UI . RawUI . WindowTitle = " Windows 10 Sophia Script for LTSC v5.2.10 | Made with $( [char] :: ConvertFromUtf32 ( 0x1F497 ) ) of Windows | $( [char] 0x00A9 ) farag & Inestic, 2014–2021 "
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot \ Manifest \ Sophia . psd1 -PassThru -Force
Import-Module -Name $PSScriptRoot \ Manifest \ Sophia . psd1 -PassThru -Force