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. 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 →
  2. New-Partition UseMaximumSize does not use all available space

    When creating a new partition with the parameter UseMaximumSize, the partition is created with 1031680 bytes less than reported by the SizeMax value from the Get-PartitionSupportedSize cmdlet.

    I tested this on Windows 2019 on ESX 6.7 and Azure.

    To reproduce (example with a 10GB disk):

    New-Partition -DiskNumber 2 -DriveLetter F -UseMaximumSize

    (Get-PartitionSupportedSize -DriveLetter F).SizeMax
    10720624128

    (Get-Partition -DriveLetter F).Size
    10719592448

    Resize-Partition -DriveLetter F -Size 10720624128
    Resize-Partition : Size Not Supported
    Extended information:
    The size of the extent is less than the minimum of 1MB.

    Possibly related issue in https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/36967870-get-partitionsupportedsize-and-msft-partition-clas

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  3. Add-Printer very slow to return from remote print server queue creation

    Add-PrinterPort to a print server returns quickly. Add-Printer using that created port returns slowly (over a minute or two). SNMP turned off for the port. MMC shows print queue has been created successfully with all entered information. Powershell still sits without returning until over a minute later.

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  4. 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 →
  5. Reset-ComputerMachinePassword improvement

    Running this command requires domain privileges to reset the computer object password. In cases where the secure channel with a domain controller is already established, a local administrator of a domain computer should have the permission to trigger the password change.

    The following command achieves the desired result, albeit not in PowerShell: nltest /sc_change_pwd:[domain]

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  6. 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 →
  7. Clear-Disk is failing without error.

    Clear-Disk is not un-initialising a disk, I go to run the initialize-disk command immediately after and get the error that the disk is already initialized. How do I solve this?

    3 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. Fix bug in get-localuser

    On a W2016 DC:
    When I execute
    get-localUser -Name *$
    I get 65 Computer accounts

    But when I execute

    dsquery computer -name * -limit 0
    I get the correct 66 Computer accounts

    When I run
    get-localUser -Name MissingComputerAccount$

    I Get an Error
    So get-localUser can't handle all accounts

    So please fix this

    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  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  9. shortcut

    Can ise support change keyboard shortcut?
    The intellisense key 'ctrl + space ' is conflict with my input method, which language is not english.

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  10. Make NetAdaper group accept -InterfaceIndex as well as -name

    With the "NetAdapter" group why do most of them not accept InterfaceIndex Number for selection? I would like to select my card by its Index so that even if its off / not active I can rename it, change its IP, powersettings etc. Lastly why can we not disable Netbios for the same cards this way?

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

    We’ll send you updates on this idea

    0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  11. Invoke-Command does not respect -ErrorAction parameter

    Hey guys, this does not seem to be fixed. Is this by design? Invoke-Command does not respect -ErrorAction parameter which means it cannot be suppressed using SilentlyContinue nor can it be trapped using a Try..Catch block.

    This issue is present in both WinPS and PowerShell Core. Does not seem like intended behavior since the $Error[0] variable and $ResolutionError ErrorVariable are set by PowerShell outside of the scriptblock.

    Invoke-Command -ScriptBlock { Get-Content c:\file\does\not\exist.txt } -ErrorAction SilentlyContinue -ErrorVariable ResolutionError

    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 Engine  ·  Flag idea as inappropriate…  ·  Admin →
  12. 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 →
  13. Error when changing/reconfiguring a Service Resource

    I was trying to use a DSC Configuration to automate the release of a Windows Service application. However, I ran into the following issue that could be problematic.

    After applying the following configuration...

    Service "Hello" {
    Name = "Hello"
    Path = "C:\hello\hello.exe"
    State = "Stopped"
    Ensure = "Present"
    }

    I modify to and apply the following...

    Service "Hello" {
    Name = "Hello"
    Path = "C:\WinServices\hello"
    State = "Stopped"
    StartupType = "Disabled"
    Ensure = "Present"
    }

    With the sole change being the addition of StartupType = "Disabled".

    The problem is that applying the modification yields the following error...

    PowerShell DSC resource…

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  14. Brackets Treated As Special Characters In Single Quotes

    # Steps to reproduce

    In File Explorer on an NTFS volume, create the file: [abc].txt

    Following this run:

    PS> ls '[abc].txt'

    # Expected behavior

    Directory: C:\Users\Dave

    Mode LastWriteTime Length Name
    ---- ------------- ------ ----
    -a---- 2019-05-06 12:07 AM 0 [abc].txt

    # Actual behavior

    No output displayed.

    # Environment data

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

    # Additional Cases and Information

    The file name can be displayed using tab completion, but the brackets are preceded by back ticks, which indicates that Windows can see…

    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 →
  15. powershell ISE crashes when module manifest nested module is itself

    If you define a module manifest where the nested modules has the current module, ISE terminates.

    Here is an example manifest:
    @{
    RootModule = 'Acme.MyApp.Install.psm1'
    ModuleVersion = '1.0'
    GUID = 'c2419ceb-c2ef-4d2c-bb1d-6ec6de24ab86'
    Author = 'Justin Marshall'
    CompanyName = 'Acme'
    RequiredModules = @('Acme.Common.Misc', 'Acme.Common.WinForms', 'Acme.MyApp.Admin', 'Acme.Common.XMLXSL')
    NestedModules = @('Acme.MyApp.Install')
    FunctionsToExport = '*'
    CmdletsToExport = '*'
    VariablesToExport = '*'
    AliasesToExport = '*'
    FileList = @('Acme.MyApp.Install.psm1')

    }

    this same module loads fine in powershell console.

    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  ·  ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
  16. Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    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 →
  17. Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    Documentation for Get-ScheduledTask does NOT indicate which versions of windows it applies to as EVERY component should.

    0 votes
    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 →
  18. 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 →
  19. 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 →
  20. Pressing spacebar while holding shift should still insert a space

    Pressing spacebar while holding shift should still insert a space.

    When I am typing into the PowerShell prompt, if I happen to be holding down the shift key when I hit the spacebar, nothing happens. I would like for a space to be inserted when I hit the spacebar, regardless of whether I am holding the shift key or not. (The classic Command Prompt does this correctly.)

    For reference, I'm using Win10 1809 and:

    PS C:\> $PSVersionTable

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

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

    We’ll send you updates on this idea

    1 comment  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base