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…

    13 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 →
  2. 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?

    2 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 →
  3. 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…)
    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 →
  4. "Cannot load PSReadline module. Console is running without PSReadline."

    This is an error I get every time I open Windows PowerShell, but not only that, Powershell-Get and PackageManagement are also broken in these ways:

    Install-Module : The 'Install-Module' command was found in the module 'PowerShellGet', but the module could not be loaded. For more information, run 'Import-Module PowerShellGet'.

    Get-PackageProvider : The 'Get-PackageProvider' command was found in the module 'PackageManagement', but the module could not be loaded. For more information, run 'Import-Module PackageManagement'.

    My OS is Windows 10 Pro Insider Preview (Build 18932). I looked for solutions but I really could not find any.

    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. Bug - Blocking psscriptpolicytest Causes PowerShell to Crash

    Major 5 Minor 1 Build 18362 Revision 145

    For years blocking the psscriptpolicytest script via SRP had no effect whatsoever on PowerShell.

    Since the latest W10 1903 update, blocking psscriptpolicytest script is SRP causes PowerShell to crash.

    Windows 10 Pro
    1903
    18362.175

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

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

    Copying from the terminal with Ctrl+C and Ctrl+Shift+C and pasting it in notepad had different effects. To replicate, copy once with Ctrl+C and paste the output of say 'ls' in notepad and again try with Ctrl+Shift+C

    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. Bug? Invoke-RestMethod returns mis-cased json values for Boolean

    Perhaps a bug in Powershell using Invoke-RestMethod. When querying a particular API endpoint, the json data is expected to return a true/false value.

    When querying with Powershell Invoke-RestMethod, the value comes back as "True" or "False" (Capital first letter).

    When querying the same endpoint with curl, the value comes back as "true" or "false" (all lowercase).

    Not a huge issue, but the is confusing when trying to use a GET to determine the proper formatting for a future POST related to the value. The API endpoint is case-sensitive and doesn't like "True" when expecting "true".

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

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

    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 →
  10. BUG: Powershell .net class loads slow since MS-Security Update April 2019

    Since May 2019 Security Rollup for Windows Server 2016, access to .net object via powershell is very slow, when a powershell variable breakpoint is set in the powershell.

    For example loading speed of [System.Environment] takes over ten times with breakpoint set against no breakpoint set.

    Since the behavior only occurs with latest security updates installed (May 2019 (KB4494440) or June 2019 (KB4503267)) i think it is related to the update.

    Did some troubleshooting with procmon until now. For me it looks like when PSBreakpoint is set, there are multiple reads from HKLM\System\CurrentControlSet\Control\Session Manager\Environment\__PSLockdownPolicy can't repoduce this when there is no…

    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 →
  11. very ****** about something which worked correctly. very complicae ******

    very ****** about something which worked correctly. very complicae ****** SMB

    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. BUG: Add-DnsServerConditionalForwarderZone fails when using a private IP Address for MasterServers parameter

    BUG: Add-DnsServerConditionalForwarderZone fails when using a private IP Address for MasterServers parameter

    The MasterServers parameter should accept any valid IP address, regardless if it's public or private.

    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. 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…)
    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 →
  14. 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…)
    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 →
  15. 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…)
    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. 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…)
    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. 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…)
    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 →
  18. We need: Get-VpnConnectionRoute

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

    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 →
  19. 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…)
    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. 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…)
    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 →
← Previous 1 3 4 5 21 22
  • Don't see your idea?

Feedback and Knowledge Base