Forum Discussion
Feb 09, 2024
Get-StartApps : The term 'Get-StartApps' is not recognized as the name of a cmdlet, function, script
I have a command such as
(Get-StartApps | Where-Object name -eq 'Notepad').AppId
or just simply
Get-StartApps
which works just fine via PowerShell ISE.
I, on the other h...
- Feb 11, 2024
The only suggestion I have now is replacing your "powershell.exe" statement with a full path alternative of:
C:\Windows\SysNative\WindowsPowerShell\v1.0\powershell.exeCheers,
Lain
Feb 11, 2024
GetPSPath returns:
C:\Program Files\WindowsPowerShell\Modules
M:\Documents\WindowsPowerShell\Modules
C:\Program Files (x86)\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
Get-Module -ListAvailable -Name StartLayout
returns nothing in the x86 console, but work in the standard console (x64)
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 1.0.0.2 StartLayout {Export-StartLayout, Import-StartLayout, Export-StartLayou...
C:\Program Files\WindowsPowerShell\Modules
M:\Documents\WindowsPowerShell\Modules
C:\Program Files (x86)\WindowsPowerShell\Modules
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
Get-Module -ListAvailable -Name StartLayout
returns nothing in the x86 console, but work in the standard console (x64)
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 1.0.0.2 StartLayout {Export-StartLayout, Import-StartLayout, Export-StartLayou...
LainRobertson
Feb 11, 2024Silver Contributor
A fifth (and final) function to quickly check if the instance of Windows PowerShell being launched by Excel is 32-bit (False) or 64-bit (True).
Fifth function (for is64Bit)
Function GetIs64Bit()
Set Process = CreateObject("WScript.Shell").Exec("powershell.exe -Command ""& { [System.Environment]::Is64BitProcess; }""")
Do While Process.Status = 0
Application.Wait (Now() + TimeValue("0:00:01"))
Loop
GetIs64Bit = Process.StdOut.ReadAll
End Function
Output
Cheers,
Lain