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. 1 vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)

      We’ll send you updates on this idea

      0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
    • Register-ScheduledTask

      Register-ScheduledTask -password parameter should accept secure string or PScredential. Currently it accept plain text and the password shows up in event log when register

      1 vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        Signed in as (Sign out)

        We’ll send you updates on this idea

        0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
      • Powershell not interpreting spaces correctly

        I am running a powershell script in the Post-Build event in Visual Studio (VS). Here is a simplified version of the command command

        powershell -ExecutionPolicy remotesigned -File "%SampleDir%\update.ps1" "$(ProjectDir)" "$(TargetName)" "$(TargetExt)" "$(Configuration)"

        I want you to understand that I have no control of these macro's $(ProjectDir) ... VS will fill these in.

        To simplify things I've eliminated VS. Here is a script that simply echo's the input given to it. This will show the problem copy the below script to a file called echo-args.ps1
        #===================================
        "The number of parameters passed in is $($Args.Count)"
        $i = 0
        foreach ($arg in $Args)…

        1 vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          Signed in as (Sign out)

          We’ll send you updates on this idea

          0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
        • Timing Invoke-WebRequest Is Slower in Console than ISE

          We are running a home-grown internet speedtest using a PowerShell script. When running the script in ISE on fast network connections (100mbps+), the Invoke-WebRequest commands run fast enough to reflect 100mbps. However, when the script is run through console, the Invoke-WebRequest is restricted and reports speeds of only 25mbps. How can the console be configured to run with the same resources as ISE?

          FYI, this is not an issue for slower networks. Only fast networks seem to expose the console bottleneck.

          2 votes
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            Signed in as (Sign out)

            We’ll send you updates on this idea

            1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
          • Powershell Windows defender bug

            I found a bug with windows defender cmdlets!
            Cmdlet:
            set-mppreference -scanscheduletime
            set-mppreference -scanschedulequickscantime

            Providing an argument in format HH:mm works for values from 00:00 to 16:59 works as expected and when running get-mppreference the scanscheduletime and scanschedulequickscantime fields show the time requested.

            Providing a time past 7pm (17:00) and then running get-mppreference shows the time in the format 2982615.22:16:00, which i believe means ~3 million days in the future.

            windows 10 enterprise build 171314
            windows server 2016 datacenter build 14393

            Please let me know if you would like any further details!

            1 vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              Signed in as (Sign out)

              We’ll send you updates on this idea

              0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
            • Help not updating for Whea module shipped with Windows Server 2016

              When running Update-Help on Windows Server 2016, failure occurs against the Whea module.

              Not sure if this is the correct UserVoice to lodge this against, sorry if it's not!

              PS C:\Windows\system32> update-help -force
              update-help : Failed to update Help for the module(s) 'Whea' 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

              2 votes
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                Signed in as (Sign out)

                We’ll send you updates on this idea

                0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
              • fix help get-smbconnection -online

                It references http://go.microsoft.com/fwlink/?LinkID=24194 which does a redirect to http://technet.microsoft.comlibrary/jj635713(v=wps.620).aspx which is missing the clash between com and library.

                1 vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  Signed in as (Sign out)

                  We’ll send you updates on this idea

                  0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
                • PowerShell ISE - PackageManagement\Register-PackageSource : The property 'Name' cannot be found on this object.

                  Facing issue with PowerShell repository registering

                  PackageManagement\Register-PackageSource : The property 'Name' cannot be found on this object.

                  1 vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    Signed in as (Sign out)

                    We’ll send you updates on this idea

                    1 comment  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                  • Import-PfxCertificate and relates commands don't exist on linux/macos powershell

                    our .net core projects use powershell. The lack of these commands impedes our cross-platform activities.

                    1 vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      Signed in as (Sign out)

                      We’ll send you updates on this idea

                      0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                    • 1 vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        Signed in as (Sign out)

                        We’ll send you updates on this idea

                        0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                      • 1 vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          Signed in as (Sign out)

                          We’ll send you updates on this idea

                          2 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                        • PowerShell to select SSID

                          Many companies have several wifi ssids. You know, "Corp" "Guest" "Upstairs Lab"
                          Very very common.

                          How? How do you select one via PowerShell ?

                          2 votes
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            Signed in as (Sign out)

                            We’ll send you updates on this idea

                            0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                          • write-host -NoNewline parameter is ignored with powershell 5.1

                            Starting with WMF 5.0 and WMF 5.1 the -NoNewLine option for Write-Host is essentially ignored.

                            Simple example:
                            PS C:\> Write-Host "no newline test " -NoNewline

                            Current Behaviour:
                            no newline test
                            PS C:\>

                            Expected Behavior
                            no newline test PS C:\>

                            PS version Table is as follows.

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

                            1 vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              Signed in as (Sign out)

                              We’ll send you updates on this idea

                              0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                            • BUG: Manage RDS certificates using powershell fails after WMF 5.1

                              Trying to manage Remote Desktop certificates using powershell after installing WMF 5.1 on Windows Server 2012 fails with the following error message:
                              PS C:\Users\MyUser> Import-Module RemoteDesktop
                              PS C:\Users\MyUser> Set-RDCertificate -Role RDWebAccess

                              Get-Server : The term 'Get-Server' 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 C:\Windows\system32\WindowsPowerShell\v1.0\Modules\RemoteDesktop\Certificate.psm1:304 char:22
                              + $webaccess = Get-Server -ConnectionBroker $ConnectionBroker - ...
                              + ~~~~~~~~~~
                              + CategoryInfo : ObjectNotFound: (Get-Server:String) [], CommandNotFoundException
                              + FullyQualifiedErrorId : CommandNotFoundException

                              1 vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                Signed in as (Sign out)

                                We’ll send you updates on this idea

                                0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
                              • switch break

                                Switch should allow for implied breaks.

                                I think it would be useful, if it doesn’t exist to have an additional option, e.g.

                                switch -ImplyBreak ($variable) {
                                ‘red’ { ‘r’ }
                                ‘green’ { ‘g’ }
                                }

                                Where -ImplyBreak would make the code above equivalent to:

                                switch ($variable) {
                                ‘red’ { ‘r’; break }
                                ‘green’ { ‘g’; break }
                                }

                                1 vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  Signed in as (Sign out)

                                  We’ll send you updates on this idea

                                  0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                • Add support for SSRS Mobile reports to Out-RsFolderContent

                                  Out-RsfolderContent fails when exporting Mobile Reports because the 'TypeName' MobileReport is not covered in the function.

                                  I added the following remedy to my system. may be nice for others.
                                  I have not yet tested for PowerBI reports ... but neither have the people making these nice modules ...

                                  if (($item.TypeName -eq 'MobileReport') ) {
                                  $relativePath = $item.Path
                                  if($RsFolder -ne "/") { $relativePath = Clear-Substring -string $relativePath -substring $RsFolder -position front }
                                  $relativePath = $relativePath.Replace("/", "\")
                                  $newFolder = $Destination + $relativePath
                                  Write-Verbose "Creating folder $newFolder"
                                  New-Item $newFolder -ItemType Directory -Force | Out-Null
                                  Write-Verbose "Folder: $newFolder was created successfully."
                                  }

                                  1 vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    Signed in as (Sign out)

                                    We’ll send you updates on this idea

                                    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Please modify clause ($var -in 1..3)

                                    Please modify clause ($var -in 1..3) not to use a list in memory.

                                    The code becomes unusable when using long ranges like 1..20000000

                                    Thanks

                                    1 vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      Signed in as (Sign out)

                                      We’ll send you updates on this idea

                                      0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Powershell write-progress memory leak in remote sessions

                                      Hello, I have noticed some strange behavior with Powershell when run in a remote session, it seems as if there is a memory leak with write-progress when run in a remote session.

                                      Take the following code for example:

                                      $MaxVal = 10000000

                                      for ($x=1;$x -le $MaxVal;$x++)
                                      {
                                      Write-Progress -Activity "Writing a progress event" -PercentComplete ($x / $MaxVal * 100) -Status "$($x / $MaxVal * 100)% complete"
                                      }

                                      If I run this locally, powershell.exe runs normally and does not take up much memory.

                                      However, if I run it on the same computer from a remote session (as in, I do an enter-psesssion…

                                      1 vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        Signed in as (Sign out)

                                        We’ll send you updates on this idea

                                        0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
                                      • At line:4 char:1 + Import-DscResource -ModuleName cNtfsAccessControl + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Could not find the

                                        Can you provide solution for this error.
                                        I am getting it even after i downloaded NTFS security files.

                                        1 vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          Signed in as (Sign out)

                                          We’ll send you updates on this idea

                                          0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
                                        • How to compare current and next Iteration values of foreach loop in Powershell.

                                          Hi,I have a loop like below. In that, I want to compare next iteration value with current iteration value. If current value is not match with next value then I need to do some process. So I want to know like how to get the next Iteration value of a loop in powershell.
                                          $var = ('abc','abc','bcd','cdf','cdf')
                                          Foreach($i in $var){ 
                                          If($i -ne $nextiterationvalue) 
                                          {       do something  } 
                                          else  {     do something  }}

                                          Thanks,Dinesh

                                          1 vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            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 69 70
                                          • Don't see your idea?

                                          Feedback and Knowledge Base