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…

    8 votes
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  2. get-computerinfo typo in CsPhyicallyInstalledMemory (should be Phy[s]ically)

    get-computerinfo typo in CsPhyicallyInstalledMemory (should be Phy[s]ically)

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  3. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  4. Powershell Ghost Error Messages

    How can I get to discuss my issue with a human being regarding Powershell creating Ghost Error messages similar to what I started out but still is bug of some kind. During my testing, my script coding was modified to work properly. How may I rid myself from these Ghost Error messages? How can i connect up with a Microsoft Powershell Individual with the correct expertise?

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  5. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  6. "Open Powershell window here" broken if file path contains an exclamation point

    If I Shift+RightClick and select "Open PowerShell window here" in a folder that starts with an exclamation point, PowerShell will open, but it won't open at the desired path.

    Example: C:\Users\admin\Documents\!testfolder\

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  7. Bug: New-Item Junction creates bad reparse points when pointing at SMB shares

    Creating directory junctions with "cmd /c mklink" fails when pointing at network shares, claiming it only works with local volumes. PowerShell happily creates the junction, but the result is unusable as child items cannot be enumerated.

    PS E:\> new-item -Name testlink -Value \\localhost\c$ -ItemType Junction

    Directory: E:\

    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    d----l 2/28/2019 1:05 PM testlink

    PS E:\> dir .\testlink\
    dir : The filename, directory name, or volume label syntax is incorrect.
    At line:1 char:1
    + dir
    + ~~~
    + CategoryInfo : ReadError: (E:\testlink:String) [Get-ChildItem], IOException
    + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  8. NetAdapter Module and "Network Configuration Operators"

    This seems too obvious to have escaped Microsoft's attention, but I haven't seen anyone else mention it, so here goes:

    Users in the "Network Configuration Operators" local group who (once elevated) may change network configuration via the gui or netsh, may not be able to perform the equivalent actions using PowerShell cmdlets.

    Specifically, I have not been able to enable/disable network adapters using the Enable-NetAdapter and Disable-NetAdapter cmdlets in such contexts, and have had to use the context menu in "Network Connections" or "netsh interface set interface" instead.

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  9. Get-RDRemoteApp truncates the Alias name with ...

    list entire alias or provide option for column widths>

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  10. We need: Get-VpnConnectionRoute

    How do we list routes added with Add-VpnConnectionRoute?
    We need a Get-VpnConnectionRoute!

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  11. Add-AppxPackage (Chef, WinRM) - Errors - Message: Contact Microsoft Customer Support Services

    Sorry if this is the wrong place, I created an issue https://github.com/chef/chef/issues/7765 but I am not sure its an issue with Chef.
    I have also created an issue https://github.com/PowerShell/PowerShell/issues/8148 .
    I am not very familiar with Powershell sorry, so I am unable to replicate without Chef (If I knew how it would be handy to try and replicate with pure WinRM).

    Steps to reproduce
    ------------------
    In Chef
    ```powershell
    cd C:/Test
    Add-AppxPackage Example_1.0.0.0_x64.appx -DependencyPath "Dependencies\\x64\\A.appx","Dependencies\\x64\\B.appx","Dependencies\\x64\\C.appx"
    ```
    This is trying to install an appx for a standard user. I believe Chef uses WinRM to run the commands.

    Expected behavior
    -----------------
    ```
    App…

    3 votes
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  12. Running Stop-Website on windows 2016 server with powershell 5.1 and servermanagerworflows 3.0 is very slow (7 minutes)

    Running Stop-Website on my windows 2016 DEV server with powershell 5.1 and servermanagerworflows 3.0 is very slow (7 minutes) but is super fast when doing it directly from IIS and on UAT server with same configuration. The command is executed locally on the machine (not remotely)

    1 vote
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  13. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  14. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  15. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  16. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  17. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  18. 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
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  19. SendMail needs ReplyTo parameter

    This is a standard SMTP option and glaring oversite in PowerShell.

    2 votes
    Sign in
    (thinking…)
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  20. 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
    (thinking…)
    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