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. |
-
Get-Content -Head and -Tail doesn't work well on large files
I want to look a few lines of a large file, but Get-Content with -Head and -Tail option still reports insufficient memory issue.
1 vote -
SET - ProtectedFromAccidentalDeletion
Get-ADcomputer -filter 'Name -like "SRV_*"' -Properties ProtectedFromAccidentalDeletion | Set-ADObject -ProtectedfromaccidentialDeletion $false
Get-ADcomputer -filter 'Name -like "SRV_*"' -Properties ProtectedFromAccidentalDeletion | Set-ADComputer -ProtectedfromaccidentialDeletion $false
Set-ADComputer : Es wurde kein Parameter gefunden, der dem Parameternamen
"ProtectedfromaccidentialDeletion" entspricht.
In Zeile:1 Zeichen:106
+ ... Set-ADComputer -ProtectedfromaccidentialDeletion $false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (:) [Set-ADComputer], Parameter
BindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.ActiveDirectory
.Management.Commands.SetADComputer
1 vote -
Start-Sleep seconds cpu usage
The following causes sleep to not sleep at all
Start-Sleep -Seconds 0.5
Seems anything < 1.0 is considered to be zero
1 vote -
Cannot change Temp folder path used fora Exchange Online Power-Shell Module imports
Cannot change Temp folder path used for Exchange Online Power-Shell Module (With MFA) imports. How do we change the path from using the temp folder
1 vote -
New-SMBShare -Temporary seems to do nothing
New-SMBShare -Temporary should remove the share after a reboot but that's nothing happening
2 votes -
BUG: [System.Windows.Forms.SystemInformation]::PrimaryMonitorSize returns display size inconsistently between PS and PS ISE
Reproducibility: always.
1) Set display scaling not at 100%
2) Start new PS and PS ISE sessions
3) Run:
Add-Type -AssemblyName System.Windows.Forms
4) Notice difference when running in PS ISE to PS standardPS ISE takes no notice of display scaling and reports screen resolution. PS does take notice of display scaling and reports virtual screen resolution, e.g. 1920x1080 for a 3840x2160 screen with 200% scaling.
$PSVersionTable:
PSVersion 5.1.18362.145
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.145
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1Windows 10 Pro v1903 OS Build 18362.418
1 vote -
Console applications with a file association start a new cmd window. This is unhelpful.
I have a simple win32 console application (example.exe) which just printf's all its arguments. In the windows registry I've set up a file association so that the file extension ".myfile" invokes "example.exe %1".
In a CMD window running .\example.exe file.myfile displays the output in the cmd window. (this is good)
In a CMD window running .\file.myfile invokes example.exe and displays the output in the cmd window. (this is good)In a Powershell window running .\example.exe file.myfile displays the output in the powershell window. (this is good)
In a powershell window running .\file.myfile opens a new cmd window, in which example.exe…1 vote -
ANSI escape code problem with Read-Host
When using an ANSI escape code as part of the Read-Host prompt within a script, it changes the default state.
Note: to test, paste the script block into the console (not ISE)
Compare:
$esc = [char]27
$bold = "$($esc)[1m" #sets text to bold
$norm = "$($esc)[0m" #reset
Read-host "Test Entry$($bold)test"
write-host "test"
write-host "$($norm)test"
write-host "test"To:
$esc = [char]27
$bold = "$($esc)[1m"
$norm = "$($esc)[0m"
write-host "Test Entry$($bold)test"
write-host "test"
write-host "$($norm)test"
write-host "test"1 vote -
XXXUDPORACLEANORDIQUEBEASTARAPTORONTOCLOCKIRKLANDROSOPHITLEROMARSATUROVIRG0ALUDPOPEYELLEFTWINGAYARDLINEART©P/IP143&144MASMENDREDICCMELEDFER
J'OFFRAMANOVOIDATAPIGUTAGRAISSEALIMENTORONTOCOLLORACLEFLAG0ADACHAUTEARTIGAYOURSELFERLANDOMARSAMPLEADERSSQLITORISHTARROWHADOWASPDEAUQIONCHINM
1 vote -
Needs more information
Whereever "aboutActiveDirectoryFilter" is referenced a link should be added to take you where the information is located.
1 vote -
[Bug] module actrivedirectory 1.0.1.0 - Set-Location on PSDrive with PSProvider active directory
There seems to be a problem to use Set-Location on a specific mounted Active Directory PSDrive, with the new Version of activedirectory module 1.0.1.0
the commands bellow do all work on module 1.0.0.0
PSDrive mapping:
New-PSDrive -Name "myAD" -PSProvider ActiveDirectory -Root "DC=A,DC=B,DC=C,DC=D"works:
Set-Location "myAD:"does not work anymore:
Set-Location "myAD:\OU=subOU"does not work
PS myAD:> cd subOUdoes not work
PS myAD:> set-location "subOU"Error:
Set-Location : The object name has bad syntax
At line:1 char:1
+ Set-Location "OU=subOU,DC=A,DC=B,DC=C,DC=D"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (\\RootDSE\\Root...s,DC=C,DC=D:String) [Set-Location], ADException
+ FullyQualifiedErrorId : ADProvider:ItemExists::ADError,Microsoft.PowerShell.Commands.SetLocationCommandSet-Location : Cannot find path 'myAD:\RootDSE\OU=subOU,DC=A,DC=B,DC=C,DC=D,DC=A' because…
1 vote -
Get-DnsClient and Get-DnsClientServerAddress output format incorrect
I feedback with https://github.com/PowerShell/PowerShell/issues/10987
Get-DnsClient and Get-DnsClientServerAddress output format incorrect.You can see the markdown render of github issue.
1 vote -
get-localgroup does not have SID parameter
Get-Localgroup does not have SID parameter when running x86 version.
Version: 5.1.17763.771 (x86)
Running "(Get-LocalGroup -SID 'S-1-5-32-544').Name" will return error about non matched param.2 votes -
Get-VMProcessor doesn't show state of ExposeVirtualizationExtensions
Set-VMProcessor -ExposeVirtualizationExtensions $true -VMName <VMNAME>
Get-VMProcessor -VMName <VMNAME>
This should show a column for ExposeVirtualizationExtensions but it doesn't
1 vote -
Invoke-History with Get-Content -wait does not produce any output
Use Get-Content -wait to follow a file as it is being written (such as a log file)
Terminate the execution with ctrl-c.
Execute Invoke-History to execute the previous command again.
No output is displayed, neither existing file content nor new content.
1 vote -
Fix powershell Get-SecureUEFI to support the variable dbt.
Get-SecureBootUEFI used the wrong GUID (EFIGLOBALVARIABLE_GUID) so cause it can not get dbt.
In UEFI spec 2.8, define the EFIIMAGESECURITYDATABASE2(dbt) should use the EFIIMAGESECURITYDATABASE_GUID, so this is the power shell command issue, you can refer to UEFI spec 2.8 - 32.6.1 UEFI Image Variable GUID & Variable Name for detail.
1 vote -
Memory leaks while using powershell runspace in .NET
I found a huge memory leak in project which appears after execution PS command. Here I create example that represent my problem in "TestCase" comment.
After memory usage investigation I found that most of memory occupied by inner structures from System.Management.Automation. So I start to search the way to release resources and found that the same behavior can be reproduced in PS:
Get-Module -ListAvailable | ForEach { Import-Module $_.Name }
Get-Command -ListImported -CommandType Cmdlet,AliasI already have tried to initiated garbage collecting and to remove all new variables that appears after script execution. I even have tried to start new…
1 vote -
UpdateServices Module - Request for UpdateReleaseDate
UpdateServices Module, cmdlet Get-WsusUpdate. This cmdlet does not allow filtering by updates' "ReleaseDate". It also does not return value of updates' "ReleaseDate". GUI tool (WSUS mmc) does show "Release Date" column when showing updates, and allows updates sorting by "Release Date". I would ask that UpdateServices Module includes "UpdateReleaseDate" both as input (filtering) value and output value. Thanx.
1 vote -
BUG: sort in pipeline don't work correctly
Hi
When you use the sort function in a pipeline it will work in ISE but not when you run the script direktly (see attached logs). By run it dierktly it sorts the objects wrong.
Greetings from Germany
1 vote -
PowerShell Basic Statistics Module
It will be fantastic if powershell have a simple or basic module for statistics and data analytics ..... calculating average and min , max is not enough .... please more data analytics functions would make powershell able to meet the new technology expectations
1 vote
- Don't see your idea?