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. There is no single list of the meaning of each item shown by Get-MpPreference and Get-MpComputerStatus

    No single page shows the meanings of all the parameters. The descriptions are all over the place. Many people learn about Defender by listing everything with Get-MpPreference and Get-MpComputerStatus and then trying to determine the meaning of each item. It's especially a problem when new parameters just show up

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  2. ITA - I Can't refresh the HelpGuide for Powershell, How can I fix this?

    update-help : Impossibile aggiornare la Guida per i moduli 'ConfigDefender, PSReadline, WindowsUpdateProvider' con
    impostazioni di cultura dell'interfaccia utente {it-IT}: Impossibile recuperare il file XML HelpInfo per le
    impostazioni di cultura dell'interfaccia utente it-IT. Assicurarsi che la proprietà HelpInfoUri nel manifesto del
    modulo sia valida o controllare la connessione di rete ed eseguire di nuovo il comando.
    In riga:1 car:1
    + update-help
    + ~~~~~~~~~~~

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

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  3. how to fix edb file error

    Try stella exchange edb to pst converter software convert all the edb file data in to pst file. edb to pst converter software support all the version of the exchange edb file. stella edb to pst converter software convert unmounted edb file data in to pst file. edb to pst converter software convert all the mailbox data in to eml file. for more info visit this link https://www.stelladatarecovery.com/exchange-edb-to-pst-converter.html

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  WMI  ·  Flag idea as inappropriate…  ·  Admin →
  4. Get-PhysicalDisk memory leak

    If you run Get-PhysicalDisk (in a powershell-loop or called from a C# application) you will see after after hundreds/thousands of runs a memory-leak.

    https://github.com/MicrosoftDocs/windows-powershell-docs/issues/2290

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  5. EDB Recovery Software to Recover corrupt EDB File

    EdbMails Exchange recovery will analyze the Exchange EDB file corruption issues and recover data from inaccessible Exchange EDB file. It's the best software for recovering and converting EDB file to PST File. EdbMails can recover damaged, corrupted Exchange mailboxes, deleted folders / items within mailboxes.

    Advantages and Key Features of EDB Recovery Software

    -Recovers corrupted, damaged,  Dismounted & Offline Exchange EDB files
    
    -Repairs Large size EDB files (> 10 TB file size) and convert it to PST files.
    -Allows recovery of EDB file and also export with saving recovered mails in PST, MHT, EMLformat
    -Restores EDB Mailbox items like emails,
    2 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  6. Vartika Exchange EDB Recovery Software (convert EDB files into PST file)

    Download Vartika EDB to PST Converter that can help to export EDB to PST Outlook and also convert EDB file into five different file options such as- HTML, PST, MSG, EML, and EMLX. The Software has special features and techniques to transfer the EDB file and supports all editions of the Exchange server up to 2016 and gives free trial version software for free to use and convert emails from the Exchange server.
    Some of its Features are
    - Repairs Corrupted EDB files
    - Ultra-fast export of mails from EDB files into PST file
    - Allow Saving of EDB files…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  7. Get-ADGroupMember - is not available, or so hidden, that even as an admin were not found

    PS C:> Get-Help Get-ADGroupMember
    Get-Help : Get-ADGroupMember wurde in einer Hilfedatei in dieser Sitzung von Get-Help nicht gefunden. Zum Herunterladen von aktualisierten Hilfethemen geben Sie Folgendes ein: "Update-Help". Wenn Sie Hilfe online abrufen möchten,
    suchen Sie in der TechNet-Bibliothek unter "https:/go.microsoft.com/fwlink/?LinkID=107116" nach dem Hilfethema.
    In Zeile:1 Zeichen:1
    + Get-Help Get-ADGroupMember
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : ResourceUnavailable: (:) [Get-Help], HelpNotFoundException
    
    + FullyQualifiedErrorId : HelpNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

    PS C:>

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  8. Perfect Vartika Exchange EDB to PST Converter

    Perfect Vartika Exchange EDB to PST Software allows their user to export EDB file into multiple formats such as MSG, HTML, EMLX, EML, and PST. It also has an auto-detection feature that can automatically locate the .EDB file location from the machine of the user. The user just needs to select the EDB file and their version to make the Exchange corrupt EDB recovery. The Software can run without the Exchange server only MS Outlook installation is required.

    Get more info: - https://www.vartikasoftware.com/product/vs-edb-to-pst-converter-software.html

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  9. netswitchteam

    clarify if you can team hardwired and WiFi NIC - it seems to me that it does not work properly and the resulting team gets a "blackhole" "self-assigned" autoconfiguration 169.254 IP address

    also add the remove-netswitchteam syntax

    also add examples
    e.g.

    Get-NetAdapter
    New-NetSwitchTeam -Name "myteam" -TeamMembers "Ethernet 3","Ethernet 2", "Ethernet"
    Remove-NetSwitchTeam -Name "myteam"

    Besides it would be great if the netswitchteam also has failover capabilities

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  10. Add-DnsServerResourceRecord should support the DNS NAPTR record type

    Add-DnsServerResourceRecord has flags like -A, -MX, -PTR, etc. However it doesn't have a -NAPTR flag. Therefore we can't create NAPTR records from PowerShell.

    The NAPTR is a little-known DNS record type however it is an important part of most corporate SIP-based phone systems. Being able to rapidly set up NAPTR records using PowerShell would be great.

    (More important than speed is accuracy: a lot of SIP setup time is spent debugging typos which would be easy to prevented if we could set our NAPTR records with PowerShell scripts.)

    FYI: Remove-DnsServerResourceRecord's --RRType flag doesn't support NAPTR, therefore removing such records is…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Microsoft.PowerShell.* Modules  ·  Flag idea as inappropriate…  ·  Admin →
  11. Changes to $DebugPreference Cause Functions in Imported Module To Fail

    In a relatively simplistic login script deployed by GPO using "ExecutePolicy Unrestricted" the changing of the $DebugPreference can cause a "Test-Path" command within a function in a imported module to fail.

    In the attached if $DebugPreference is set to "Continue" everything works as expected. If it's set to "SilentlyContinue" the "Test-Path $InstallPath" check fails.

    Pulling the same function into the original login script results in the function working properly no matter what the preference is set to.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  12. Changes to $DebugPreference Cause Functions in Imported Module To Fail

    In a relatively simplistic login script deployed by GPO using "ExecutePolicy Unrestricted" the changing of the $DebugPreference can cause a "Test-Path" command within a function in a imported module to fail.

    In the attached if $DebugPreference is set to "Continue" everything works as expected. If it's set to "SilentlyContinue" the "Test-Path $InstallPath" check fails.

    Pulling the same function into the original login script results in the function working properly no matter what the preference is set to.

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  13. invoke-cimmethod

    Hello @ll,

    Invoking cim methods with powershell

    The execution of the command below works correctly.

    Invoke-CimMethod -ClassName 'Win32_Process' –MethodName 'Create' –Arguments @{ CommandLine = 'notepad.exe' }

    I can get the methods from the "SoftwareLicensingService" class.

    ( Get-CimClass -ClassName 'SoftwareLicensingService' ).CimClassMethods | Format-List

    Name : SetKeyManagementServiceMachine
    ReturnType : UInt32
    Parameters : {MachineName}
    Qualifiers : {implemented}

    Name : ClearKeyManagementServiceMachine
    ReturnType : UInt32
    Parameters : {}
    Qualifiers : {implemented}

    However, when invoking the methods, an error occurs.

    Invoke-CimMethod -ClassName 'SoftwareLicensingService' -MethodName 'SetKeyManagementServiceMachine' -Arguments @{ MachineName = '***'}
    Invoke-CimMethod -ClassName 'SoftwareLicensingService' -MethodName 'ClearKeyManagementServiceMachine'




    powershell 5.1

    Invoke-CimMethod : Invalid method parameter(s)
    No linha:1 caractere:1
    +…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  14. Add a parameter in comment-based help #7134

    Bonjour/Hello

    J'aimerais vous mentionner que mon anglais n'est pas très bon. Par contre, comme je suis un programmeur depuis 20 ans, je suis en mesure de lire l'anglais et d'écrire des FOR, THIS, IF, NEXT..., mais je suis moins bon en écriture de texte. Alors je vous prie de m'excuser si certaines phrases sont mal écrites. Je vais laisser la version en français (Au besoin).

    <-- I would like to tell you that my English is not very good. On the other hand, since I have been a programmer for 20 years, I am able to read English and write…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  15. Install a program remotely via RunAs

    With this code, I want to install a program via cmd in administrative mode, but it doesn't work

    $RemoteMachine = "10.1.1.40"
    $Username = 'user'
    $Password = ' '
    $pass = ConvertTo-SecureString -AsPlainText $Password -Force
    $Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $Username,$pass

    Invoke-Command -ComputerName $RemoteMachine -Credential $Cred -ScriptBlock { Start-Process -FilePath "c:\install.bat" -Verb RunAs }

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  16. Char in .. Operator

    What about shorten this: ([int][char]"B")..([int][char]"Q") | %{[char]$_}

    Into this: B..Q

    ?

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  17. 1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
  18. Exceptions when filtering .etl trace files using New-PefTraceSession

    Scenario:
    We are filtering traces captured in *.etl files using the following Cmdlets: New-PefTraceSession, Add-PefMessageSource, and Start-PefTraceSession. After the filter we expect the filtered file to be saved as a .matu file. The traces themselves are captured using netevents sessions, logman and xperf. Most of these works fine but occassionally we run into the below error which causes that particular .etl trace file to not be analyzed/filtered.

    -----Exception-----System.ArgumentException: An item with the same key has already been added.
    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
    at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
    at Microsoft.ProtocolTools.Runtime.Persistence.Project.AddMetadataSection(Nullable
    1 id, String name, String type, String description, String…

    3 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
  19. verify yeah all that stuff

    2 years I cramed tech school im locksmith security is security

    4 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  Documentation  ·  Flag idea as inappropriate…  ·  Admin →
  20. Allow IF statements to be enclosed in () without using a variable.

    Can someone explain why IF statements fails when enclosed in () without a variable? See example below:

    $x = 5
    $y = 6

    Fails

    ( if ($x -eq $y) { &quot;Match&quot; } ELSE { &quot;No Match&quot; }  )
    

    Works

    if ($x -eq $y) { &quot;Match&quot; } ELSE { &quot;No Match&quot; }  
    
    ( $xy = if ($x -eq $y) { &quot;Match&quot; } ELSE { &quot;No Match&quot; } )

    Returned Error

    if : The term 'if' 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…

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

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

Feedback and Knowledge Base