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. WMF 5.0 incompatibilities still valid for WMF 5.1?

    WMF 5.1 download page has a warning that heads to this site:

    https://msdn.microsoft.com/en-us/powershell/wmf/5.0/productincompat

    Are the listed incompatibilities still valid for 5.1, as only 5.0 is named here.

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

    We’ll send you updates on this idea

    6 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  2. Private powershell Gallery

    Hi Guys,

    I'm looking for a solution to manage all my powershell cmdlets.
    I want to build something similar to what Microsoft is using when you type get-help cmdlet-name -online
    Can anyone advice hot to build such a solution based on private PS gallery

    Regards
    Raf

    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  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    Hi Raf – you seem to be talking about 2 things: setting up an internal PowerShell Gallery, and providing online help.

    There’s an article on how to set up an internal PowerShell Gallery (here: https://blogs.msdn.microsoft.com/powershell/2014/05/20/setting-up-an-internal-powershellget-repository/).

    The help content is not in the PowerShellGallery.
    In the module manifest there is a property called HelpInfoURI, which can specify where to get updatable help from.
    The instructions for how to deal with updatable help are in this topic: https://msdn.microsoft.com/en-us/library/hh852735(v=vs.85).aspx

  3. [BUG] about_PSReadline is included in WMF 5.1 for Windows 7, causes help topic conflicts

    The about_PSReadline helpfile for Windows 10 is included in the WMF 5.1 distribution for Windows 7 even though PSReadline is not. It can be found alongside other system helpfiles in:

    %WINDIR%\System32\WindowsPowerShell\v1.0\en-US\about_PSReadline.help.txt

    If PSReadline is subsequently installed from the PowerShell Gallery this remnant—which is identical in name, category, and associated module—will be considered a duplicate and prevent Get-Help from displaying help for the about_PSReadline topic.

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →

    My apologies from before: we did in fact intend to de-couple PSReadline from WMF. I didn’t have all the context from when we released the package (you’re doing exactly the right by installing PSReadline from the Gallery.

    We actually fixed this bug in PowerShell 6.0 so that you can disambiguate on duplicate txt files, but the fix will not be finding its way back to Windows PowerShell 5.×.

    You can get around the duplicate issue with the following workaround:
    Get-Help about_PSReadline | Select-Object -First 1 | Get-Help

    Sorry about that, and thanks for the report!

  4. -format not working with concatenated string

    The format (-f) command does not replace a token if the token is in a string followed by another concatenated string, if the -f is executed when the string is defined. Reproduced on PowerShell v4 and v5.
    Example:
    $concat = "select * from '{0}'" + " stringpart2" -f 'tab1'
    $concat

    Result:
    select * from '{0}' stringpart2

    However if -f is applied after the concatenation, it works correctly.
    Example:
    $concat = "select * from '{0}'" + " stringpart2"
    $concat -f 'tab1'

    Result:
    select * from 'tab1' stringpart2

    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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  5. Add a new cmdlet - Add-Archive

    I would like to suggest a new cmdlet, Add-Archive. This new cmdlet would add files into an existing Archive.

    Syntax would look like:

    Add-Archive [-Path] <String[]> [-DestinationPath] <String> [-CompressionLevel {Optimal | NoCompression |
    Fastest}] [-Recurse]
    [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]

    This would take an array of paths and files and adds them to an existing or new archive.

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  6. Bug with System.IO.FileInfo arrays

    When trying to join arrays of FileInfo objects, if the first array contains only one element, the following error occurs.

    Method invocation failed because [System.IO.FileInfo] does not contain a method named 'op_Addition'.
    At line:1 char:1
    + $stuff + $stuff1
    + ~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (op_Addition:String) [], RuntimeException
    
    + FullyQualifiedErrorId : MethodNotFound

    It works as expected as long as the first array contains more than 1 element. See example below:

    PS C:\Scripts> $stuff

    Directory: C:\Scripts
    

    Mode LastWriteTime Length Name


    -a---- 10/3/2016 2:01 PM 58 LaunchUpdateAllSubversionWorkingCopies.bat

    PS C:\Scripts> $stuff1

    Directory: C:\Scripts
    

    Mode LastWriteTime Length Name


    -a---- 10/26/2016 1:19 PM 140 DropConnections.sql …

    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 →
  7. Update-Help: Failed to update Help for the module(s) 'NetworkControllerDiagnostics'

    The following error show up when executing 'Update-Help -force':
    PS C:\WINDOWS\system32> Update-Help -Force
    Update-Help : Failed to update Help for the module(s) 'NetworkControllerDiagnostics, Provisioning' 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.
    At line:1 char:1
    + Update-Help -Force
    + ~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ResourceUnavailable: (:) [Update-Help], Exception
    
    + FullyQualifiedErrorId : UnableToRetrieveHelpInfoXml,Microsoft.PowerShell.Commands.UpdateHelpCommand

    PS C:\WINDOWS\system32> $PSVersionTable

    Name Value


    PSVersion 5.1.15048.0
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.15048.0
    CLRVersion 4.0.30319.42000
    WSManStackVersion…

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  8. JEA Session Type 'default' with error

    Jea causes an error when you choose 'Default' in SessionType.

    Example of PSSC configuration file :
    SessionType = 'Default'

    PS E:\JEA> $userbase = Get-Credential
    Enter-PSSession -ComputerName localhost -ConfigurationName JEASession1 -Credential $userbase
    cmdlet Get-Credential at command pipeline position 1
    Supply values for the following parameters:
    Enter-PSSession : The term 'Measure-Object' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:2 char:1
    + Enter-PSSession -ComputerName localhost -ConfigurationName JEASession ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

    We’ll send you updates on this idea

    completed  ·  4 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  9. MSFT_WebDownloadManager issue

    Hi there,
    Please advise on the following failure I am facing while trying to apply DSC changes on the remote machine:
    "
    PS C:\Windows\system32> Set-DscLocalConfigurationManager -Path .\LCMPullMode
    Undefined class: MSFT_WebDownloadManager
    At line:15, char:2
    Buffer:
    Connection = True;
    };^
    ins

    + CategoryInfo          : SyntaxError: (root/Microsoft/...gurationManager:String) [], CimException
    
    + FullyQualifiedErrorId : MiClientApiError_Failed
    + PSComputerName : be-lab-v17

    "

    Thanks in advance,
    Ofer

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

    We’ll send you updates on this idea

    completed  ·  2 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  10. Multi Line description passes Test-ScriptFileInfo but fails to publish

    When I tried to publish the script https://raw.githubusercontent.com/SQLDBAWithABeard/DataScienceVM/master/New-WindowsDataScienceVM.ps1 it fails with missing description but passed the Test-FileScriptInfo prior to me trying

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

    We’ll send you updates on this idea

    completed  ·  5 comments  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
  11. Help for -UseTransaction is broken

    I've see help documentations for several cmdlets like Move-Item, Copy-Item, Set-Acl, etc. and their "-UseTransaction" help is broken it reads:
    "Includes the command in the active transaction. This parameter is valid only when a transaction is in progress. For more information, see [Repetition of the same]"

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  12. Fill in Win32_NetworkAdapterConfiguration CIM class on Nano

    Running 'Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration' in powershell on a Nano server does not return any information. Unless they are officially deprecated, classes like this should work on Nano server.

    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 →
    completed  ·  Dan Harman [MSFT] responded

    Some underlying components needed for the Win32_NetworkAdapterConfiguration class are missing in the current release of Nano Server. This has been fixed in the upcoming (next) release of Nano Server.

  13. Small typo in gci help

    Hello,

    there is a small typo in the help of gci for the attibute "-LiteralPath"
    It says it " Specifies, as a string arrya," instead of array .

    I know it's a small one, but it kind of helps to make Powershell even better

    Best regards

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  14. ConvertFrom-String example 5 is wrong

    Example #5 for the ConvertFrom-String cmdlet is wrong.
    It states that it will generate an object with default property names and with the specified property types (string and integer), but it is the same as example #4 (just the property names)

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  15. get-package error on ps 5.1

    The behaviour of get-package cmdlet is different compared with 5.

    get-package firefox works on 5 but no on 5.1

    get-package firefox works on 5.1 but no on 5

    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 →
  16. Firewall Rules Documentation on website

    Im working in an environment with strict firewall policies, I'm struggling to find any information on ports used to execute commands such as install-module...

    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  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →

    There are 3 basic elements for PowerShell remote access today:
    1. WinRM, which is the basis for PowerShell remoting. There’s a good article here: https://blogs.technet.microsoft.com/christwe/2012/06/20/what-port-does-powershell-remoting-use/
    2. HTTP/HTTPS – this is the vast majority of other remoting. Install-Module, PackageManagement, Invoke-RestMethod, etc. all go over standard internet ports, and generally default to HTTPS.
    3. DCOM ports can specified for CIM-based cmdlets, but it is not the default. You can find out which modules support this option by searching for *.ps1xml in C:\Windows\System32\WindowsPowerShell\v1.0\. Again, that’s not the default.

    Hope this resolves the question.

  17. How do I configure multiple owners of a single project or item?

    My colleague and I contribute to a project and both of us own it, how can I add him as a secondary owner? It appears this isn't possible.

    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  ·  PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →

    There is documentation for this at https://msdn.microsoft.com/en-us/powershell/gallery/psgallery/managing-item-owners

    A couple tips: The user must have already registered with the PowerShell Gallery, and you must know the PowerShell Gallery user name for the individual, not just their email address.
    If they have forgotten what their user name is, have them log in. The user name will show up in the upper right-hand corner of the screen.
    After that an automated email will be sent to their registered email account. If they don’t see it, have them check junk mail. Email systems regularly filter out mail coming from unknown accounts, particularly if there is a link in the mail (as will be the case for this one).

    Let us know if that does not answer your questions.

  18. Microsoft.PowerShell.Operation.Validation module has invalid HelpInfoUri

    The HelpInfoUri of Microsoft.PowerShell.Operation.Validation module looks like a placeholder: http://go.microsoft.com/fwlink/?LinkId

    Since it doesn't point to a HelpInfo XML file, updatable help is failing and there's no help for the module.

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  19. Automatically register PSGallery with WMF 5.0

    After installing WMF 5 on Windows 7, the default PSGallery repository is not registered by default. This should just be there so I can get started much quicker.

    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  ·  Package Management  ·  Flag idea as inappropriate…  ·  Admin →
  20. Find-Module doesn't work in ISE (or ISE Preview)

    This should speak for itself:

    PS > Get-PackageSource

    Name ProviderName IsTrusted IsRegistered IsValidated Location


    PSGallery PowerShellGet False True False https://www.powershellgallery.com/api/v2

    PS > find-module ise -Verbose
    VERBOSE: Using the provider 'PowerShellGet' for searching packages.
    VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
    VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
    VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2&#39; and PackageManagementProvider is 'NuGet'.
    VERBOSE: No module found matching 'ise' .

    Find-Module works fine in the console host.

    Spying with Wireshark reveals that while the console host connects to https://www.powershellgallery.com as part…

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base