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…

    9 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. Brackets Treated As Special Characters In Single Quotes

    # Steps to reproduce

    In File Explorer on an NTFS volume, create the file: [abc].txt

    Following this run:

    PS> ls '[abc].txt'

    # Expected behavior

    Directory: C:\Users\Dave

    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    -a---- 2019-05-06 12:07 AM 0 [abc].txt

    # Actual behavior

    No output displayed.

    # Environment data

    Name Value
    ---- -----
    PSVersion 5.1.17763.316
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.17763.316
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

    # Additional Cases and Information

    The file name can be displayed using tab completion, but the brackets are preceded by back ticks, which indicates that Windows can see…

    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 →
  3. PowerShell tabs

    Having the ability to open new PowerShell windows in tabs would be very useful.

    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 →
  4. LDAP broken when using Add-ADGroupMember with parameter MemberTimeToLive

    Hi,
    I've wanted to introduce TTL in AD group membership. I've managed to add me to group and after TTL has finished I've been removed. Checked in GUI, via get-adgroup -Identity '***' -ShowMemberTimeToLive -Properties member | select -expand member .
    But when I tried checking with $userGroups = Get-ADGroup -LDAPFilter ("(member:1.2.840.113556.1.4.1941:={0})" -f $adUser.DistinguishedName) or Get-ADUser -Filter "memberOf -RecursiveMatch '$($adGroup.DistinguishedName)'" -SearchBase $($adUser.DistinguishedName) I've got information that I'm still a member of group. Is it bug in LDAP or is there some kind of parameter which is kept?

    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. 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?

    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 →
  6. AGPM import from production

    Is there a cmdlet to import Controlled GPO from production for already controlled GPOs? Looking at a script that will import from production daily and report changed GPOs.

    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. Remotely invoking Get-Item on a registry path displays values from the local machine instead

    Invoke-Command -ComputerName "ComputerB" -Credential $cred -ScriptBlock{Get-Item "HKLM:\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName"}

    Hive: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName

    Name Property PSComputerName
    ---- -------- --------------
    ActiveComputerName ComputerName : ComputerA ComputerB

    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. New-Object : Cannot find type [System.Windows.Forms.OpenFileDialog]: verify that the assembly containing this type is loaded

    From within PS ISE v5.1, this works
    $file_to_fetch = New-Object System.Windows.Forms.OpenFileDialog
    $file_to_fetch.InitialDirectory = "c:\users\" + $env:USERNAME
    $file_to_fetch.Filter = 'XML|*.xml'
    $null = $file_to_fetch.ShowDialog()

    return $file_to_fetch.FileName

    From within Visual Studio Code, I'm getting an assembly error
    New-Object : Cannot find type [System.Windows.Forms.OpenFileDialog]: verify that the assembly containing this type is loaded.

    Not sure what assembly I need to ensure is loaded

    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. Test-ADServiceAccount -Identity MSA1 returns "WARNING: Test failed for Managed Service Account MSA. If standalone Managed Service Account, t

    Dear Friends,
    I am running all commands in windows powershell as an administrator.

    I am trying to configure gMSA on win 2016 server. I am able to run the below command to create the gMSA.

    New-ADServiceAccount -Name "rassonline" -ServicePrincipalNames "host/rassonline", "host/rassonline.omnitel.it" -PrincipalsAllowedToRetrieveManagedPassword "rassonlineHosts" -DnsHostName "rassonline.omnitel.it"

    After this I am running

    "Test-ADServiceAccount -Identity rassonline"

    Getting the below warning as the result of execution of above command.

    "WARNING: Test failed for Managed Service Account MSA. If standalone Managed Service Account, the account is linked to another computer object in the Active Directory. If group Managed Service Account, either this computer does not…

    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!

    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 →
  11. 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 →
  12. 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 →
  13. 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 →
  14. 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 →
  15. "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 →
  16. 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 →
  17. 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 →
  18. 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 →
  19. 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 →
  20. 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 →
← Previous 1 3 4 5 21 22
  • Don't see your idea?

Feedback and Knowledge Base