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. 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. "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 →
  3. 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 →
  4. 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 →
  5. 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 →
  6. 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 →
  7. 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 →
  8. 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 →
  9. 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 →
  10. 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 →
  11. 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
    $filetofetch = New-Object System.Windows.Forms.OpenFileDialog
    $filetofetch.InitialDirectory = "c:\users" + $env:USERNAME
    $filetofetch.Filter = 'XML|*.xml'
    $null = $filetofetch.ShowDialog()

    return $filetofetch.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 →
  12. 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 →
  13. 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 →
  14. 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 →
  15. 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…)
    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. 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 } | remove-item

    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 →
  17. "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…)
    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. 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…)
    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. 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…)
    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. Get-RDRemoteApp truncates the Alias name with ...

    list entire alias or provide option for column widths>

    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