Skip to main content

All Questions

6 votes
5 answers
16k views

Why doesn't Console in PowerShell ISE use the latest installed version of PowerShell?

I have recently installed PowerShell 6.2. If I start a PowerShell 6 (x64) command prompt and run $PSVersionTable.PSVersion this is the result Major Minor Patch PreReleaseLabel BuildLabel ----- --...
Douglas Reid's user avatar
  • 3,818
2 votes
1 answer
3k views

Powershell 6.2 and Get-CimInstance to remotely stop/start/restart service issues

So I am at a big roadblock right now. I was working in PowerShell 5.1 and had the Get-WmiObject with the Win32_Service Class working perfectly fine to remotely stop/start/restart services remotely. ...
Ryan Wakefield's user avatar
0 votes
0 answers
232 views

How to grant permission to AAD native app in PowerShell 6?

I registered a native application on Azure Active Directory via powershell 6 (module AzureAD.Standard.Preview) and I need to grant the permissions with powershell 6 code (Settings > Required ...
C. Fabiani's user avatar
2 votes
1 answer
552 views

PowerShell 6.1.3 doesn't recognize any PackageManagement cmdlets

I've installed PowerShell 6.1.3 and I try to run some commands e.g.: Get-PackageProvider or GetPackage and then I get the following errors: Get-PackageProvider : Unhandled Exception - Message:'The ...
agawa17's user avatar
  • 325
0 votes
1 answer
242 views

How do I create function that runs a command?

So what I'm trying to do is recreate a similar function as I would use in Bash, but in Powershell: yell() { echo "$0: $*" >&2; } die() { yell "$*"; exit 111; } try() { "$@" || die "FAILED: $*";...
Sinaesthetic's user avatar
  • 12.3k
0 votes
1 answer
2k views

Publishing a PowerShell script to AWS Lambda

I'm trying to deploy a PowerShell core script to AWS Lambda. I'm deploying from an EC2 instance. I'm following AWS Lambda Deployment Package in PowerShell - AWS Lambda, and trying to deploy the exact ...
Kehaar's user avatar
  • 119
0 votes
1 answer
875 views

Azure Traffic Manager make sure no traffic is flowing after disabling endpoint

I am trying to find a powershell command which helps find out a way that there is no open connections or any traffic is flowing to endpoint1 or confirm traffic is moving smoothly to endpoint2 after ...
NoviceMe's user avatar
  • 3,266
17 votes
1 answer
14k views

Is it possible to install the PKI module on Powershell Core?

I'd like to use the various commands from Powershell 5's PKI module: $ Get-Command -module PKI CommandType Name Version Source ----------- ---...
mikemaccana's user avatar
2 votes
3 answers
4k views

PowerShell 6 - support for Windows GUI libraries

I understand that the new PowerShell 6/core lacks support for Windows GUI libraries, I have developed some important projects in PS-5.1 using the Windows.Forms .NET classes. Problem: We are planning ...
Eddie Kumar's user avatar
  • 1,488