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. i need powershell to support the sed command

    i need powershell to support the sed command

    5 votes
    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. NetNat behavior has changed between Windows Server 2012 R2 and Windows Server 2019

    Windows Server 2019 and Powershell 5.1 have broken the -ExternalIPInterfaceAddressPrefix parameter in the New-NetNat cmdlet. In 2012 R2, you specify the external networks on your server using this parameter and specifying the Network and CIDR mask (10.95.1.0/24). In 2019 and Powershell 5.1, this parameter is broken and you receive an error saying "The parameter is incorrect" invariably. The only way to create a NAT configuration in 2019 is to use the new InternalIPInterfaceAddressPrefix parameter, but this seems to prevent you from creating new External Addresses. Whenever I create a NAT in Server 2019 using the InternalIPInterfaceAddressPrefix parameter, I am unable…

    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 →
  3. Explorer 'Pinned Items' on the taskbar opening in PowerShell 7 rather than explorer

    I have pinned folders to my task bar under Explorer.exe. Since installing PowerShell 7 these links open in PowerShell rather than explorer.

    4 votes
    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 →
  4. install module

    hi

    i am unable to install the module..when i do so i get this error emssage

    The term 'install-module' 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 included, verify that the path is correct and try
    again.
    At line:1 char:1
    + install-module *
    + ~~~~~~~~~~~~~~

    + CategoryInfo          : ObjectNotFound: (install-module:String) [], CommandNotFoundException
    
    + FullyQualifiedErrorId : CommandNotFoundException

    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. Test-FileCatalog failes when paths contain '

    <!--

    For Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:
    Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)

    This repository is ONLY for PowerShell Core 6 and PowerShell 7+ issues.

    -->

    Steps to reproduce

    ```powershell
    $CheckArray =
    "C:\path\to\Folder",
    "C:\path\to\Folder2"

    $ConfirmArray =
    "D:\path\to\Folder",
    "D:\path\to\Folder2"

    New-FileCatalog -Path $CheckArray FileCat.cat -CatalogVersion 2.0
    Test-FileCatalog -CatalogFilePath FileCat.cat -Path $ConfirmArray
    ```

    Expected behavior

    none
    windows acceptable filenames should work

    Actual behavior

    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 →
  6. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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 →
  8. Set-NetIPAddress

    Set-NetIPAddress is not Working. When I want to set IP address using Set-NetIPAddress, a error appear:
    Set-NetIPAddress : CIM 服务器上的 ROOT/StandardCimv2/MSFTNetIPAddress 类实例的 CIM 查询: SELECT * FROM MSFTNetIPAddress WHERE ((IPAddress LIKE '192.168.43.161')) AND ((InterfaceIndex = 15))
    AND ((AddressFamily = 2)) 找不到任何匹配的 MSFT_NetIPAddress 对象。请验证查询参数,然后重试。
    It regard the Ip address as filter, I don't know why.

    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 →
  9. Move *-VHD cmdlets from Hyper-V module to Storage module

    This would enable managing and working with VHDs without having to install the Hyper-V cmdlets.

    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 →
  10. How do I create an Azure Automation schedule with PowerShell using the Az Cmdlet New-AzAutomationSchedule?

    When I attempt to run the Cmdlet below with the following parameters, it fails:

    $AutomationAccountName = "CZEU1-INF-NP-0faa84be-AAA-01"

    $ResourceGroupName = "czeu2-app-np-rgp-01"

    $vmStartTime = (Get-Date "08:00:00").AddDays(1)

    $vmStopTime = (Get-Date "18:00:00")

    $timeZone = [TimeZoneInfo]::Local.DisplayName

    $vmStartupScheduleName = "Startup VMs 08:00 Daily Weekdays:

    $timeZone"

    $vmShutdownScheduleName = "Shutdown VMs 18:00 Daily

    Weekdays: $timeZone"

    [System.DayOfWeek[]]$WeekDays = @([System.DayOfWeek]::Monday..[System.DayOfWeek]::Friday)

    New-AzAutomationSchedule -AutomationAccountName $AutomationAccountName -Name $vmStartupScheduleName -StartTime $vmStartTime -WeekInterval 1 -DaysOfWeek $WeekDays -ResourceGroupName $ResourceGroupName -Verbose

    The error is: New-AzAutomationSchedule : Exception of type 'Microsoft.Azure.Management.Automation.Models.ErrorResponseException' was thrown. At line:1 char:1 + New-AutomationSchedule -AutomationAccountName $AutomationAccountNam... + CategoryInfo : CloseError: (:) [New-AzAutomationSchedule], ErrorResponseException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Automation.Cmdlet.NewAzureAutomationShedule

    21 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 →
  11. set-volume whatif

    Set-Volume along with a number of other commands in the storage module offer, but do not honor, the -WhatIf switch parameter.

    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 →
  12. Active Directory

    CrazyMarioBros

    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. Not an idea, but a question

    I need to gather info for our auditors. I need a list of ALL Active Directory users with certain properties, but those requiring a false or true output are the ones that came out wrong for me. Objects like samaccountname came out just fine, but filters like isPreauthNotRequired gave me a weird and long output: Microsoft.ActiveDirectory.Management.ADPropertyValueCollection

    Here is my command:
    Get-ADUser -Filter * -Properties * | Select-Object samaccountname, isPreAuthNotRequired, isActive, isPwdEncryptedTextAllowed, displayname, isPwdNotRequired, userprincipalname, isDisabled, isExpired, distinguishedname | export-csv -path c:\export\allusers.csv

    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. PowerShell should produce a CSV file that Excel can import.

    Find-Module -Repository PSGallery |

    Export-Csv -Path .\psgallery-modules.csv -Delimiter &#39;,&#39; -NoTypeInformation
    

    Microsoft Excel cannot import the result successfully. In particular, cells which contain multiple lines become new rows in the spreadsheet.

    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 →
  15. native VPN IKEv2 client does not support server Redirect

    IKE Redirection is how VPNs provide load balancing.
    iPhone and MacOS support this natively.

    https://tools.ietf.org/html/rfc5685

    Please add!

    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 →
  16. TPM

    TPM isn’t the only workable option for disk encryption and in fact, is almost guaranteed to provide the user with a false sense of security.

    Sure, some encryption is better than none, but considering the fact that Microsoft has broken the trust it had with it's customers, when they were caught red-handed with their hands in the cookie jar, as well as their brazen Win10 campaign tactics that literally upended several businesses and that of the lives of so many other end users who woke up one morning to find all their files were gone because their computers were automatically

    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 →
  17. get-aduser title

    I cant pull users Job title with AD-User command.

    -Properties * lists the title as an attribute but its returned empty even though all users have a job title assigned.

    Suspect this is a bug?

    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 →
  18. Make the verb 'Deploy' symmetrical by adding a new verb 'Undeploy'

    The verb Deploy was added, but strangely no verb Undeploy was added at the same time.

    In many operations the verb Undeploy is relevant, meaning to revert or undo the Deployment action.

    Other Verbs that are paired with a 'Un' version:
    - Block / Unblock
    - Install / Uninstall
    - Lock / Unlock
    - Protect / Unprotect
    - Publish / Unpublish
    - Register / Unregister

    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 →
  19. BUG: Get-ScheduledTask returns NULL for Value of MultipleInstances

    If in the settings tab of the scheduled task it is set to "Stop the existing instance", Get-ScheduledTask returns NULL for the value of MultipleInstances. The other three possible values return a string.

    To test:
    Edit the properties of an existing scheduled task, or create a new one. On the Settings tab, change "If the task is already running, then the following rule applies" to the value "Stop the existing instance".

    Execute in PowerShell:
    $task = Get-ScheduledTask -TaskPath '\' -TaskName 'your task name'
    $task.settings.MultipleInstances.GetType()

    Expected behavior:
    $task.settings.MultipleInstances should be a [string]

    Actual behavior:
    $task.settings.MultipleInstances is null

    Note that the value…

    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. How to modify "Date" column in Windows Explorer

    In Windows Explorer there are two columns available: "Date modified" and "Date". I've tried both setting the .LastWriteTime and .CreationTime for files and it changes the date in the "Date Modified" column, but does not change the "Date" column.

    Is there a way to modify the "Date" column in Windows Explorer using Powershell scripting? I basically want to create a "touch" command that will affect BOTH "Date modified" and "Date" columns in Windows Explorer.

    Thanks!

    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  ·  Other PowerShell  ·  Flag idea as inappropriate…  ·  Admin →
← Previous 1 3 4 5 24 25
  • Don't see your idea?

Feedback and Knowledge Base