PowerShell

The PowerShell forum accepts bug reports as well as feedback and suggestions. For more information, check out the PowerShell Homepage

The following is a list of the states we use to track items.

status meaning
survey We saw this and we are considering it. Please upvote if it’s important to you.
needs more information We don’t understand the issue and need additional details.
investigating We are looking at this internally to understand things like: scenario, reproduction of issue, costing, or other technical details.
in queue The issue is understood and in our unprioritized backlog. Your votes will be used to drive prioritization of this work.

Please feel free to provide feedback or file bugs here.

(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. No paid modules in the module repository

    I recently posted this on TechNet, and was directed here...

    I couldn't remember how many times I've heard Jeffrey Snover talk about the experience that the Powershell team are after being one where you can start at a PS prompt and find and finish everything you need.

    First, great job, because it is actually shaping up to an environment that is just that. However, I just ran in to something that made me curse out loud alone in my office, and I want to believe that the majority of the community will be with me on this.

    I started, as…

    4 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    • Problem with external commands when current location is invalid

      If your current location is on a UNC path or network drive that is no longer accessible, and you run an external command, the command is run with the current directory set to c:\windows\system32 or sometimes c:\windows. If the external command is destructive, e.g., robocopy with the /move option, this can make your system unbootable.

      Powershell should behave the same way as cmd.exe, i.e, refuse to run an external command if the current location is no longer valid.

      (PS: the problem does not always occur the first time you run a command after the current location becomes invalid. I believe…

      2 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
      • Windows PowerShell (or pwsh) on Microsoft Store for Windows 10 in S Mode?

        Would it be possible to get PowerShell into the Microsoft Store for Windows 10 in S Mode, in some sort of container that would allow for connections to exchange online powershell, and other tasks?

        2 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
        • use semi-colon as line separator

          `
          do you see that? that's the line continuation line in PS. very hard to notice because maybe you think it's a dirt on the screen or on a book.

          would be better if lines continue until it meets a semi-colon. yes just like in C. a semi-colon is easier to notice and you wouldn't mistake it for a dirt on the screen.

          1 vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
          • cmdlets for Overriding Language not working in buid 1709/1803

            cmdlets for Overriding Language not working in buid 1709/1803
            Set-WinDefaultInputMethodOverride -InputTip ***-XXXXXX
            Set-WinUILanguageOverride -Language XXXXXX

            Does not change settings and generate no error message in PS

            1 vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
            • PowerShell to select SSID

              Many companies have several wifi ssids. You know, "Corp" "Guest" "Upstairs Lab"
              Very very common.

              How? How do you select one via PowerShell ?

              2 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
              • Add support for SSRS Mobile reports to Out-RsFolderContent

                Out-RsfolderContent fails when exporting Mobile Reports because the 'TypeName' MobileReport is not covered in the function.

                I added the following remedy to my system. may be nice for others.
                I have not yet tested for PowerBI reports ... but neither have the people making these nice modules ...

                if (($item.TypeName -eq 'MobileReport') ) {
                $relativePath = $item.Path
                if($RsFolder -ne "/") { $relativePath = Clear-Substring -string $relativePath -substring $RsFolder -position front }
                $relativePath = $relativePath.Replace("/", "\")
                $newFolder = $Destination + $relativePath
                Write-Verbose "Creating folder $newFolder"
                New-Item $newFolder -ItemType Directory -Force | Out-Null
                Write-Verbose "Folder: $newFolder was created successfully."
                }

                1 vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                • How to compare current and next Iteration values of foreach loop in Powershell.

                  Hi,I have a loop like below. In that, I want to compare next iteration value with current iteration value. If current value is not match with next value then I need to do some process. So I want to know like how to get the next Iteration value of a loop in powershell.
                  $var = ('abc','abc','bcd','cdf','cdf')
                  Foreach($i in $var){ 
                  If($i -ne $nextiterationvalue) 
                  {       do something  } 
                  else  {     do something  }}

                  Thanks,Dinesh

                  1 vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                  • Import-PfxCertificate and relates commands don't exist on linux/macos powershell

                    our .net core projects use powershell. The lack of these commands impedes our cross-platform activities.

                    1 vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                    • Unable to use PowerShell Transcription with Active Directory Administrative Console (ADAC)

                      Setup group policy to enable PowerShell Transcripting. From a machine that has that policy applied, launch ADAC. The error "Cannot connect to any domain. Refresh or try again when connection is available." pops up and ADAC can't be used.

                      https://github.com/PowerShell/PowerShell/issues/3021

                      5 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                      • OpenSource NetTCPIP and put it in a GitHub repo.

                        I am extremely annoyed by Test-NetConnection and would like to make it better. Why is there not a skip ICMP flag, or a timeout flag?

                        Please, OpenSource this so the community could improve this tooling for all.

                        1 vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                        • powershell.exe does not preserve current directory when launched from command prompt

                          Given a script with the contents:

                          ```
                          $location = Get-Location

                          Write-Host "current directory [$($location.Path)]"
                          ```

                          Actual:
                          From command prompt:
                          ```
                          e:\projects\test>powershell -File ..\cleanBinObj.ps1
                          current directory [E:\projects]
                          ```

                          From powershell:
                          ```
                          E:\projects\test> ..\cleanBinObj.ps1
                          current directory [E:\projects\test]
                          ```

                          Expected: calling powershell from the command prompt should preserve the current directory and print "E:\projects\test" instead of "E:\projects"

                          1 vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                          • Powershell cmdlets to retrieve and collect specific versions of policies in the policy store for AGPM

                            The existing powershell cmdlets for AGPM only allow manipulation of the current versions of policies. Please enhance these cmdlets to allow querying / returning of specific versions of policies stored in the policy store. For example Get-ControlledGpo only allows returning of a list of the latest versions of GPO's. Please include an additional parameter return a specific version or all versions of a policy, and include the GPO version in the standard returned object.

                            This would allow powershell driven versions of policy rollback, ie:

                            Get-ControlledGpo -Domain "TSQA.Contoso.com" | Where {$_.Name -eq "A Great Policy" -and $_.PolicyVersion -eq 10 } |…

                            1 vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                            • DISM cmdlets crash if you supply -Online:$false

                              The cmdlet throws an exception that cannot be caught by scripts. It seems that the team that wrote the cmdlets was using the presence of -Online parameter to determine the parameter set, and pretended that -Online is always $true if is it supplied. It might not be -- it is perfectly valid to supply $false to the switch.

                              This should be considered a bug, as it crashes PowerShell. Presumably an ill-supplied set of parameters should result an ErrorRecord being written.

                              1 vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                              • Dynamic param is silently ignored

                                Dynamic param is silently ignored, and no errors are thrown when CmdletBinding is not defined.

                                [CmdletBinding()]
                                Param()

                                The following code should either run successfully, or throw an error:

                                Function Add-Control() {
                                DynamicParam {
                                $ParamAttribute = New-Object Parameter
                                $ParamAttribute.Mandatory = $true
                                $ParamAttribute.ParameterSetName = '__AllParameterSets'

                                $AttributeCollection = New-Object System.Collections.ObjectModel.Collection[System.Attribute]

                                $AttributeCollection.Add($ParamAttribute)

                                $controlTypes = @("TextBox", "Label", "DataGrid")

                                $AttributeCollection.Add((New-Object ValidateSet($controlTypes)))

                                $RuntimeParam = New-Object System.Management.Automation.RuntimeDefinedParameter('Type', [string], $AttributeCollection)

                                $RuntimeParamDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary

                                $RuntimeParamDictionary.Add('Type', $RuntimeParam)

                                return $RuntimeParamDictionary
                                }

                                Process {
                                Write-Host ($PSBoundParameters['Type'])
                                }
                                }

                                Add-Control -Type "Test"
                                # $null

                                4 votes
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                • New-Volume does not work with SMR drives

                                  I can create a storage pool with or without storage tiers and then use new-virtualdisk to create disks on the storage pool. I can then format-volume and add access paths with add-PartitionAccessPath. All the separate parts work fine.

                                  but...if I make a storage pool and try something like:

                                  New-Volume -StoragePoolFriendlyName Test_Pool -FriendlyName Test0 -Size 10TB -ResiliencySettingName Simple -FileSystem ReFS -AccessPath M:\access_path0

                                  ...it will work one time. Any other volumes attempted on the same storage pool (with different names and access_paths) will fail on both ReFS and NTFS file systems. The same command run on PMR HDDs will work repeatedly just…

                                  1 vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • BUG: binary module loading fails silently on Fall Creators update on some machines

                                    occurs in PS 5.1 on Windows 10, Fall Creators update
                                    First observed with SqlServer module 21.0.17199
                                    Also occurs with PsWindowsUpdate v2.0.0.0 , SqlServer 21.0.17224

                                    Pretty much what it says - with either autoload or Import-Module, the module loads with no complaints but the cmdlets aren't there. The assemblies _do_ get loaded into the appdomain. I found no obvious clues poking around with ProcMon and Trace-Command (obvious to me, anyway). Happens on some machines, not others. Reported by 3 users (that I know of), in each case after updating to the Fall Creators update. If you have any debugging hints, they'd…

                                    3 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      4 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                    • PowerShell sessions don't support mixed-culture values such as 'en-DE'

                                      Note: This may ultimately require resolution in the .NET framework.

                                      Recent versions of Windows 10 support mixed culture values such as `en-DE` (sic) (since version 1703 - see https://msdn.microsoft.com/en-us/library/cc233982.aspx)

                                      After using, e.g., `Set-Culture en-DE` to set the culture for future PowerShell sessions (which in itself succeeds, as you can verify at registry location [HKEY_CURRENT_USER\Control Panel\International]), subsequent PowerShell sessions quietly fall back onto culture 'en-US', as reflected in $PSCulture and [cultureinfo]::CurrentCulture.

                                      Note that such a mixed culture *is* honored in PowerShell *Core*.

                                      1 vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • anaconda

                                        Anaconda (Python Environments) Syntax Support

                                        1 vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                        • 1 vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4 5 19 20
                                          • Don't see your idea?

                                          Feedback and Knowledge Base