Browse Source

Update Sophia.psm1

master
Dmitry Nefedov 1 week ago
parent
commit
7e1312fe47
  1. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -415,7 +415,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue
}
# Checking whether Get-WindowsEdition cmdlet is working
# Checking whether PowerShell 7 was installed from the Microsoft Store
# https://github.com/PowerShell/PowerShell/issues/21295
if ((Get-Process -Id $PID).Path -match "C:\\Program Files\\WindowsApps")
{

Loading…
Cancel
Save