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. Update-Help Cmdlet failing for the "SQLServer" module

    Update-Help Cmdlet failing for the "SQLServer" module - I’m caught up with the Windows 10 Insider update to version 14379 and after updating my SQL Server 2016 to July edition. But, I’m trying to run the “Update-Help -force”, and I’m getting errors with it.

    (See below error message)

    PS C:\WINDOWS\system32> Update-Help -Force
    Update-Help : Failed to update Help for the module(s) 'Microsoft.PowerShell.Operation.Validation' with UI culture(s)
    {en-US} : Unable to retrieve the HelpInfo XML file for UI culture en-US. Make sure the HelpInfoUri property in the
    module manifest is valid or check your network connection and then try the command again. …

    6 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 →
  2. The "online version" URL in Get-Help -ShowWindow should be a hyperlink

    When -ShowWindow is used with Get-Help (or the ? button is clicked in the ISE), one gets something like:

    RelatedLinks

    Online Version: <a rel="nofollow noreferrer" href="http://go.microsoft.com/fwlink/p/?linkid=289793">http://go.microsoft.com/fwlink/p/?linkid=289793</a>
    

    The URL should be clickable so that one gets the online version without the need to copy/paste the URL into the browser

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

    We’ll send you updates on this idea

    survey  ·  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  3. Bug: Transcript not logging Write-Output on remote session

    Hi
    Transcript not logging Write-Output or any other streams 1 data on remote session (wsmprovhost.exe)

    Example script:

    $TestScript = {

    Start-Transcript -path $env:TEMP\transcript.txt
    
    

    $DebugPreference = 2
    $VerbosePreference = 2
    $WarningPreference = 2
    hostname.exe
    Write-Host &quot;host&quot;
    &#39;directly&#39;
    Write-Output &quot;output&quot;
    Write-Verbose &quot;verbose&quot;
    Write-Warning &quot;warning&quot;
    Write-Debug &quot;debug&quot;

    Stop-Transcript
    Get-Content $env:TEMP\transcript.txt

    }

    This is logging everything successfully

    Invoke-Command -ScriptBlock $TestScript

    This is not logging "output", "directly" and "hostname.exe output"

    $RemoteServer = 'Myerver'
    Invoke-Command -ScriptBlock $TestScript -ComputerName $RemoteServer

    Output:

    Transcript started, output file is C:\Users\user\AppData\Local\Temp\transcript.txt
    Win10
    host
    directly
    output
    VERBOSE: verbose
    WARNING: warning
    DEBUG: debug
    Transcript stopped, output file is C:\Users\user\AppData\Local\Temp\transcript.txt


    Windows PowerShell transcript start …

    6 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 →
  4. Bug: JEA .psrc capabilities file selected from the wrong RoleCapabilities module folder

    With PSVersion 5.0.10586.63 on Windows 10 and Server 2016 TP4, when using Register-PSSessionConfiguration to create a new session endpoint using a .pssc file, and that .pssc file uses RoleDefinitions for the sake of Just Enough Admin (JEA), the wrong .psrc file from the wrong RoleCapabilities folder may be selected.

    It appears that, when registering the endpoint, the $env:PSModulePath folders are searched in alphabetical order for any module folder, no matter what the name, that happens to have a subdirectory named RoleCapabilities within it, and, when found, if a correctly-named .psrc JEA capabilities file is found, that .psrc file is used…

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

    We’ll send you updates on this idea

    3 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  5. Out-GridView should allow double click

    Votes from Connect: 3

    Original Date Submitted: 6/11/2015 1:17:30 AM

    Description:
    Contact Information
    Handle: Kevmar
    Site Name: PowerShell
    Feedback ID: 1419895


    Problem Description:
    Please allow a user to double click a line item to accept it.

    I use Out-GridView to present options to basic users of my scripts. One thing I see them try to do over and over again is to double click an item in the list. After a 3-4 tries, they find the OK button and click on that. This will help with ease of use and align better with people's expectations.

    Product Studio item created by…

    6 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 →
  6. Subfolder bug with command "copy-item c:\folder\ c:\folder2\ -recurse" when done more times

    Votes from Connect: 15

    Original Date Submitted: 11/28/2013 1:25:47 AM

    Description:
    Contact Information
    Handle: RoviLuca
    Site Name: PowerShell
    Feedback ID: 809855


    Frequency: Always Happens
    Regression: I do not know if this issue existed previously

    Problem Description:
    Hello,

    i'm using powershell 4.0 and unexpected behaviour happened when i ran the command : "copy-item c:\folder\ c:\folder2\ -recurse" and in the folder is contained another folder.

    after first run it completes correctly:
    source: c:\folder\temp\test.txt
    Destination: c:\folder2\temp\test.txt

    Done again "copy-item c:\folder\ c:\folder2\ -recurse" and:
    Destination: c:\folder2\temp\temp\test.txt

    Maybe that copy item finding an already existing temp folder, instead of skipping or rewriting, goes inside and…

    6 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 →
  7. get-content -wait does not follow a file

    Votes from Connect: 14

    Original Date Submitted: 7/8/2013 1:59:29 PM

    Description:
    Contact Information
    Handle: Serve Laurijssen
    Site Name: PowerShell
    Feedback ID: 792983


    Frequency: Always Happens
    Regression: Yes, this happens in previous released versions

    Problem Description:
    Consider the following situation:

    Theres one application writing to a file with the CLR object System.Diagnostics.Trace

    Windows powershell tries to follow the file with get-content "file" -wait

    But whenever a line is added to the file it wont show up in the powershell console.

    Would be nice if this was fixed as it makes downloading tools for this unnessecary

    Product Studio item created by Connect…

    6 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 →
  8. Add timeout parameter to Get-WmiObject

    Votes from Connect: 82

    Original Date Submitted: 2/19/2011 1:58:11 AM

    Description:
    Contact Information
    Handle: JHofferle
    Site Name: PowerShell
    Feedback ID: 645165


    Frequency: Sometimes Happens
    Regression: I don't know if this issue existed previously

    Problem Description:
    Get-WmiObject is commonly used to collect information from a list of remote computers. Most of the time this works correctly, but if WMI is broken on the remote system it can cause a script to hang.

    A workaround that implements a custom function was posted here:
    http://blogs.msdn.com/b/dmuscett/archive/2009/05/27/get2d00wmicustom.aspx

    Product Studio item created by Connect Synchronizer due to creation of feedback ID 645165 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=645165)

    6 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 →
  9. How to modify "Date" column in Windows Explorer

    In Windows Explorer there are two columns available: "Date modified" and "Date". I've tried both setting the .LastWriteTime and .CreationTime for files and it changes the date in the "Date Modified" column, but does not change the "Date" column.

    Is there a way to modify the "Date" column in Windows Explorer using Powershell scripting? I basically want to create a "touch" command that will affect BOTH "Date modified" and "Date" columns in Windows Explorer.

    Thanks!

    5 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. [datetime] type accelerator only uses en-US culture

    The [datetime] when used as a type accelerator only uses the en-US culture and therefore other date formats either error out or they are interpreted incorrectly, This makes using the ConvrtFrom-String difficult when adding type accelerators to automatically discover the property type from text. If we use the Get-Date command then the correct culture is used. It appears to be just the [datetime] type accelerator that is not consistent with this? Please fix!!

    5 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 →
  11. Start-Transcript does not capture user keyboard input when started from a script when ran under Powershell Version 5

    I have found after upgrading Windows Powershell from Version 4 to Version 5 that the transcript log file created by the Start-Transcript commandlet does not capture the users keyboard input....where it does capture user input when running in Version 4.

    Steps to replicate:


    1. Create a ps1 script with Start-Transcript and a Write-Host/Read-Host response. (Feel free to use the "script code" below)

    Start-Transcript C:\Temp\Test.log

    Write-Host "Enter your name: " -NoNewline
    $Name = Read-Host
    Write-Host
    Write-Host "You entered: $Name"


    1. Run the script on a machine with Windows Powershell 4 installed, review the Transcript log.


    2. Do the same on a machine with Windows…

    5 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 →
  12. Get-TLSCipherSuite does not output well-behaved objects (Get-TlsEccCurve too)

    Get-TLSCipherSuite does not output well-behaved objects.

    Test machine has PSVersion 5.1.14393.0 on the RTM eval version of Server 2016 Datacenter with the GUI desktop. Similar output with 5.1.14393.206 on Windows 10 Pro fully patched.

    The following command works as expected:

     Get-TlsCipherSuite | Format-Table Name
    

    But the following commands either output nothing or the wrong objects:

     Get-TlsCipherSuite | Select-Object Name
    
    

    Get-TlsCipherSuite | Where { $_.Hash -eq &#39;MD5&#39; }

    Sometimes, just running Get-TlsCipherSuite will output objects that have blank properties that should not be blank, such as with the following:

     Get-TlsCipherSuite | Format-Table Cipher,Hash,Exchange
    
    

    [Microsoft.WindowsAuthenticationProtocols.Commands.TlsCipherSuite]::new(&#39;TLS_PSK_WITH_AES_256_GCM_SHA384&#39;)

    When piping into Get-Member, we get the…

    5 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 →
  13. Add IsWindows to PS5.1 to allow cleaner code

    PowerShell for Linux and OSX added IsLinux, IsOSX, and IsCore (?). IsWindows was added for PowerShellCore.

    Can you add IsWindows to allow cleaner code to not have to assume if it is False for Linux,OSX,Core, it's full Windows (not nano), etc?

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

    We’ll send you updates on this idea

    survey  ·  1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  14. Make Cmdlets pick up app.config, especially binding redirects

    I can't believe this hasn't been resolved already.

    Surely adding assemblies to the GAC and mofiying machine.config is not a great solution.

    http://stackoverflow.com/questions/18542812/powershell-cmdlet-missing-assembly-google-api

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

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  15. [BUG] Group-Object with -AsHashTable and custom expressions

    There seems to be a bug in Group-Object when using the -AsHashTable switch and where any custom expression that returns a string is used. The hashtable is created, can be enumerated, but trying to get an entry from it using the indexer doesn't work. This seems to be the case exclusively when the expression returns a string.

    Consider the following:

    PS C:\Windows&gt; $Items = Get-ChildItem | Group-Object -Property Extension -AsHashTable
    
    PS C:\Windows&gt; $Items

    Name Value
    ---- -----
    .DMP {MEMORY.DMP}
    .bin {mib.bin}
    .xml {Enterprise.xml, Starter.xml}
    .NET {Microsoft.NET}
    .INI {HPMProp.INI, init.ini, msdfmap.ini, SMSCFG.INI...}
    .dat {bootstat.dat, ConnectionProfiles.dat}
    .dll {ISMIF32.dll, twain.dll, twain_32.dll}
    .exe {bfsvc.exe,…

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

    We’ll send you updates on this idea

    survey  ·  4 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  16. Cannot specify remote filename when calling Copy-Item with -ToSession

    The use case is copying a local file to a remote server using PowerShell remoting and Copy-Item:

    $remote = "aremotemachine.example.com"
    $cred = Get-Credential
    $session = New-PSSession -ComputerName $remote -Credential $cred
    echo "testcontent" > testfile.txt

    Works when we only specify a destination directory

    Copy-Item -Path testfile.txt -Destination C:\ -ToSession $session

    Doesn't work when we specify a filename

    Copy-Item -Path testfile.txt -Destination C:\testfile.txt -ToSession $session

    Even if it's different from the original filename

    Copy-Item -Path testfile.txt -Destination C:\testfile2.txt -ToSession $session

    Here is the output I get for the first failed command

    Copy-Item : Destination folder 'C:\testfile.txt' does not exist.At line:1
    char:1
    +…

    5 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 →
  17. Bug: Powershell 5: Transcription doesn't anymore capture warnings and verbose output from invoke-command.

    This used to work with Powershell 4.

    Try following code (call 'Test-TranscriptWarningFromInvokeCommand') and inspect the transcription file - the warning and verbose output from the 'remote' machine (visible on the console) is not in there!
    function Test-TranscriptWarningFromInvokeCommand {

    Start-Transcript -LiteralPath:&quot;C:\Users\Public\Documents\Transcript-$(Get-Date -Format:&quot;yyyy&#39;-&#39;MM&#39;-&#39;dd HH&#39;-&#39;mm&#39;-&#39;ss&quot;).txt&quot; -Force
    
    Write-Host &quot;Local: This is a write-host!&quot;
    Write-Warning &quot;Local: This is a write-warning!&quot;
    Write-Verbose &quot;Local: This is a write-verbose!&quot; -Verbose
    #Write-Error &quot;Local: This is a write-error!&quot;
    try {
    Invoke-Command -ComputerName:$Env:ComputerName `
    -ScriptBlock:{ Write-Host &quot;Remote: This is a write-host!&quot;
    Write-Warning &quot;Remote: This is a write-warning!&quot;
    Write-Verbose &quot;Remote: This is a write-Verbose!&quot; -Verbose
    #Write-Error &quot;Remote: This is a write-error!&quot;
    }
    5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    survey  ·  6 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  18. Powershell ISE should support touch scrolling

    Votes from Connect: 4

    Original Date Submitted: 6/1/2015 2:41:13 AM

    Description:
    Contact Information
    Handle: Tanuki360
    Site Name: PowerShell
    Feedback ID: 1387025


    Problem Description:
    Powershell ISE should support touch scrolling in at least the same way as Notepad. Right now, only using the scroll bars are supported. If you try to scroll in the middle of the window, you only select text, and more often than not you will accidentally move that text and mess up your script. It would be even better if it supported true touch text editing, but I know that would be difficult.

    This functionality would be…

    5 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. Powershell ISE needs touch features including scrolling

    Votes from Connect: 3

    Original Date Submitted: 5/17/2015 10:18:14 PM

    Description:
    Contact Information
    Handle: Tanuki360
    Site Name: PowerShell
    Feedback ID: 1341401


    Problem Description:
    The PowerShell ISE needs to be enabled for touch features such as scrolling. it should at least behave similarly to how notepad behaves. I use the ISE a lot on a tablet and it is difficult to scroll in the ISE and sometimes I accidentally move sections of code because it will select the text be not move the window. With tablets and touch screens becoming more common, this functionality should work.

    Product Studio item created by…

    5 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 →
  20. ISE should include the ability to sign scripts, just like Sapien PowerShell Studio

    Votes from Connect: 4

    Original Date Submitted: 5/15/2015 9:44:30 PM

    Description:
    Contact Information
    Handle: BobbyMilford
    Site Name: PowerShell
    Feedback ID: 1335522


    Problem Description:
    ISE should include the ability to sign scripts, just like Sapien PowerShell Studio, preferably with an option to make the signing automatic with every save.

    Product Studio item created by Connect Synchronizer due to creation of feedback ID 1335522 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1335522).

    Repro Steps:

    Internal BugId: 14468

    5 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 →
  • Don't see your idea?

Feedback and Knowledge Base