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. Bug: Powershell Get-Help does not work with Exchange Online cmdlets

    We've been lucky, from what I'm gathering from web searches! Until December last year, Exchange Online Powershell cmdlet help was available using Get-Help in the shell. However, after the Christmas break, the only response we get is:

    Get-Help : Exception calling "Invoke" with "0" argument(s): "Cannot find path '' because it does
    not exist."
    At line:1 char:1
    + Get-Help Get-Mailbox
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Get-Help], MethodInvocationException
    + FullyQualifiedErrorId : CmdletInvocationException

    It's the same issue irrespective of the cmdlet.

    Consequently, I'm forced to contend with painful searches of the documentation website for information of the relevant cmdlets.

    Raised…

    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 →
    • Bug: Ps1 script file with extra extension gets deleted when called from CMD

      When calling PowerShell from CMD and specifying a script file that contains an extra "extension" (extra dot) in the base name, the script is not run but the file is mysteriously deleted:

      Example (run in CMD):

      powershell -file c:\temp\script.txt.ps1

      The same issue when called like this:

      powershell -command "& c:\temp\script.txt.ps1"

      This has been reproduced by me and others on different machines with different paths.

      The same issue exists when called from inside PowerShell like this:

      . "powershell.exe" -file c:\temp\script.txt.ps1
      Start-Process "powershell" -Arg "-file, "c:\temp\script.txt.ps1"

      Note that these will work just fine:

      powershell -command "& 'c:\temp\script.txt.ps1'"
      powershell -command ";& c:\temp\script.txt.ps1"
      powershell…

      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 →
      • high CPU

        Found out when my CPU is high (99%-100) (i do set executionpolicy to remotesign/unrestricted also)
        When i run the PS script, it will ask for executionpolicy.
        but when i low CPU, it will just run the script.

        suspect value (executionpolicy remotesign) unable to pass thru to script.ps1 on time. so it prompt out everytime when CPU is high.
        do we have some setting to tune this. delay it, so that executionpolicy have more time to pass the value to script.ps1.

        ---------------------------------
        Script:
        $sourcefolder="D:\A743"
        $datenow = get-date
        $processdate = (get-date).Adddays(-3)

        get-childitem $sourcefolder -file | where-object { $_.lastwritetime -le $processdate } |…

        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 →
        • Kill a specific IIS request

          Sometimes there are single requests which are hanging in IIS.
          It would be good to kill such a single request without killing the whole process because that can cause a lot of time until a big web application is running again.

          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 →
          • Broken or Incorrect Powershell on Windows 10

            So I have Windows 10, in Windows optionalFeatures.exe Powershell is marked as version 2.0 in windows system32 is it version 1.0 and Windows Powershell HOST command says Version 5.1

            Despite the above information, my Powershell does not know how to do any commands such as 'install-module' or 'PSVerstonTable'
            I have a suspicion that my Powershell is somehow corrupted or the incorrect version that was manually installed previously.

            I have turned Windows PowerShell 2.0 OFF in Windows Features but Powershell remains and I can open and access it.

            I have looked for guides and help on how to do a clean…

            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 →
            • Add a -BreakawayFromJob parameter to the Start-Process cmdlet

              When you create a process with Start-Process, it joins the same Windows Job as the PowerShell session. There are times when you want to create a process that is in a new Windows Job. The CreateProcess API has a CREATE_BREAKAWAY_FROM_JOB process creation flag which does this.

              Please add a -BreakawayFromJob switch parameter to Start-Process which can be used to set this process creation flag.

              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 →
              • PS 5.1 Bug: Restart-Computer hangs PowerShell after completion when passing large array of ComputerNames

                when I call:
                Restart-Computer -ComputerName $lotsOfComputers -Force

                where: $lotsOfComputers is 20-150 other computers on the LAN in our AD environment

                This is the sequence of events: First, the command completes quickly, the expected computers reboot, and no errors are displayed. I can then type in the console exactly 1 new line of input and hit enter, after which the PowerShell console hangs for a long period of time (several minutes), possibly in correlation to the size of the array of computers. Once it begins hanging it does not register any new keyboard input onscreen during the hang (but it does…

                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 →
                • CircuitPowerShell

                  Microsoft should make CircuitPowerShell to further enable IoT like there is CircuitPython.

                  https://forums.adafruit.com/viewtopic.php?f=60&t=143726

                  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 →
                  • 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.

                    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 →
                    • Get-Credential does not support Smart Card user name hints

                      If you utilize Smart Cards with certificates that are not directly linked to users (no suitable user DN in Subject and no UPNs in SANs), you are able to link a single certificate to multiple accounts dynamically with the caveat that users need to provide explicit user name hints during logon in order to log on.

                      User name hints need to be enabled via GPO or registry settings ("X509HintsNeeded"), after which all standard credential dialogs in Windows support them, except PowerShell's Get-Credential. This effectively prevents using PowerShell remoting with such Smart Cards / certificates if different credentials are required.

                      In…

                      8 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 →
                      • Need a PowerShell version of tpmvscmgr.exe to manage TPM smart cards

                        We need a PowerShell version of tpmvscmgr.exe to manage TPM virtual smart cards.

                        The tpmvscmgr.exe tool 1) does not accept PIN, PUK and AdminKey numbers as arguments, these must be entered interactively in powershell.exe only, not ISE or with a pop-up, 2) cannot list currently existing virtual smart card ID strings, and 3) is somewhat crude in how it manages card lockout policies and unlocks.

                        This is needed not just for Windows clients, but also because Server 2016 Hyper-V supports virtual smart cards for guest VMs, such as for VDI scenarios.

                        We need to be able to pass in PIN,…

                        7 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 →
                        • Package PowerShell Classes in a Module

                          Object Oriented Programming seems to be supported now in PowerShell, but custom classes defined in modules don't seem to behave the way they should.

                          There only seem to be two consistent ways to make these work when importing a module that has classes defined:
                          1. Import the module, then run "using module ..." to make the classes available in the session. Alternatively, you can import the module with the using statement, but this isn't ideal (no versioning).
                          2. Add the class definition file(s) to the ScriptsToProcess attribute of the module. This isn't ideal either as it runs the scripts in…

                          30 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

                            2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                          • Create a SendTo-SysLog cmdlet and include it by default

                            Please include by default a SendTo-Syslog cmdlet to send log messages to UNIX, Linux and SIEMs.

                            If you were to add a syslog service role to send or accept syslog messages in a scalable way which integrated with the Windows event logs, that would be great too, but a cmdlet to just send UDP packets is easy enough to include in PoSh 5.1 right now.

                            Thanks!

                            22 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

                              6 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                            • Implement the && and || operators that bash has

                              Votes from Connect: 22

                              Original Date Submitted: 2/8/2013 8:32:38 AM

                              Description:
                              ********Contact Information********
                              Handle: antize
                              Site Name: PowerShell
                              Feedback ID: 778798
                              ***************************************

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

                              Problem Description:
                              Discussion about this at stackoverflow - http://stackoverflow.com/questions/563600/can-i-get-to-work-in-powershell

                              Jeffery Snover said to request it here so here I am :D

                              Here is a description of what they do -- http://www.gnu.org/software/bash/manual/bashref.html#Lists

                              An AND list has the form
                              command1 && command2

                              command2 is executed if, and only if, command1 returns an exit status of zero.

                              An OR list has the form
                              command1 || command2

                              command2 is executed if,…

                              68 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

                                2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                              • PowerShell version of DEVCON.EXE or Device Manager cmdlets

                                DEVCON.EXE can be used to install, uninstall, enable, disable, configure or query devices (as seen in Device Manager) from the command line. Here is the description:

                                https://msdn.microsoft.com/en-us/library/windows/hardware/ff544707(v=vs.85).aspx

                                To get DEVCON.EXE, you have to download the entire Windows Drivers Kit (WDK), which is 803MB in size, and, as I understand it, DEVCON cannot be legally redistributed or shared separately.

                                It would be good to have a PowerShell cmdlet to replace DEVCON that is either installed by default or available in the PSGallery.

                                Or just allow DEVCON.EXE to be downloaded separately from the WDK somehow, like through NuGet, PSGallery or anywhere.

                                Or…

                                7 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

                                  5 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                • PSScriptRoot in ps1 script in PSv3 is empty in ISE

                                  Votes from Connect: 13

                                  Original Date Submitted: 11/1/2012 3:56:26 AM

                                  Description:
                                  ********Contact Information********
                                  Handle: J Stangroome
                                  Site Name: PowerShell
                                  Feedback ID: 769359
                                  ***************************************

                                  Frequency: Always Happens
                                  Regression: I don't know if this issue existed previously

                                  Problem Description:
                                  In the PSv3 documentation, $PSScriptRoot is now an automatic variable that is populated for both modules and ps1 scripts. It works from PowerShell.exe but not from the ISE

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

                                  Repro Steps:
                                  1. Create a new script (eg c:\test.ps1) with the contents: gv PSScriptRoot
                                  2. From PowerShell.exe, execute…

                                  25 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

                                    8 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Missing trigger options in New-ScheduledTaskTrigger

                                    Votes from Connect: 3

                                    Original Date Submitted: 10/30/2014 5:41:25 PM

                                    Description:
                                    ********Contact Information********
                                    Handle: ulrichb
                                    Site Name: PowerShell
                                    Feedback ID: 1015225
                                    ***************************************

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

                                    Problem Description:
                                    New-ScheduledTaskTrigger offers just a subset of the trigger options. Things like "On an (event log) event", or "On workstation (un)lock" are missing.

                                    We just found ugly workarounds to add these (e.g. event log) triggers by using "schtasks.exe /create /xml" or using the COM "TaskScheduler" class.

                                    New-ScheduledTaskTrigger should allow specifying all options the Task Scheduler UI offers. As there already exists an XML representation of these…

                                    23 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

                                      2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                    • ConvertTo-Html incorrectly labels default single column

                                      ConvertTo-Html works as desired when the output contains two or more columns.

                                      ConvertTo-Html works as desired when the output contains only one column derived from a property that was explicitly named in the -Properties parameter.

                                      However, if a match string is used for the -Property parameter, or the -Property parameter is omitted (and presumably defaults to match string "*"), and the output contains only a single column, the column header incorrectly contains the match string instead of the name of the property.

                                      For example, this:

                                      $X = [pscustomobject]@{ Name = 'Joe' }
                                      ConvertTo-Html -InputObject $X -Fragment

                                      Results in this:

                                      <table> …

                                      12 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

                                        2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                      • Duplicate keys error with ConvertFrom-Json

                                        Votes from Connect: 5

                                        Original Date Submitted: 9/3/2014 2:35:32 AM

                                        Description:
                                        ********Contact Information********
                                        Handle: bvbutts
                                        Site Name: PowerShell
                                        Feedback ID: 962299
                                        ***************************************

                                        Frequency: Always Happens
                                        Regression: I do not know if this issue existed previously

                                        Problem Description:
                                        If you try to parse JSON with parameters that differ by case, eg. {"test":"some value","Test":"some other value"}, you get a duplicate keys error. However, case sensitivity among parameters seems to be a supported feature of JSON. Furthermore, jsonlint.com views this as valid JSON.

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

                                        Repro Steps:
                                        $x='{"test":"some…

                                        9 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

                                          2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Provide option to not encode HTML special characters in ConvertTo-Json

                                          Votes from Connect: 3

                                          Original Date Submitted: 9/5/2014 12:56:01 AM

                                          Description:
                                          ********Contact Information********
                                          Handle: LogicalDiagram
                                          Site Name: PowerShell
                                          Feedback ID: 963913
                                          ***************************************

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

                                          Problem Description:
                                          When passing strings through ConverTo-Json, HTML special characters are encoded. It would be valuable if there was an option to preserve the original string.

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

                                          Repro Steps:
                                          PS C:> "bob < jack" | ConvertTo-Json
                                          "bob \u003c jack"

                                          Expected Results:
                                          PS C:> "bob < jack" | ConvertTo-Json -NoEncoding
                                          "bob <…

                                          10 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 →
                                          ← Previous 1 3 4 5 20 21
                                          • Don't see your idea?

                                          Feedback and Knowledge Base