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. RMDIR bug - causing "Access is denied"

    : z:\ca\WinRdBug.cmd * L=001 --- 2017/12/05 13:02:28

    : The RMDIR command has a bug that, as well as not working,

    : causes the target directory to become inaccessible.

    : i.e. operation on it all result in "Access is denied" or similar :messages.

    : The problem is easily demonstrated using the sequence of :commands below.

    : This bug is causing significant inconvenience and we need a fix or

    : reasonable work-around quickly please. (just upgraded to Win10
    : from XP where this is not an issue).

    mkdir c:\t1229

    echo *** >c:\t1229\x.x

    type c:\t1229\x.x

    rmdir c:\t1229 /s /q

    type c:\t1229\x.x

    pause

    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 →
  2. Publish activedirectory module to PSGallery

    The active directory module is really useful, but a pain to install on a server/computer.
    Current install instructions are these: https://blogs.technet.microsoft.com/ashleymcglone/2016/02/26/install-the-active-directory-powershell-module-on-windows-10/

    I would love the possibility to just do:
    Install-Module "ActiveDirectory" and have everything good to go.

    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 →
  3. PowerShell v6.0.0-beta.7 xml save on Linux and MacOS X has an additional [] in DOCTYPE

    [xml]$XmlDoc = get-content 'Info.plist'

    $XmlDoc.Save('def.plist')

    The two lines above work correctly in PowerShell 5.1 on Windows 10 but incorrectly with PowerShell v6 on Linux and MacOSX.

    Notice the [] just before the end in DOCTYPE.

    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"[]>

    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  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  4. login popup size

    With the new design of the Microsoft login screen, the popup that appears when using Login-AzureRmAccount is way too small and cannot be resized. This hides the fields and controls, and is a pain to use. It needs to be quite a bit bigger, and would be great if it could at least be resized.

    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 →
  5. PSCore6 compatibility

    I started testing Powershell from https://github.com/PowerShell/PowerShell and https://hub.docker.com/r/microsoft/powershell/

    Sadly, it appears a lot of modules for Windows Management like ActiveDirectory, MsOnline, Azure are not working there because implemented as PSSnapIn.

    Having PSCore6 compatible module published publicly would be great!

    Thanks

    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. Resolve-Path behaviour inconsistent

    Resolve-Path turns a string (path to some directory) into a PathInfo object.
    If that returns wthout error, the path exists and is 'correct' i.e. no typo etc. Its a great way to sanity-check user input.

    It also normalizes input. some examples:
    (resolve-path 'C:\users').Path -eq (resolve-path 'c:\users').Path
    > True # (yes, this is also due to -eq acting case-insensitive on strings)
    (resolve-path 'c:\use').Path -eq (resolve-path 'C:\users').Path
    > True
    (resolve-path 'c:\use
    \\').Path
    > C:\Users

    This is very nice. And here's a Trap that's built in:
    (resolve-path 'C:\Users').Path -eq (resolve-path 'C:\Users&#39;).Path
    > False

    Note: no error is thrown, so apparently all is…

    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 →
  7. feature request: PowerShell Backup Script mod

    I ran across the PowerShell Backup Script posted by Michael Seidl here;
    https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Backup-Script-956f312c
    and have plugged it into a couple servers. Works great and simple to setup. Thanks Mr. Seidl!
    However, I'm wondering if it's possible to have the script exclude a particular folder within the folder being copied.

    I'm new to PowerShell and hoping someone could help.
    Thank you
    Chuck

    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 →
  8. Get-SCXAgent - Possible bug with PowerShell version in Visual Studio Code

    SCOM 2016 UR2
    Powershell 5.0
    Visual Studio Code 1.12.2

    Command: Get-SCXAgent

    Repro


    1. Open PowerShell Integrated Terminal

    2. Import-Module OperationsManager

    3. Get-SCXAgent

    Expected: List of cross platform agents

    Actual:

    C:\SCOMTesting\Testing> Get-SCXAgent

    Get-SCXAgent : This cmdlet requires PowerShell version 3.0 or greater.
    At line:1 char:1
    + Get-SCXAgent
    + ~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Write-Error], WriteErrorException
    
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-SCXAgent

    C:\SCOMTesting\Testing> $PSVersionTable.PSVersion

    Major Minor Build Revision


    5 1 14393 1198

    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 →
  9. Bug: sort is incorrect for strings containing the '-' character

    "somefile1","somefile2","s-abc","s-little","s-foo","s-poo","s-wtf" | sort
    s-abc
    s-foo
    s-little
    somefile1
    somefile2
    s-poo
    s-wtf

    ----compare to the correct----
    "somefile1","somefile2","sabc","slittle","sfoo","spoo","swtf" | sort
    s
    abc
    sfoo
    s
    little
    spoo
    s
    wtf
    somefile1
    somefile2

    7 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. WinUserLanguageList : InputMethodTips has been documented as Read\Write but is only Read

    PS C:\Users\Administrator> $objLanguageList=New-WinUserLanguageList -Language us-US

    PS C:\Users\Administrator> $objLanguageList[0].InputMethodTips="0409:0000040C"
    'InputMethodTips' is a ReadOnly property.
    At line:1 char:1
    + $objLanguageList[0].InputMethodTips="0409:0000040C"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    
    + FullyQualifiedErrorId : PropertyAssignmentException

    PS C:\Users\Administrator> $objLanguageList |Get-Member -Name InputMethodTips

    TypeName: Microsoft.InternationalSettings.Commands.WinUserLanguage

    Name MemberType Definition


    InputMethodTips Property System.Collections.Generic.List[string] InputMethodTips {get;}

    PS C:\Users\Administrator>

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

    We’ll send you updates on this idea

    5 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
    external  ·  Zachary Alexander responded

    unfortunately, we don’t own this cmdlet – I would suggest filing an issue in the Windows10 Feedback Hub to track this.

  11. New-ScheduledTaskSettingsSet -Compatibility Won't Set BELOW "Win7" on Server 2012 R2

    New-ScheduledTaskSettingsSet -Compatibility Vista is supposed to set the compatibility to vista - but task scheduler shows "Windows 7, Windows Server 2008 R2".

    If I set -Compatibility to Win8 it does respond and mark the task "Windows 2012 R2"

    But the documented values At, V1 and Vista (https://technet.microsoft.com/en-us/itpro/powershell/windows/scheduled-tasks/new-scheduledtasksettingsset) all result in "Windows 7, Windows Server 2008 R2

    If I set the schedule with schtasks.exe and an XML I can get it to read "Windows Vista, Windows Server 2008"

    My main concern is that this might also be affecting the task attribute "UseUnifiedSchedulingEngine" which is not settable via PowerShell.

    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 →
    external  ·  Zachary Alexander responded

    Unfortunately, this cmdlet is owned by the Task Scheduler team. You will need to file this issue in the Windows Feedback Hub.

  12. Exchange Online in-place ediscovery cmdlet

    in-place ediscovery helps a lot for company acquisitions and migrations due to it's ability to export a mailbox into a PST file, which can then be uploaded into either another tenant, mail solution, or archiving solution. Having to create these for each individual use by hand is cumbersome and time consuming. It would be nice to have a cmdlet that allows the creation of in-place ediscovery in exchange online.

    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 →
  13. AppBackgroundTask manifest lists parameter aliases

    The module manifest for AppBackgroundTask lists 3 cmdlet aliases:

    iru
    pfn
    tid

    But, when you import the module into the session, those aliases are not exported.

    PS C:&gt; ipmo AppBackgroundTask -PassThru

    ModuleType Version Name ExportedCommands


    Manifest 1.0.0.0 AppBackgroundTask {Disable-AppBackgr

    PS C:&gt; Get-Alias | where Source -eq 'appbackgroundtask'
    PS C:&gt;

    The problem is that they're not cmdlet aliases; they're parameter aliases defined in the module CDXML files.

    You should not list module aliases in a .psd1 file.

    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 →
  14. AzureAD v2 Add/Remove Licenses

    Licencing in AzureADModules is ridiculous, a one liner in the MSOnline Module has become a seven liner, WHY?!

    We liked it when we could do this:
    Set-MsolUserLicense -UserPrincipalName belindan@litwareinc.com -AddLicenses 'litwareinc:ENTERPRISEPACK'

    and whilst i'm here, this:

    Set-MsolUserLicense -UserPrincipalName belindan@litwareinc.com -RemoveLicenses "litwareinc:ENTERPRISEPACK"

    If you must change it, then change it to something like:
    Set-AzureADlUserLicense -ObjectID belindan@litwareinc.com -RemoveLicenses "litwareinc:ENTERPRISEPACK"

    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 →
  15. 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 →
  16. SCCM module cmdlet creation for folders

    The ConfigurationManager module does not have any *-folder cmdlets.

    I would like to see some created that allow for more folder manipulation within system centre configuration manager, for example Get-CMFolder -Name "Test" would provide me with the Folder ID, Name, Heirarchical Location in ConfigMgr and more!

    As well as New-CMFolder, Move-CMFolder, Remove-CMFolder, etc!

    I would also like to see the ability to add -Folder to other cmdlets, such as New-CMDeviceCollection -Name "Test" -Folder "TestFolder" so the collection called Test is made in the folder called TestFolder instead of the Device Collections root.

    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 →
  17. Get-AppxPackage not accepting pipeline input

    The Get-AppxPackage command does not appear to accept pipeline input.

    These work:

    Get-AppxPackage -Name "9E2F88E3.Twitter"
    Get-AppxPackage "9E2F88E3.Twitter"
    "9E2F88E3.Twitter" | Foreach { Get-AppxPackage $_ }

    These do not work and return nothing at all:

    "9E2F88E3.Twitter" | Get-AppxPackage
    "9E2F88E3.Twitter" | Select @{ Name="Name"; Expression={$_} } | Get-AppxPackage

    Using the -Verbose parameter simply gives:

    VERBOSE: No packages found.

    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 →
  18. Bug in Get-ScheduledTaskInfo

    At the time's properties (LastRunTime and NextRunTime) returned minutes instead of seconds.
    Sample:
    Get-ScheduledTask | Get-ScheduledTaskInfo

    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 →
    external  ·  Zachary Alexander responded

    Unfortunately, we don’t own this cmdlet. Please use the Windows10 Feedback Hub to file an issue so the appropriate team can take a look at it.

  19. Add KeepCDC flag to Smo.Restore class

    Gets or sets a Boolean property value that specifies whether to maintain a change data capture configuration during a restore operation.

    4 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 →
  20. Bug? SCOM cmdlets don't fully load until first execution of cmdlet

    SCOM module is loaded.
    Get-SCOMAgent cmdlet (among other SCOM cmdlets) is not recognized as cmdlet.
    Execute 1 cmdlet from the loaded SCOM cmdlet.
    Get-SCOMAgent cmdlet is now recognized.

    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 →
← Previous 1 3
  • Don't see your idea?

Feedback and Knowledge Base