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. Wrong output in CIM cmdlets like Get-SmbShareAccess, Enable-NetAdapterChecksumOffload, etc.

    (Originally posted in https://connect.microsoft.com/PowerShell/feedback/details/1852524)

    Standard CIM cmdlets can produce invalid output. I reproduced the problem with
    two commands — Get-SmbShareAccess and Enable-NetAdapterChecksumOffload.
    I also believe that the problem is not limited to these particular commands.

    Below is an example of me executing 'Get-SmbShareAccess C$, D$' twice. Please
    note that the first output is incorrect and it shows 6 entries for C$, instead
    of expected 3 entries for C$ and 3 entries for D$:

    PS C:\> Get-SmbShareAccess C$, D$

    Name ScopeName AccountName AccessControlType AccessRight
    ---- --------- ----------- ----------------- -----------
    C$ * BUILTIN\Administrators Allow Full
    C$ * BUILTIN\Administrators Allow Full
    C$…

    6 votes
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)

      We’ll send you updates on this idea

      0 comments  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
    • Add maintenance window awareness to DSC / LCM

      Votes from Connect: 17

      Original Date Submitted: 8/13/2015 12:17:49 AM

      Description:
      ********Contact Information********
      Handle: PowerShellDon
      Site Name: PowerShell
      Feedback ID: 1659904
      ***************************************

      Problem Description:
      Suggestion one:

      Add maintenance window awareness to the Local Configuration Manager. Edited via metaconfig, it specifies times when configuration changes are acceptable, when automated reboots are acceptable. Further automates configuration maintenance especially when you're implementing changes vs. correcting drift.

      Suggestion two:

      Add universal "DoNotImplementBefore" and "ImplementBy" settings to DSC resources. Just as "Present=" specifies to add/remove something, these would indicate a date/time for the setting to become valid (e.g., "we want to implement a bunch of…

      99 votes
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)

        We’ll send you updates on this idea

        2 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
      • ISE hangs after using a Windows Forms dialog

        Votes from Connect: 12

        Original Date Submitted: 4/4/2015 8:50:49 AM

        Description:
        ********Contact Information********
        Handle: Arnoud Jansveld
        Site Name: PowerShell
        Feedback ID: 1224213
        ***************************************

        Frequency: PowerShell ISE
        Regression: function Show-Form
        {
        [reflection.assembly]::LoadWithPartialName("System.Windows.Forms") >$null
        $form = New-Object System.Windows.Forms.Form
        $label = New-Object System.Windows.Forms.Label
        $label.Text = "Please close this form"
        $label.AutoSize = $true
        $form.Controls.Add($label)
        $form.ShowDialog()
        }

        $result = Show-Form

        # Workaround (slow):
        # $result = Start-Job ${function:Show-Form} | Receive-Job -Wait -AutoRemoveJob

        "Form result: " + $result.ToString()

        Write-Warning "The following step may hang PowerShell ISE, save your work!"
        Read-Host -Prompt "Hit Enter or Ctrl-C to abort"

        # This generates a WM_SETTINGCHANGE broadcast message
        [Environment]::SetEnvironmentVariable("foo", "bar",…

        23 votes
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)

          We’ll send you updates on this idea

          3 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
        • Option to disable scroll-to-prompt on left mouse click in ISE console window.

          In PowerShell v3 there was a "feature" added, that moved cursor/ scrolled down to prompt whenever console window gets focus. It makes selecting text in output from previous commands a real nightmare.

          I would love to get rid off this "feature", or if not possible - at least have an option to turn it off. If possible, make it a default behavior.

          37 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)

            We’ll send you updates on this idea

            4 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
          • Double click highlight occurrences

            Double clicked strings and integers should be clearly highlighted (like in Notepad++ or in VSCode) if there are multiple occurrences of the same word or number.

            40 votes
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)

              We’ll send you updates on this idea

              7 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
            • Message Cannot unprotect message. The input contained no encrypted content

              When upgrading to WMF 5.1, we are seeing errors in the DSC event log on servers that use a configuration with encrypted content (passwords). We are using encrypted credentials to create application pools and assign a service account as the identity. The data gets decrypted fine and the app pools get created with the correct identities. However the following error gets logged in the DSC event log every time a consistency check runs:

              Job :
              Message Cannot unprotect message. The input contained no encrypted content. Specify the '-IncludeContext' parameter if you wish to output the original content when no encrypted…

              2 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)

                We’ll send you updates on this idea

                investigating  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
              • DSC ESENT Database management

                In a recent change, the new database for the on-prem Pullserver is now ESENT. Had a question for clarification.

                As an old Exchange guy, I have fears that immediately pop into mind. The logs files do not appear to be using circular logging (a way of self cleaning and restricting the amount of log files) – Is this true?

                If so, then I’m guess that the log files will continue to grow until the disk is full – which happens to exchange if the log files are not truncated. Is there a way today or in the future we will…

                30 votes
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  investigating  ·  5 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                • converting multiple lines of code to comment

                  Votes from Connect: 5

                  Original Date Submitted: 2/20/2015 2:01:32 PM

                  Description:

                  ********Contact Information********
                  Handle: john.s2011n
                  Site Name: PowerShell
                  Feedback ID: 1139497
                  ***************************************

                  Frequency: Always Happens
                  Regression: Yes, this happens in all previous versions

                  Problem Description:
                  in PS 4.0 and also previous versions, there is no option to easily convert multiple selected lines to comment block. so when we have selected multiple lines & we want to make them as comment, we have to insert comment block in another location on the pane, and then cut these multiple lines and paste them inside comment block which is a bit cumbersome.
                  but…

                  73 votes
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    1 comment  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                  • Creators update: stop-computer : Privilege not held

                    I ran into this one, after I noticed my newly patched workstation was still turned on in the morning even though I had explicitly requested it to shutdown at a certain time. Basically the repro steps are as follows:

                    > Open Non-Administrative Shell
                    > Stop-Computer
                    Output:
                    stop-computer : Privilege not held.
                    At line:1 char:1
                    + stop-computer
                    + ~~~~~~~~~~~~~
                    + CategoryInfo : InvalidOperation: (***:String) [Stop-Computer], ManagementException
                    + FullyQualifiedErrorId : StopComputerException,Microsoft.PowerShell.Commands.StopComputerCommand

                    Administrative shell works as expected, this specific workstation has never participated in any fast/slow ring builds. Windows version is 15063.138

                    Another Windows 10 system, fast ring, that is on build 15063.14…

                    2 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →

                      FYI, we’re aware of this problem and are currently investigating it.

                      Other threads here that we’re aware of:

                      I THINK we understand the problem, but I can’t offer an ETA on a fix right now, unfortunately.

                    • Allow Register-PSRepository to persist credentials

                      NuGet feeds allow security around both listing/retrieving packages as well as pushing packages. NuGet.exe and other clients further allow you to persist credentials for listing/retrieving packages using the "nuget sources" command. (https://docs.nuget.org/consume/command-line-reference#sources-command)

                      This persistence is important for two reasons:

                      1) When you push a package to a secured NuGet feed, NuGet clients generally do a list/read operation first. That list/read operation doesn't contain any API key that you pass along in the push operation. In order for a push to succeed with an API key, you also need to have credentials set for the read operation. You can…

                      7 votes
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        1 comment  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
                      • PowerShell ISE VariableExplorer

                        Votes from Connect: 6

                        Original Date Submitted: 10/16/2015 2:00:41 PM

                        Description:
                        ********Contact Information********
                        Handle: Gimli92
                        Site Name: PowerShell
                        Feedback ID: 1907258
                        ***************************************

                        Problem Description:
                        It would be nice to have a built in VariableExplorer in order to see and browse through all variables of the current PowerShell session.

                        Product Studio item created by Connect Synchronizer due to creation of feedback ID 1907258 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1907258).

                        Repro Steps:

                        Internal BugId: 15901

                        52 votes
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          2 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                        • ISE should provide an option to restore previously opened files at startup

                          When ISE starts up, it should by default (make that configurable: always, prompt, never) restore all files that were open in the previous session.

                          52 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            4 comments  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                          • Bug: DSC Decryption across Servers not Working

                            On 2 Fully Updated Windows Server 2016 Machines running and provisioned from Azure I have created a Pull Server Configuration. I have created the DSC Signing Certificate using a custom template on a Enterprise Root CA which has worked for 2012R2 nodes and also tested using xDSCUtils New-xSelfSignedDscEncryptionCertificate. Using the same Certificate to Compile and Execute the MOF on the same Computer works, it is only if you compile on one and execute on another that the problems arise.
                            I kept getting errors when passing in credentials. I therefore wrote a tiny custom DSC Resource that Displays the Password as…

                            1 vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              investigating  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                            • Execute indepenent dsc steps in parallel

                              Votes from Connect: 3

                              Original Date Submitted: 6/8/2015 2:40:45 PM

                              Description:
                              ********Contact Information********
                              Handle: aL3891
                              Site Name: PowerShell
                              Feedback ID: 1411231
                              ***************************************

                              Problem Description:
                              At the moment all dsc resources are executed serially. given that dependencies are allready specified, it would in theory be safe to execute steps in parallel.

                              I'm guessing this is planned at some point but i could really use a way to enable parallel execution because I'm using dsc to spin up test environments with a bunch of services and having those being set up in parallel would speed things up considerably.

                              Product Studio item created…

                              27 votes
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                investigating  ·  1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                              • [Bug] Install-Module -Force prompts for user input when NuGet-anycpu.exe is not present

                                Steps to reproduce:

                                1. Install WMF5 RTM on a fresh Windows 2012 R2 system
                                2. Open an Administrator PS prompt and run "Install-Module Pester -Force"

                                Expected result: The -Force parameter causes the NuGet client to be installed without user intervention.

                                Actual result: The following message is displayed:

                                NuGet-anycpu.exe is required to continue.
                                PowerShellGet requires NuGet-anycpu.exe to interact with NuGet based galleries. NuGet-anycpu.exe must be available in
                                'C:\Program Files\PackageManagement\ProviderAssemblies' or
                                'C:\Users\Administrator\AppData\Local\PackageManagement\ProviderAssemblies'. For more information about NuGet provider,
                                see http://OneGet.org/NuGet.html. Do you want PowerShellGet to download NuGet-anycpu.exe now?
                                [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):

                                The MSDN…

                                7 votes
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  4 comments  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
                                • install-package policy execution

                                  To install packages with package manager it's necessary to set the execution policy. It's not said in the API, and I think is not trivial for someone who is learning poershell. In fact if you don't set the policy, you can install packages, there is not error neither feedback about it is not being really installed, and when the process finishes you can see the status as installed whe you do get-package <package-name>. It is very confusing

                                  3 votes
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    2 comments  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Powershell (self) update

                                    It would be very helpful if we could update PowerShell to newest version through PS package manager or OS included script - with all dependencies and prerequisites checks.

                                    7 votes
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      1 comment  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →

                                      This is definitely something we’re thinking about and working towards. The question becomes whether it’s “good enough” to update all the built-in modules (like MS.PS.Utility or MS.PS.Management) via PowerShellGet or if we need to actually update PowerShell itself.

                                      As we work on PowerShell Core on GitHub (https://github.com/powershell/powershell) we’re beginning to think about how more engine work might be abstracted into individual modules (which, again, could be updated async from the Gallery).

                                      That being said, there also is probably some value in installing PowerShell Core all up via “Install-Package” or “Update-Package”. Given that PS Core is fully side-by-side enabled, you could slap down a new version of PowerShell Core next to the one from which you’re actually running PowerShell Core.

                                      At the same time, updating Windows PowerShell (the Windows-only edition of PowerShell that sits on top of the full, .NET Framework) from within Windows PowerShell is significantly trickier…

                                    • Please add Management Framework v4 to the Update Catalog website

                                      Management Framework v5 is already available on the Update Catalog website and can be manually imported into a private WSUS instance for distribution (via WSUS or SCCM.) But v5 requires WMF v4 to be installed first.

                                      If WMF v4 was available in the Update Catalog then it could be imported into our private WSUS instance - and then we could deploy the WMF v4 as a prereq in the same reliable manner that we will be deploying WMF v5 to enterprise workstations.

                                      Please add WMF v4 to the Update Catalog website.

                                      7 votes
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Multiple ConfigurationNames Results In Failure During Pull

                                        When multiple configurations names are specified in LCM configuration the pull fails get obtain any configuration.

                                        LCM Config Example

                                        ConfigurationRepositoryWeb HillIntl-Pull
                                        {
                                        ServerURL = "http://server1:8080/PSDSCPullServer.svc";
                                        AllowUnsecureConnection = $true;
                                        RegistrationKey = "aaaa333-6c83-4636-a0cb-39b88a968849";
                                        ConfigurationNames = @('BaseConfig','WebServer');
                                        }

                                        Resulting errors

                                        Job {C7312E94-D405-11E5-80B5-00155D086627} :
                                        Message UpdateMetaConfig is not a valid value for GetActionResponse.
                                        HResult -2146233087
                                        StackTrack at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
                                        at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
                                        at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()

                                        Job {C7312E94-D405-11E5-80B5-00155D086627} :
                                        This event indicates that failure happens when LCM is trying to get the configuration from pull server using download manager NULL. ErrorId is 0x1. ErrorDetail is A generic exception occurred during the…

                                        6 votes
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          7 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →

                                          Thanks for the feedback Daniel. We are looking into the issue and will either get back to you with any follow-up questions or create a bug and fix the issue.

                                          Thanks for helping make DSC better!!
                                          MarkG

                                        • partial

                                          Hi all,
                                          I am using DSC partials to create role-based architectures with Azure virtual machines.
                                          When switching to Windows 2016 (everything works great on Windows 2012 R2), I get errors when DSC is compiling the MOF.
                                          The idea is that I have multiple partials that contain the same Windows Feature installation, because it's needed for a certain roles. When I apply more roles on the same machine, the partials need to merge. So I have one partial that contains this:
                                          WindowsFeature DotNetFrameworkRole1
                                          {
                                          Name = 'AS-NET-Framework'
                                          }
                                          and another partial that contains this:
                                          WindowsFeature DotNetFrameworkRole2
                                          {
                                          Name = 'AS-NET-Framework'
                                          } …

                                          1 vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)

                                            We’ll send you updates on this idea

                                            investigating  ·  1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1 3 4
                                          • Don't see your idea?

                                          Feedback and Knowledge Base