Skip to content

Commit

Permalink
V7.26
Browse files Browse the repository at this point in the history
  • Loading branch information
mniederw committed Aug 21, 2023
1 parent 6417aac commit 3be5dd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MnCommonPsToolLib/MnCommonPsToolLib_Windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function JobWaitForEnd ( [Int32] $id ){ JobWaitForNotRunn
function OsIsWinVistaOrHigher (){ return [Boolean] ([Environment]::OSVersion.Version -ge (new-object "Version" 6,0)); }
function OsIsWin7OrHigher (){ return [Boolean] ([Environment]::OSVersion.Version -ge (new-object "Version" 6,1)); }
function OsIs64BitOs (){ return [Boolean] (Get-CimInstance -Class Win32_OperatingSystem -ErrorAction SilentlyContinue).OSArchitecture -eq "64-Bit"; }
function OsIsWinScreenLocked (){ return [Boolean] ((Get-Process | Where-Object{ $_.ProcessName -eq "LogonUI"}).Count -gt 0); }
function OsIsWinScreenLocked (){ return [Boolean] ((@()+(Get-Process | Where-Object{ $_.ProcessName -eq "LogonUI"})).Count -gt 0); }
function OsIsHibernateEnabled (){
if( (FileNotExists "$env:SystemDrive/hiberfil.sys") ){ return [Boolean] $false; }
if( OsIsWin7OrHigher ){ return [Boolean] (RegistryGetValueAsString "HKLM:\SYSTEM\CurrentControlSet\Control\Power" "HibernateEnabled") -eq "1"; }
Expand Down Expand Up @@ -828,7 +828,7 @@ function InfoAboutNetConfig (){
,"NetGetNbtStat:" ,(NetGetNbtStat) , ""
,"NetGetAdapterSpeed:" ,(NetAdapterListAll | StreamToTableString | StreamToStringIndented) ,"" ); }
function InfoGetInstalledDotNetVersion ( [Boolean] $alsoOutInstalledClrAndRunningProc = $false ){
# Requires clrver.exe in path, for example "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.x Tools\x64\clrver.exe"
# Requires clrver.exe in path, for example "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\x64\clrver.exe"
if( $alsoOutInstalledClrAndRunningProc ){
[String[]] $a = @();
$a += "List Installed DotNet CLRs (clrver.exe):";
Expand Down
2 changes: 1 addition & 1 deletion Releasenotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Major version will reflect breaking changes, minor identifies extensions and thi
Breaking changes are usually removed deprecated functions or changed behaviours.
Current version can be requested by: $MnCommonPsToolLibVersion

2023-08-08 V7.26 Improve GitGetBranch.
2023-08-08 V7.26 Improve GitGetBranch. Fix OsIsWinScreenLocked.
2023-07-07 V7.25 Improve ForEachParallel. Extend Install.ps1 for linux. Improve Import-Module handling. Fix OutStopTranscript.
2023-07-11 V7.24 Fix OutStartTranscriptInTempDir, remove gh update notification, improve gh action.
2023-06-09 V7.23 Add RegistryKeyGetOwnerAsString, Improve RegistryKeySetOwner.
Expand Down

0 comments on commit 3be5dd6

Please sign in to comment.