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.
  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. PowerShell needs to support right-click copy & paste like a modern shell/terminal interface

    Support inline right-click copy and paste for PowerShell. Although this may be an issue specific to PowerShell, MobaXTerm on Windows supports it just fine, so either PowerShell or Windows Terminal is doing something wrong.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  2. Run command as administrator in non administrative session

    Similar to "sudo !!" in linux, I'd like a way to run commands that require elevation without having to open a new PowerShell session as admin.

    Let me type the command then see a UAC prompt or ask for the password.

    This would mostly just apply to a local Windows machine.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  3. Are the Name and/or ProcessName properties of Get-Process wrong?

    The Name and the ProcessName properties of the Get-Process, Stop-Process and Wait-Process CmdLets seems to use the wrong process names compared to the Win32_Process WMI class and other process related tools such as Windows task manager.
    Where WMI and task manager lists task names like Notepad.exe or Calculator.exe, Get-Process returns just "Notepad" or "Calculator" and Stop-Process requires me to specify these shortened names too.
    I understand that I can get the full name of the executable by specifying the -FileVersionInfo with Get-Process but it still doesn't allow me to search for a process using it's real process name.

    Couldn't at…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  4. add -showprogress in copy-item, move-item

    When copying large directories (or large single files) it would be nice to have progress available, so I can judge how long it will take. Adding -ShowProgress would be fantastic.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  5. Modules not recognized in Powershell 5.1

    I recently did a fresh install of Windows 10 Pro. After some time I recognized that Ctrl-R (back-i-search) did not work anymore. I tried to follow instructions of #350 to resolve the problem. But when I tried to call Get-PSReadLineOption or Install-Module I got errors.

    I also tried deleting the whole powershell folder c:\Windows\System32\WindowsPowerShell\v1.0\ and ran sfc /scannow but still ctrl-r is not working.

    Environment

    ```
    Windows build number: Microsoft Windows [Version 10.0.18363.592]
    Powershell Version (if applicable):
    Major Minor Build Revision


    5 1 18362 145
    ```

    Steps to reproduce

    Install-Module

    Expected behavior

    cmdlet Install-Module at command pipeline position 1
    Supply…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  6. The Option to Display PS Window Name

    There is the time that we need to open more than one PowerShell windows at a time and run different CMDLETs for different purposes.
    So if there is the option to show up the purposes of different PS window, it will greatly help us distinguish and find out the currently required PS window.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  7. Please add progress bars on taskbar (with TaskbarItemInfo.ProgressValue) to Write-Progress

    It would be great to have not only in-window progress bar for my scripts, but the green bar filling up my taskbar as I can see in Copy and other operations. It may be just something like -taskbar... parameter, maybe additionally fitted with ProgressState.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  8. When running exe in scriptblock antimalware executable gets triggered

    I'm attempting to run an executable remotely on a machine that needs updating. Whenever the exe is called, Antimalware Service Executable pops up on the remote machine for a moment, and then nothing else happens.

    Code is attached. Unsure if this is user error/known issue/isolated bug

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  9. Start-Sleep seconds cpu usage

    The following causes sleep to not sleep at all

    Start-Sleep -Seconds 0.5

    Seems anything < 1.0 is considered to be zero

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

    18 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  11. ANSI escape code problem with Read-Host

    When using an ANSI escape code as part of the Read-Host prompt within a script, it changes the default state.

    Note: to test, paste the script block into the console (not ISE)

    Compare:
    $esc = [char]27
    $bold = "$($esc)[1m" #sets text to bold
    $norm = "$($esc)[0m" #reset
    Read-host "Test Entry$($bold)test"
    write-host "test"
    write-host "$($norm)test"
    write-host "test"

    To:
    $esc = [char]27
    $bold = "$($esc)[1m"
    $norm = "$($esc)[0m"
    write-host "Test Entry$($bold)test"
    write-host "test"
    write-host "$($norm)test"
    write-host "test"

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  12. Invoke-History with Get-Content -wait does not produce any output

    Use Get-Content -wait to follow a file as it is being written (such as a log file)

    Terminate the execution with ctrl-c.

    Execute Invoke-History to execute the previous command again.

    No output is displayed, neither existing file content nor new content.

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  13. "Open PowerShell window here" broken if file path contains a single quote

    If the current directory, or any of its parent directories, contains a single quote in its name, doing "Open PowerShell window here" in it results in the following:

    The string is missing the terminator: '.

    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

    PS C:\WINDOWS\system32>

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  14. We need: Get-VpnConnectionRoute

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

    9 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  15. Jupyter notebook kernel

    A Microsoft generated and supported kernel for the Jupyter Notebook/Lab users. There is one a fellow did up and it covers the basics but doesn't have auto-completion in the IDE, errors on some things, doesn't get updated much, etc.

    I use Jupyter to teach and getting a full on Microsoft supported kernel would be great.

    2 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  16. AzureAD cmdlets vs MSOL cmdlets

    I am finding that the AzureAD cmdlets do not show me the same list of attributes for a user as the MSOL cmdlets you are deprecating. For example; our sharepoint people need to see the PreferredDataLocation value for content controls, this was available in MSOL and not easily in AzureAD. (I have included 2 user exports to show you what I mean) How do I make the AzureAD cmdlets do what MSOL does?

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  17. Clear-Disk is failing without error.

    Clear-Disk is not un-initialising a disk, I go to run the initialize-disk command immediately after and get the error that the disk is already initialized. How do I solve this?

    3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  18. How do you upgrade powershell 5.0 to 5.1 on Windows 10 LTSB 10240. I cannot see how to do this?

    How do you upgrade powershell 5.0 to 5.1 on Windows 10 LTSB 10240. I cannot see a 5.1 version because all the articles say that Windows 10 already comes with 5.1 but not in LTSB version 10240?
    Thank you

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  19. Outlook Itemadd

    calendar = ns.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderCalendar);

    appointments = calendar.Items;

            appointments.ItemAdd += new Microsoft.Office.Interop.Outlook.ItemsEvents_ItemAddEventHandler(appointments_ItemAdd);
    

    I can use the C# source code to add ItemAdd event, how to do the same thing in powershell?

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  20. Start-Transcript causes skipped records when passing SqlDataReader object to another function

    Encountering an issue with Start-Transcript, SQLDataReader and Passing it to a function for processing. This occurs in Powershell 6, started in 5.1, was not present in Windows Powershell 3 (Windows Powershell 4 has issues passing the SqlDataReader object to a function anyway).

    When you call a function within a Start-Transcript block, and that function then fills a SqlDataReader object, and then passes it onto another function, it increments the record a number of times, as if calling the read() method 7 or 8 times. This causes a number of issues, firstly, a lot of data is skipped for processing, secondly,…

    1 vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base