Questions tagged [powershell-7]
19 questions
0
votes
1 answer
Extract substring from a result in Select
I'm attempting to get a substring in a Select filter from a command result. Much like this
Connect-ExchangeOnline
Get-DistributionGroup -ResultSize Unlimited
Get-DistributionGroupMember -Identity "Groupname" -ResultSize Unlimited |
Select FirstName,…

theking2
- 2,174
- 1
- 27
- 36
0
votes
0 answers
What Powershell version will run after installing 7
I have a server that executes many PowerShell scripts.
PowerShell 5.1 is installed.
PowerShell 7 is not installed.
If I install PowerShell 7, what PS version will the existing scripts "run on"? 5.1 or 7?
If existing scripts will default to use 7,…

mortenma71
- 1,078
- 2
- 9
- 27
0
votes
0 answers
Powershell 5 failure to find a module
When creating a module manifest with the following
$settings = @{
Path = $(Join-Path -Path $PSScriptRoot -ChildPath "module.psd1")
Author = "Author"
CompanyName = "Company"
ModuleVersion = "0.0.0"
Guid = $(New-Guid)
…

Viktor Khristenko
- 863
- 1
- 5
- 17
-1
votes
1 answer
PowerShell 7 not available in VS Code
Running in Windows 11 Pro 64, I've installed PowerShell 7 and VS Code. I'm able to run PS 7 directly in Windows, which brings up a window titled "PowerShell 7 (x64)". In VS Code, I installed the PowerShell extension. When I run VS Code, I'm able to…

NewSites
- 1,402
- 2
- 11
- 26