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. Compiling large number of DSC MOF files is slow

    We use logic to dynamically compose a ConfigurationData structure and pass it to the configuration. This logic executes quickly. Calling the configuration generates more than 5,000 MOF files for unique nodes. The process takes 1.5 hours on modern server-class hardware with 16GB RAM. Also, the MOF files are all created at the end of the process, rather than one-at-a-time throughout the process. This causes high memory usage. Please optimize the PSDesiredStateConfiguration module to generate large quantities of MOF files more quickly. This issue adds significant delay to the DSC pipeline.

    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

      5 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
    • Curated Module Lists

      The PowerShell gallery should allow users to create "lists" of modules (think of it as an Amazon wish list).

      A user could create a "favorites" list and add modules and scripts to it to keep track of their favorites over time (maybe even "subscribe" to notifications of new releases of things on the list).

      A user could also create a "user management modules" list or a "stretching PowerShell's limits" list or a "should have been in the box" list, or a "things I use in my prompt" list ...

      But most importantly, users should be able to SHARE those lists,…

      10 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

        survey  ·  0 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
      • Bug: Get-DscConfigurationStatus doesn't show all resources/configurations

        We started to use results from Get-DscConfigurationStatus in our monitoring (SCOM) and while analyzing the results we noticed that some partials are not showing up in the results of this command even though tests/set/get is performed on the target node. After analyzing different methods we found out that:

        * MOF documents generated in C:\Windows\System32\Configuration\ConfigurationStatus seem to limit the results to ~40 last items in DSC configuration
        * Get-DscConfigurationStatus and Test-DscConfiguration -Detail all use the same source of information, thus provide same, truncated output
        * The only reliable source of information is details.json file generate when -Verbose output is requested, but…

        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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
        • Allow Environment Variable as default value for function parameter.

          When defining a function, I would like to use an environment variable as the default value. If the environment variable exists and has a value that value will be used. For example,

          function Get-Info ([Alias("name")] [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [string] $projectName = $env:Project_Name)
          {
          }

          Instead of having to passing in the Project Name for each call I would like to store it in an environment variable. When I do it would allow me to call Get-Info with no parameters and the value in the environment variable would be used. If the environment variable does not exist or is empty the user…

          12 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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
          • BUG: Set-Clipboard -AsHtml puts invalid CF_HTML on clipboard with non-ASCII text

            Repro with PowerShell 5.1.14986.1000:
            1) Set-Clipboard -AsHtml "abc"
            2) Paste into Word
            3) Text appears correctly as: abc
            4) Set-Clipboard -AsHtml "àbc"
            5) Paste into Word
            6) Text appears incorrectly as: ࢣ

            Appears CP 1251 text is being put in the CF_HTML, not UTF8.

            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

              1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
            • No StdOut output on console until second object

              Let me explain. I have a script that is collecting data, and I send it to StdOut by simply piping it into Select (but problem also happens if I add a ForEach loop and simply make [PSCustomObject] objects). Then my script loops to the next server. That output is not displaying on the screen. All is not lost though, when the script loops to the second server and displays both the first and second will now display. When the third server finishes it displays OK, as does the 4th.

              So it looks like it's just the first one. Normally I…

              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

                3 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
              • Multi Line description passes Test-ScriptFileInfo but fails to publish

                When I tried to publish the script https://raw.githubusercontent.com/SQLDBAWithABeard/DataScienceVM/master/New-WindowsDataScienceVM.ps1 it fails with missing description but passed the Test-FileScriptInfo prior to me trying

                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

                  3 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
                • Add KeepCDC flag to Smo.Restore class

                  Gets or sets a Boolean property value that specifies whether to maintain a change data capture configuration during a restore operation.

                  4 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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                  • Add a "Comment these lines" action to the right-click context menu of PowerShell ISE

                    Much like how other IDEs provide similar functionality, an ability to quickly comment/uncomment chunks of code through the context menu would be a valuable addition to future iterations of the already fantastic ISE.

                    With one line selected by the user a # is fine, with multiple lines selected, a <# #> would be preferred.

                    I understand there is a...very unusual (quite frankly) keyboard shortcut to accomplish something similar, but I believe there is significant value in having an easy to access method of accomplishing this.

                    4 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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
                    • ConfigurationAST should include resource modules being imported

                      The ConfigurationAST added in v4 for PowerShell DSC does a good job at providing resource configuration details. However, to determine what modules are being imported, we should still use the keyword AST to find the resource module names from the Import-DSCResource command. While this is a workaround, it will be easier if ConfigurationAST can provide this information for simplicity.

                      13 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

                        survey  ·  0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                      • DynamicParam should recognize quoted string arguments (at least single quoted)

                        Using PSVersion 5.1.14393.576

                        Allowing quoted literals would be useful to allow argument values spaces.

                        Function Show-DynamicParam {

                        [CmdletBinding()]
                        Param(
                        [Parameter()]
                        [string]
                        $Test
                        )

                        DynamicParam {
                        if ($Test -ine 'test') {
                        throw "Does not work. Value was '$Test'"
                        }

                        $ParameterDictionary = New-Object System.Management.Automation.RuntimeDefinedParameterDictionary
                        $Parameter = New-Object System.Management.Automation.RuntimeDefinedParameter('works', [switch], [System.Management.Automation.ParameterAttribute]::new())
                        $ParameterDictionary.Add('works', $Parameter)
                        return $ParameterDictionary
                        }

                        Process {

                        }

                        }

                        # when using an argument literal the -works switch appears
                        Show-DynamicParam -Test test -works

                        # when using a string literal the value of $Test is 'test' WITH the quotes, see $Error[0]
                        Show-DynamicParam -Test 'test' -

                        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

                          0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                        • WMF 5 - Invalid callee when using variant wrapper

                          If I use the Runtime.InteropServices.VariantWrapper in WMF5 I get errors trying to interact with the system center orchestrator 2012 com object.. (x86)

                          IE if I do this without WMF5:

                          $oisMgr = new-object -com OpalisManagementService.OpalisManager
                          $oHandle = New-Object Object
                          $handle = New-Object Runtime.InteropServices.VariantWrapper($oHandle)
                          $oisMgr.Connect($Username, $Credential.Password, [ref]$handle)

                          It works fine, if I run with WMF5 I get an Invalid Callee Error.

                          OS is windows 2012.. thinking about it as I write this, has the 'Object' type changed at all between the two?

                          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

                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                          • Compress-Archive throws "OutOfMemory" on large folders

                            When using Compress-Archive on a very large folder, I am getting a "OutOfMemory Exception" error. This also happens when I pipe the folder from Get-ChildItem.

                            PS E:\> Compress-Archive -Path \\servername\downloads\foldername -DestinationPath e:\Foldername_bef
                            ore-12-01-2016.zip -CompressionLevel Optimal
                            Exception calling "Write" with "3" argument(s): "Exception of type 'System.OutOfMemoryException' was thrown."
                            At
                            C:\windows\system32\windowspowershell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:809
                            char:29
                            + ... $destStream.Write($buffer, 0, $numberOfBytesRead)
                            + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
                            + FullyQualifiedErrorId : OutOfMemoryException

                            PS E:\> $Psversiontable

                            Name Value
                            ---- -----
                            PSVersion 5.0.10586.117
                            PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
                            BuildVersion 10.0.10586.117
                            CLRVersion 4.0.30319.34209
                            WSManStackVersion 3.0
                            PSRemotingProtocolVersion 2.3
                            SerializationVersion 1.1.0.1

                            PS E:\>

                            4 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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                            • Create symbolic link to a shadow copy using New-Item

                              I'm able to make a symbolic link to a shadow copy using CMD mklink and kernel32.dll.CreateSymbolicLink
                              But I'm not able to do this using PS>New-Item
                              E.g.:
                              New-Item -Path c:\temp\SL1 -ItemType SymbolicLink -Value \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy7\

                              I get an error saying the path doesn't exist (that is the VSS path)

                              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

                                0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                              • Allow DSC Reports to include ResourcesNotInDesiredState that were corrected during a consistency check

                                Currently if a node is set up to ApplyAndAutoCorrect, when the report is sent back to the report server, there is no reference to any resources that were out of desired state at the time of the consistency check. DSC will just put them back in desired state without reporting what it did. For compliance reasons, we would like to be able to query the report server to see if any resources had to be put back into desired state.

                                21 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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                                • New-ADuser fails when the path contains brackets.

                                  If you have an OU name '1) Accounts' so the whole path is something like:
                                  OU=1) Accounts,OU=sitename,DC=companyname,DC=com
                                  New-ADUser -path will fail.
                                  A workaround is to create the user and then move them later using something like:
                                  Get-ADUser -Identity newuser | Move-ADObject -TargetPath OU=1) Accounts,OU=sitename,DC=companyname,DC=com

                                  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

                                    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Jobs hanging when using PSDrives with credentials

                                    As noted here (with a full example): http://stackoverflow.com/a/41118870/1987746

                                    There seems to be an issue with using PSDrives with credentials in PowerShell jobs. If the PSCredential object is created within the job, it gets stuck in the running state even after all actions have completed. However, if the same PSCredential object is passed to the job as a parameter, it completes within 1 second.

                                    In PowerShell 4 the job will stay "running" indefinitely. In PowerShell 5.1, the job will run for ~180 seconds and then complete.

                                    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 →
                                    • Get-Service throws wrong exception if remote host is offline

                                      Get-Service returns exception as "Cannot find any service with service name" even if we give an offline/not existing host as argument for -ComputerName parameter

                                      4 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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Start-DscConfiguration over secure WinRM (HTTPS / 5986) without needing to provide the Cim-Session

                                        referring to my post here. http://stackoverflow.com/questions/41567036/start-dsc-configuration-securely-usessl-without-needing-to-provide-the-compute

                                        Having the ability to continue using the ConfigurationData with multiple nodes and use a secure session (WinRM over 5986)

                                        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

                                          0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                                        • BUG: PE Engine gets StackOverflowException if cmdlet Remove-Item encounters foldername = ALT+255

                                          If you try to delete a folder (not file) that is named with the invisible ALT+255 character, the PE engine will crash with StackOverflowException. This bug can temporarily be remedied by using cmd rmdir instead of Remove-Item -Recurse

                                          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

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

                                          Feedback and Knowledge Base