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. Extend get-childitem with support for file systems exposed via WEBDAV, SFTP, FTP, HTTP

    Extend get-childitem with pluggable support for file systems exposed via HTTP, SCP, SFTP, FTP, WEBDAV.

    Meanwhile, still using curl and custom scripting.

    1 vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)

      We’ll send you updates on this idea

      0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    • Drop Uservoice and open a GitHub repo for tracking issues

      Seriously. How is this any good for tracking issues? You "upvote" an issue? Cmon.

      1 vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)

        We’ll send you updates on this idea

        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
      • ServerCertificateValidationCallback has no effect on Invoke-WebRequest/RestMethod

        ServerCertificateValidationCallback has no effect on Invoke-WebRequest or Invoke-RestMethod. This is unexpected behavior (well at least the first time you try it :).

        Details in this GitHub issue - https://github.com/PowerShell/PowerShell-Docs/issues/1753

        1 vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)

          We’ll send you updates on this idea

          0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
        • SqlServer module Join-SqlAvailabilityGroup connection pooling error

          When I call Join- SqlAvailabilityGroup commandlet and active database for pooled connections is not master, I get an error message. There are could be number of different reasons why active database for the PowerShell session would change.

          1 vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)

            We’ll send you updates on this idea

            1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
          • using module <Module> does not work as expected

            I have a problem with loading classes from a module.

            Script is just two lines as following:
            using module AzureAD
            class TestClass { [Microsoft.Open.AzureAD.Model.Application] static DoIt() { return $null; } }

            If I run this, using .\Script.ps1 I get the following error:
            At C:\path\Script.ps1:3 char:20
            + class TestClass { [Microsoft.Open.AzureAD.Model.Application] static D ...
            + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Unable to find type [Microsoft.Open.AzureAD.Model.Application].
            + CategoryInfo : ParserError: (:) [], ParseException
            + FullyQualifiedErrorId : TypeNotFound

            However, if I run "using module AzureAD" from the command line first and then run the script, it works fine...

            What is the difference in running using module from…

            1 vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)

              We’ll send you updates on this idea

              0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
            • active directory get-adcomputer FQDN

              get-adcomputer accepts FQDNs for the "server" (domain controller) parameter, but doesn't accept them for the "identity" (the adcomputer i'm trying to get-) parameter.

              so

              get-adcomputer -identity domaincontroller
              get-adcomputer -identity domaincontroller -server domaincontroller
              get-adcomputer -identity domaincontroller -server domaincontroller.domain.com

              all work.

              get-adcomputer -identity domaincontroller.domain.com

              does not work.

              what's the logic there?

              1 vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)

                We’ll send you updates on this idea

                0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
              • BUG : New-Item -Type New-Item -Type SymbolicLink -Target a -Path b won't work in "developer mode" without elevation

                Steps to reproduce

                Windows 10 Pro, 1703 15063.608
                "Developer mode" activated

                PS D:\Partage\tmp> New-Item -Type File a

                Répertoire : D:\Partage\tmp

                Mode LastWriteTime Length Name
                ---- ------------- ------ ----
                -a---- 04/10/2017 11:42 0 a

                PS D:\Partage\tmp> New-Item -Type SymbolicLink -Target a -Path b
                New-Item : Cette opération nécessite un privilège d'administrateur.
                Au caractère Ligne:1 : 1
                + New-Item -Type SymbolicLink -Target a -Path b
                + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                + CategoryInfo : PermissionDenied: (D:\Partage\tmp\a:String) [New-Item], UnauthorizedAccessException
                + FullyQualifiedErrorId : NewItemSymbolicLinkElevationRequired,Microsoft.PowerShell.Commands.NewItemCommand

                PS D:\Partage\tmp>

                Well this did not work, let's try with good old CMD.exe

                PS D:\Partage\tmp> cmd
                Microsoft Windows [version 10.0.15063]
                (c) 2017 Microsoft Corporation.…

                1 vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                • Date and time returned by Folder.GetDetailsOf() are missing seconds

                  PS C:\> $path = 'C:\Windows\System32\notepad.exe'
                  PS C:\> $shell = New-Object -COMObject Shell.Application
                  PS C:\> $folder = Split-Path $path
                  PS C:\> $file = Split-Path $path -Leaf
                  PS C:\> $shellfolder = $shell.Namespace($folder)
                  PS C:\> $shellfile = $shellfolder.ParseName($file)
                  PS C:\> $shellfolder.GetDetailsOf($shellfile, 4)
                  18/03/2017 21:58

                  Why does the output miss seconds?

                  If this is related to my current culture (en-IE), and therefore expected behavior, then how would I change this? If I use Using-Culture nl-NL { ... } (as on the MSDN blog), then Get-Date indeed shows the time in Dutch. However, GetDetailsOf() does not!

                  1 vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                  • Remove the implied Get- verb

                    Please remove the ability to use the implied Get verb. It is cryptic, expensive and unnecessary.
                    Thanks.

                    2 votes
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      2 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                    • Invoke-WebRequest and Invoke-RestMethod not working correctly with REST API like cURL

                      Hi,
                      Recently I am working on a Telegram Bot creation with power shell, everything working fine except uploading the images via API.

                      If I use cURL, it is working fine using following command, So, technically it should work with native PowerShell commandlet.

                      curl -s -X POST "https://api.telegram.org/bot11111111:Mykey/sendPhoto?chat_id=-123456789&quot; -F photo="@D:\MyPic.JPG" -F caption="Test"

                      I have already tried following, but none worked. As per the API Guide (https://core.telegram.org/bots/api), we have to use multipart/form-data for uploading any file, for cURL, without specifying this also works.

                      Invoke-RestMethod -Uri "https://api.telegram.org/bot$MyBotKey/sendPhoto?chat_id=XXXXXXXXX&quot; -Method Post -InFile "D:\MyPic.JPG" -ContentType "multipart/form-data"
                      Invoke-WebRequest -Uri "https://api.telegram.org/bot$MyBotKey/sendPhoto?chat_id=-XXXXXXXXX&quot

                      1 vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                      • Import-Clixml - Serialized XML is nested too deeply.

                        Import-Clixml 'data.xml'

                        Import-Clixml : Serialized XML is nested too deeply.
                        At line:1 char:1
                        + Import-Clixml 'data.xml ...
                        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        + CategoryInfo : NotSpecified: (:) [Import-Clixml], XmlException
                        + FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.PowerShell.Commands.ImportClixmlCommand

                        1 vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                        • [Bug] Get-Recipient Filter

                          when using a variable in -Filter the Filter will not applied.

                          Get-Recipient -Filter {EmailAddresses -like 'smtp:test@mail.com'}
                          --> is working

                          $EmailAddress = 'smtp:test@mail.com'
                          Get-Recipient -Filter {EmailAddresses -like $EmailAddress}
                          --> is not working

                          $PSVersionTable

                          Name Value
                          ---- -----
                          PSVersion 4.0
                          WSManStackVersion 3.0
                          SerializationVersion 1.1.0.1
                          CLRVersion 4.0.30319.36399
                          BuildVersion 6.3.9600.18773
                          PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
                          PSRemotingProtocolVersion 2.2

                          1 vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                          • Fix get-help for format-volume

                            under example 2 it says the following

                            This example performs a full format of the D volume using the FAT32 file system.
                            with the example code:
                            PS C:\> Format-Volume -DriveLetter C -FileSystem FAT32 -FullFormat –Force
                            The example code formats the c drive but the explaination say it will format the d drive could you please make it consistent.

                            1 vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                            • very inconsistent drive letter usage

                              Hi there

                              in this case I have to remove and reinstall an OS while booting from usb stick. But this is only one example - it´s not the first time im seeing this behaviour.

                              if (Test-path c:) {Get-Volume -DriveLetter c | Get-Partition | Remove-PartitionAccessPath -AccessPath c:\}

                              In this line the term C is used three times

                              First time as c: (here would be c:\ also possible)
                              Second time as c (neither c: nor c:\ is working here)
                              Third time as c:\ (neither c nor c: is working here)

                              I´m working with variables - this means I have to create 3…

                              1 vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                              • Stop-Transcript -ErrorAction doesn't work

                                The ErrorAction parameter on Stop-transcript doesn't work.

                                for instance with SilenlyContine:

                                PS G:\> Stop-Transcript -ErrorAction SilentlyContinue
                                Stop-Transcript : An error occurred stopping transcription: The host is not currently transcribing.
                                At line:1 char:1
                                + Stop-Transcript -ErrorAction SilentlyContinue
                                + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                + CategoryInfo : InvalidOperation: (:) [Stop-Transcript], PSInvalidOperationException
                                + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.StopTranscriptCommand

                                Or with stop:
                                Script: Stop-Transcript -ErrorAction Stop; write-output "This message sould not be printed"
                                Result: Stop-Transcript : An error occurred stopping transcription: The host is not currently transcribing.
                                At home\Untitled4.ps1:1 char:1
                                + Stop-Transcript -ErrorAction Stop
                                + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                + CategoryInfo : InvalidOperation: (:) [Stop-Transcript], PSInvalidOperationException
                                + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.StopTranscriptCommand

                                This message sould…

                                1 vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                • [Issue] Get-MessageTrace pipe to Get-MessageTraceDetail

                                  I got some weird data when running below cmdlet

                                  Get-MessageTrace -StartDate "09/11/2017 00:00:00" -EndDate "09/15/2017 00:00:00" -PageSize 10 -Page 1 | Get-MessageTraceDetail | Select-Object Date, MessageTraceID, Event, Data, Detail | Out-GridView

                                  It seems the last event of the first MessageTraceID keeps repating itself and was added next to last event of the next MessageTraceID. And its data keep growing. Please see below image for the clear representation of the issue.
                                  https://1drv.ms/i/s!AtOz2sztWjOapgIwkbjyq-sy4_jm

                                  Below image is the correct MessageDetail of MessageTraceId 2b87f940-0eee-4c39-71a9-08d4f9757430
                                  https://1drv.ms/i/s!AtOz2sztWjOapgPFCL102diF6jRz

                                  And below image is the correct MessageDetail of MessageTraceId f602c9c7-2a5b-4a5a-1256-08d4f8e9ba58
                                  https://1drv.ms/i/s!AtOz2sztWjOapgSFXfJiKurb23w0

                                  Can you please check why it is happening?

                                  1 vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Make Import-DSCResource dynamic keyword parameter -ModuleVersion mandatory or generate parsing warning

                                    Configurations expire when the DSCResource modules they import change. It would be very welcomed if a warning was generated by the pasrser when the Import-DSCResource keyword was used without specifying either the Fully Qualified Module Name (FQMN) or the ModuleVersion parameter/Argument pair. This would simplfy managing different versions of a configuration both on the build server as well consuming blog posts that have you guessing what version of the Module was being used.

                                    1 vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                    • OutVariable gets the output from the next command (select) in the pipeline

                                      When running something like:
                                      gsv -ov all | sort -ov sorted | select name -first 10 -ov first10

                                      I'd expect $all.Count to be equal to $sorted.Count, but $sorted.Count is 10 and contains the same objects as $first10.
                                      This is different than in older versions (tried with -ver 2, and the variables have the expected objects. e.g. $all.Count == $sorted.Count)

                                      1 vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                                      • BUG:Powershell New-WBBackupTarget losing its setting when using Add-WBBackupTarget

                                        I am using the first example in the syntax box from here:
                                        https://technet.microsoft.com/en-us/library/jj873971(v=wps.630).aspx

                                        The description for PreserveExistingBackups confuses me a bit, since its mentioning network shares, but the syntax example is for a disk location. I think I need it for the disk location, so I tried with the lines below.

                                        Set-WBPerformanceConfiguration -OverAllPerformanceSetting AlwaysFull
                                        $policy = New-WBPolicy
                                        $disks = Get-WBDisk
                                        $backupLocation = New-WBBackupTarget - Disk $disks[12] -PreserveExistingBackups $true -Label "Backup"
                                        Add-WBBackupTarget -Policy $policy -Target $backupLocation

                                        If I singlestep the script then everything looks fine after I have initialized the variable $backupLocation. The PreserveExistingBackups are set to true, when I recall…

                                        1 vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Wrong Output format in Jenkins 2.77

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

                                          Jenkins 2.77

                                          node('build') {
                                          stage('From sharedlibrary') {
                                          powershell 'Write-Output "Hello, World!"'
                                          }
                                          }
                                          Output:

                                          [QA_SharedLibrary] Running PowerShell script Hello, World!

                                          1 vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            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 60 61
                                          • Don't see your idea?

                                          Feedback and Knowledge Base