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. Add-ADPrincipalGroupMembership [-WhatIf] [-Confirm] [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Identity] <ADPrin

    Add-ADPrincipalGroupMembership
    [-WhatIf]
    [-Confirm]
    [-AuthType <ADAuthType>]
    [-Credential <PSCredential>]
    [-Identity] <ADPrincipal>
    [-MemberOf] <ADGroup[]>
    [-Partition <String>]
    [-PassThru]
    [-Server <String>]
    [<CommonParameters>]

    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 →
  2. MinimumCompatibleVersion still causes "Cannot find module PSDesiredStateConfiguration_1.0 from the server"

    Although a very similar issue has been resolved in WMF5.1 we are encountering an issue when working with partial configurations.

    It seems that the MinimumCompatibleVersion for the complete configurations is taken from the "first" (alphabetical order) partial configuration. If this happens to be a 2.0.0 configuration then other partials which were 1.0.0 cannot load the PSDesiredStateConfiguration module.

    Please take a look at the reproduction in the attachment.
    We reproduced this on windows server 2012r2, 2016 and 2019 and it is causing a very blocking issue for us.

    Edit; since the attachments dont seem to work:

    if (-not $inputCredential)
    {

    $inputCredential
    10 votes
    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 →
  3. BUG: Dsc Engine Merge configuration doesn't compare Table String type as expected

    When you run Start-DscConfiguration to apply a new configuration, LCM merge all the configuration settings who belong to the same node name. Like the file below. When sacfg (alias) run, then the ValueData of the two resource are compared by the merge processus. Then the merge fail because ValueData is declared as String[] (table) type into the RegistryResource .mof file.
    Below you can find the configuration file to create the issue.
    Another behavior:
    If you specify a string array with several value then PowerShell "PSDesiredStateConfiguration.psm1" throw an error at the execution instead of the LCM. The compared values are always…

    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 →
  4. Bug: The first time New-NetLbfoTeam is used by Desired State Configuration it creates a misnamed interface

    The first time New-NetLbfoTeam is used by Desired State Configuration it creates a misnamed interface.

    This is on Server 2019 Build 17763.557 with the following updates applied:

    KB4483452
    KB4470788
    KB4503308
    KB4504369
    KB4503327

    Powershell shows:
    Name Value


    PSVersion 5.1.17763.503

    PSEdition Desktop

    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}

    BuildVersion 10.0.17763.503

    CLRVersion 4.0.30319.42000

    WSManStackVersion 3.0

    PSRemotingProtocolVersion 2.3

    SerializationVersion 1.1.0.1

    For example:

    New-NetLbfoTeam -Name "Team1" -TeamMembers "NIC1" -TeamNicName "Team1" -LoadBalancingAlgorithm Dynamic -TeamingMode SwitchIndependent -Confirm:$False

    Will create an interface called "Ethernet" (Visible through Get-NetAdapter).

    If you delete the team and recreate in the same DSC, it'll work correctly.

    i.e. this works and creates an interface called…

    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 →
  5. It does not work with all MSIs

    This resurce does not handle correctly all MSIs. For example Firefox MSI will not be installed due to the ProdID

    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 →
  6. 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 &quot;Hello&quot; {
    
    Name = &quot;Hello&quot;
    Path = &quot;C:\hello\hello.exe&quot;
    State = &quot;Stopped&quot;
    Ensure = &quot;Present&quot;
    }

    I modify to and apply the following...

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

    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 →
  7. issue with encrypted mofs on a pull server [partialconfigs]

    i have a pull server with 2 non-encrypted mofs, and 1 encrypted mof. The LCM on the lab node is configured to pull the 3 different configs as partialconfigs. When I run Start-DSCConfiguration, the encrypted mof fails with the following:

    PowerShell DSC resource MSFT_UserResource failed to execute Set-TargetResource functionality with error message: There could be a possible multiple matches exception while trying to use the System.DirectoryServices API's.Exception calling "Save" with "0" argument(s): "The
    password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.
    "

    + CategoryInfo          : InvalidOperation: (:) [], CimException
    
    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 →
  8. Automatic Conflict Resolution For Partial Configurations

    The LCM is already able to detect conflicts, with a fairly small change you could make it automatically resolve it.
    In my opinion we should be able to set a priority of each partial configuration in the meta config of the LCM.
    With a priority set and when a conflict is detected, the LCM could look at the priority and choose a winner.

    You could than create a layered approach of partial configs (by different teams) without having to be afraid of running into conflicts.

    This is something I see more people struggling with, which results in solutions like datum…

    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 →
  9. Import-DSCResource for File, others fails

    When using Import-DSCResource -Name, various OOB resources do not work. Consider 'File' which is a built in resource, the following code will fail.

    Configuration Sample
    {

    Import-DSCResource -Name File
    
    

    # This will generate two .mof files, a localhost.mof, and a server02.mof
    Node @(&#39;localhost&#39;, &#39;server02&#39;)
    {
    File SampleFile
    {
    DestinationPath = &#39;C:\Temp\temp.txt&#39;
    Contents = &#39;This is a simple resource to show Configuration functionality on a Node.&#39;
    }
    }

    }

    Sample -OutputPath P:\temp\

    Start-DSCConfiguration P:\temp -computername localhost -wait -verbose

    If you change the resource to Service, it works as expected.

    I'm guessing this is because File is a binary resource under System32\Configuration,…

    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 →
  10. Find-DSCResource does not find resources.

    Find-DSCResource does not find resources. The wildcarded -Name parameter does not find anything when used, the Filter parameter seems to map Module names only, and even used seems to miss resources.

    To reproduce:

    Find-DSCResource -Name time - finds nothing
    Find-DSCResource -Filter time - does not find newer TimeZone resource (only xTimeZone)

    Find-DSCResource -Filter time does not find anything.

    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 →
  11. Fix Add-DnsServerResourceRecord TXT Records Limit

    When attempting to add a TXT DNS record via the "Add-DnsServerResourceRecord" command, the DescriptiveText property only accepts strings up to 254 characters but should support up to 255 characters. Ideally the command should accept an array for the DescriptiveText so that multiple lines of up to 255 characters can be passed through. Currently it requires using rn to insert a line break but over all must still be under 254 characters. This is an issue as we are trying to implement automation around TXT records and DKIM records tend to be well over this 254 character limit and require…

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  12. Test-DscConfiguration returns a String instead of a Boolean value

    Test-DscConfiguration returns a String instead of a Boolean value.

    Contrary to what is mentionned in the documentation, the function Test-DscConfiguration does not return a boolean value.

    When you do a GetType() of the return value of Test-DscConfiguration you get a string with 'true' or 'false'.

    It's impossible to do a simple if (Test-DscConfiguration) because the string 'false' enter inside the if, we are forced to cast the return value of this cmdlet in boolean or to do the comparison with -eq $True, which seems to cast it automatically.

    6 votes
    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 →
  13. Reset LCM configuration

    Reset LCM configuration.

    Hi and sorry for my funny English.
    When I configure my LCM, it's impossible to reset state.
    If I want a default configuration, I send a new configuration this default value for all Settings (here, no value, just settings).

    [DscLocalConfigurationManager()]
    Configuration ResetLCM {

        Node MyNode {
    
    Settings {
    ActionAfterReboot =
    AllowModuleOverwrite =
    CertificateID =
    ConfigurationDownloadManagers =
    ConfigurationID =
    ConfigurationMode =
    ConfigurationModeFrequencyMins =
    DebugMode =
    MaximumDownloadSizeMB =
    RebootNodeIfNeeded =
    RefreshFrequencyMins =
    RefreshMode =
    ReportManagers =
    ResourceModuleManagers =
    SignatureValidations =
    StatusRetentionTimeInDays =
    }}

    I think it's easier to use command.

    For example, there is a reset configuration for DSCConfigurationDocument. …

    8 votes
    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. DSC File resource Encoding Property

    The file resource really needs an encoding property.

    Need to have some control over this as it makes the resource unusable in a lot of situations, which is a shame.

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

    We’ll send you updates on this idea

    1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  15. ¿Pienso?

    Creo, que si los Hispano-Hablantes, pudiesen tener acceso a los comentarios e ideas que la gente detendrían mas de 1000.000.000, si en números, Por favor empecemos por respetar a todos, no solo los Anglo-Sajones, y la gente de sus colonias (coman GUEL ) lo pongo en Español, por dignidad, Creo (estoy, seguro) que pagan lo mismo.

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

    We’ll send you updates on this idea

    1 comment  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  16. 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
    (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 →
  17. MICROSOFT RAILWAY CORPORATION

    Now at this time called India,Pakistan & Bangladesh whose name was India.Yow know there are a lot of spaces for travelling.Indian Microsoft will be set up, a open independent Railway corp in the Whole India.Its will be a great way for our child,brother,sister,parents & all classes people.If Microsoft will be set up that way,many peoples will be satisfied for the way.& besides the way,many grounds are so many blank to a few year.There will be growing a lots of food & this foods will suppliers the Whole World.Otherwise,there are will be planning many trouthfull industries for our peoples worktivities.Trust,that IDEA…

    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 →
  18. dsc Partial configuration - pull server

    0
    down vote
    favorite
    I have a big issue that I cant solve, need help!

    Im using partial configuration to configure 3 servers. The problem is mof file name. In Microsoft documentation (https://docs.microsoft.com/en-us/powershell/dsc/partialconfigs) says: "If you are pulling more than one partial configuration from a pull server, the configuration document can be named (...) ..mof, where ConfigurationName is the name of the partial configuration, and NodeName is the name of the target node."

    I'm trying ..mof and it returns the warning "WARNING: [DSC-3]: [] Executing Get-Action on partial configuration 'PreStagging' Failed. Please ensure the parital configuration and its…

    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 →
  19. [Bug] DSC configuration allows multiple resource instances with duplicate key values

    Before PowerShell 5.1, compilation of DSC configurations having resource instances with duplicate keys resulted in a compilation error.

    However, with 5.1, this seems to have changed.

    Configuration FileDemo
    {

    Import-DscResource -ModuleName PSDesiredStateConfiguration -ModuleVersion 1.1

    Node Localhost
    {
    File TestFile1
    {
    DestinationPath = &#39;C:\Scripts\Test.txt&#39;
    Contents = &#39;&#39;
    Type = &#39;File&#39;
    }

    File TestFile2
    {
    DestinationPath = &#39;C:\Scripts\Test.txt&#39;
    Contents = &#39;&#39;
    Type = &#39;File&#39;
    }
    }

    }

    FileDemo

    This configuration will compile with no errors.

    PS C:&gt; $PSVersionTable

    Name Value


    PSVersion 5.1.14393.1914

    PSEdition Desktop

    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}

    BuildVersion 10.0.14393.1914

    CLRVersion 4.0.30319.42000

    WSManStackVersion 3.0

    PSRemotingProtocolVersion 2.3

    SerializationVersion 1.1.0.1

    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  ·  Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
  20. DSC Archive Resource (unzip) holds zip-file

    This is more a indirect failure experience. Please bear with me if this is the wrong place: Expanding a zip-file with DSC in an Archive Resource leaves a process holding the zip-file. This gives that the zip-file can not be deleted by the same script or in the same PowerShell session.
    The error message from Remove-Item on the zip-file is like this: "Remove-Item : Cannot remove item C:\temp\jjdk1.8.0112-CE.zip: The process cannot access the file 'jdk1.8.0112-CE.zip' because it is being used by another process.".
    In issue 240 to Plaster on GitHub (https://github.com/PowerShell/Plaster/issues/240) it is mentioned by Keith…

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

Feedback and Knowledge Base