Flavien Michaleczek

My feedback

  1. 32 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    5 comments  ·  PowerShell » ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    @Jakob Windows PowerShell is archived. Microsoft release only security fixes through Windows 10
    version. Upgrade to PowerShell 7 and open an issue on Github repository if you need enhancements.

    Flavien Michaleczek supported this idea  · 
  2. 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  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    It's not a bug on powershell.

    When you do Get-Module -ListAvailable | %{ Get-Command $_.Name } , powershell load modules to know which commands are available.

    The module SQLPS, has a PSDrive mounted after loading.

    So use Push-Location, Pop-Location inside foreach.

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

    We’ll send you updates on this idea

    3 comments  ·  PowerShell » Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  4. 10 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    These syntaxes are working :

    Write-Verbose ("Hello {0}" -f $var.prop)

    or

    "Hello {0}" -f $var.prop | Write-Verbose

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

    We’ll send you updates on this idea

    0 comments  ·  PowerShell » Package Management  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  6. 3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  7. 35 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell » ISE and tooling  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  8. 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  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  9. 13 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    survey  ·  4 comments  ·  PowerShell » PowerShell Gallery  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    Before registering PS Repository, you must add these lines :
    if ((Get-Packageprovider -Name NuGet) -eq $null) {
    Install-Packageprovider -name nuget -requiredVersion 2.8.5.201 -Scope CurrentUser -force
    }

    Flavien Michaleczek supported this idea  · 
  10. 10 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    survey  ·  0 comments  ·  PowerShell » Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  11. 7 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    survey  ·  1 comment  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  12. 7 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 » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    We can't use a lot of words in method of a class.
    But we can use these same words for a class name or a class property.

    By example, this is valid :
    class Exit {
    $Exit = 5
    }

    But this is invalid :
    class Myclass {
    Exit() {}
    }

    So, we can't use a class Name "Exit" in the real world, because it's impossible to use a constructor (but possible to create it without a constructor)

    The normal behavior would be "same restriction" that Add-Member -MemberType ScriptMethod

    By Example, this is valid :
    $object = [psobject]::new() | Add-Member -MemberType ScriptMethod -Name if -Value { "Valid" } -PassThru
    $object.If()

    There is more words we can't use than defined in the reserved word page
    https://technet.microsoft.com/en-us/library/hh847868.aspx?f=255&MSPPError=-2147217396

    The banned word list came from the class "System.Management.Automation.Language.Tokenizer" :
    elseif
    if
    else
    switch
    foreach
    from
    in
    for
    while
    until
    do
    try
    catch
    finally
    trap
    data
    return
    continue
    break
    exit
    throw
    begin
    process
    end
    dynamicparam
    function
    filter
    param
    class
    define
    var
    using
    workflow
    parallel
    sequence
    inlinescript
    configuration
    public
    private
    static
    interface
    enum
    namespace
    module
    type
    assembly
    command
    hidden
    base

    Some words like "Parallel", "Configuration", "Exit", "Filter", "Data", "Base" are too generic to be forbidden.

    This is a serious restriction that can slow down classes adoption for the mass.

    Powershell can't be a "First-class citizen" with this kind of bug.

    Flavien Michaleczek supported this idea  · 
  13. 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 » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →

    From the GitHub Issue:

    “I agree that it might be useful super forward-looking, but today this will only help in the case where:

    You’re running PS 5.1+, the module you’re running is using a SuppressMessageAttribute, and you don’t have Script Analyzer installed
    Given all that, this is firmly within the realm of “nice to have” for me, and I’m not sure anything nice to have can make it in PS 5.1 right now. I’m going to place it on UserVoice, though, as something we might want to do in the future for PowerShell."

    Flavien Michaleczek supported this idea  · 
  14. 6 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 » Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →

    We are working on enabling support for multiple psm1 files. This will allow you to group different class-based DSC resources into different files.

    Flavien Michaleczek supported this idea  · 
  15. 3 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  PowerShell » Package Management  ·  Flag idea as inappropriate…  ·  Admin →

    This is an issue specific to the Chocolatey provider, which we acquired from that team. We will continue to work to get it resolved, but have no solution available at this time.

    An error occurred while saving the comment
    Flavien Michaleczek commented  · 

    The issue is still here.
    PSVersion : 5.1.14328.1000 (Desktop)
    PackageManagement Version : 1.0.0.1
    ExecutionPolicy : Restricted

    Command to reproduce the problem : Install-package firefox -ProviderName Chocolatey

    Package Firefox is installed BUT Firefox is not installed and there is no warning.

    The script "chocolateyInstall.ps1" from Firefox Chocolatey package is not execute because of the execution policy and we need an error to indicate the package has not be installed.

    Flavien Michaleczek supported this idea  · 
  16. 125 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    6 comments  ·  PowerShell » Desired State Configuration (DSC)  ·  Flag idea as inappropriate…  ·  Admin →
    survey  ·  Mark Gray responded

    Thanks for the feedback! I have personally heard this request from a number of customers. IMHO having the ability to use GMS accounts would be a quite useful in DSC configurations. If this is an important feature for you as well, vote it up so that we can appropriately prioritize it as we move forward.

    MarkG

    Flavien Michaleczek supported this idea  · 
  17. 13 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    4 comments  ·  PowerShell » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  18. 5 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 » PowerShell Engine  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  19. 5 votes
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  PowerShell » Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
    Flavien Michaleczek supported this idea  · 
  20. 12 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 » Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →

    Thanks for the suggestion. This is something we are investigating, but it requires some complex review to ensure proper operation across a range of Windows actions (eg: applying Windows updates). No decision has been made at this time.

    Flavien Michaleczek supported this idea  · 
← Previous 1 3 4

Feedback and Knowledge Base