PowerShell
Update: Microsoft will be moving away from UserVoice sites on a product-by-product basis throughout the 2021 calendar year. We will leverage 1st party solutions for customer feedback. Learn more
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. |
-
PowerShell host process crash on recursive class method invocation
Votes from Connect: 7
Original Date Submitted: 7/15/2015 6:52:19 AM
Description:
Contact Information
Handle: Trevor Sullivan [MVP]
Site Name: PowerShell
Feedback ID: 1546571
Frequency: PowerShell
Regression: class CrashMe {[void] BreakMe([bool] $ShouldIBreak) {
$this.BreakMe($ShouldIBreak);
}}
$MyCrashMe = [CrashMe]::new();
$MyCrashMe.BreakMe($true);Problem Description:
class CrashMe {[void] BreakMe([bool] $ShouldIBreak) {
$this.BreakMe($ShouldIBreak);
}}
$MyCrashMe = [CrashMe]::new();
$MyCrashMe.BreakMe($true);Product Studio item created by Connect Synchronizer due to creation of feedback ID 1546571 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1546571).
Repro Steps:
class CrashMe {[void] BreakMe([bool] $ShouldIBreak) {
$this.BreakMe($ShouldIBreak);
}}
$MyCrashMe = [CrashMe]::new();
$MyCrashMe.BreakMe($true);Expected Results:
Internal BugId: 15649
1 vote -
On Windows8.1 PowerShell calls ToString() method of an object when it is passed as argument to a script function.
Votes from Connect: 3
Original Date Submitted: 7/10/2015 6:50:26 PM
Description:
Contact Information
Handle: Dimitar Milov
Site Name: PowerShell
Feedback ID: 1529031
Frequency: PowerShell
Regression:Problem Description:
The issue seems to be OS specific and only reproduces on Windows 8/8.1 and Windows 10. When a .NET object instance is passed to a function as an argument the function calls the object's ToString method.Product Studio item created by Connect Synchronizer due to creation of feedback ID 1529031 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1529031).
Repro Steps:
Expected Results:
$Source = @"
using System;namespace Test
{public class TestClass
{private bool _ts;
public…1 vote -
Are there any PowerShell based programs for managing computers
Votes from Connect: 3
Original Date Submitted: 7/9/2015 7:50:44 AM
Description:
Contact Information
Handle: NICDoud
Site Name: PowerShell
Feedback ID: 1523059
Problem Description:
I've watched a lot of MVA videos on Powershell and automation. I'm looking for something like Kaseya and other management programs for companies that do out sourced IT. I have a lot of customers on seperate networks, domains, locations that I want to manage with power shell or a web interface.Something that can automate a lot of IT problems into a simple interface for users. Like System Center, but not limited to one domain or forest.
…
1 vote -
Get-Help -Parameter fails for common parameters
Votes from Connect: 5
Original Date Submitted: 7/7/2015 4:53:38 AM
Description:
Contact Information
Handle: June Blender
Site Name: PowerShell
Feedback ID: 1515009
Frequency: PowerShell
Regression: PS C:\ps-test> Get-Help Get-Command -Parameter PipelineVariable
Get-Help : No parameter matches criteria PipelineVariable.
At line:1 char:1
+ Get-Help Get-Command -Parameter PipelineVariable
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidArgument: (System.Manageme...CommandHelpInfo:ProviderCommandHelpInfo) [Get-Help], PSArgumen
tException
+ FullyQualifiedErrorId : NoParmsFound,Microsoft.PowerShell.Commands.GetHelpCommand
PS C:\ps-test> Get-Command Get-Command -ParameterName PipelineVariable
CommandType Name ModuleName
Cmdlet Get-Command Microsoft.PowerShell.Core
Problem Description:
Commands in this format:Get-Help <commandName> -Parameter <any_common_parameter>
return a PSArgumentException error, even when the command has the common parameter.
Get-Help Parameter parameter code needs a…
1 vote -
-Debug parameter does not behave as expected when using Write-Debug inside script and selecting "Yes to all"
Votes from Connect: 4
Original Date Submitted: 6/17/2015 8:18:36 AM
Description:
Contact Information
Handle: Tom Nolan [MSFT]
Site Name: PowerShell
Feedback ID: 1441324
Frequency: PowerShell
Regression: function Test-MyDebug
{[cmdletbinding()]
param
(
[parameter(ValueFromPipeline=$true)]
$InputObject
)
process
{
write-host "Value: $_" -ForegroundColor GreenWrite-Debug "Write-debug gets its own 'scope' for the last continue status of the debug preference"
Write-Debug "If you select 'Yes To All' on after any of these statements"
Write-Debug "It will have no effect, and you will continue to be prompted"
}}
1,2,3 | Test-MyDebug -Debug
Problem Description:
When using the -Debug parameter with [cmdletbinding()] inside a…1 vote -
Powershell Closes for no reason
Votes from Connect: 6
Original Date Submitted: 6/12/2015 2:25:25 AM
Description:
Contact Information
Handle: David Bernard
Site Name: PowerShell
Feedback ID: 1423742
Frequency: PowerShell
Regression: Type in:[datetime]$this = "adfasfasfadsf"
Problem Description:
I'm running PowerShell 4.0 on Windows 7 (x64). If I enter:[datetime]$this = "adfasfasfadsf"
I would expect to receive a conversion error, but instead the console just closes.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1423742 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1423742).
Repro Steps:
Type in:[datetime]$this = "adfasfasfadsf"
Expected Results:
This should generate a conversion error.Internal BugId: 15561
1 vote -
ISE for PowerShell Web Access
Votes from Connect: 4
Original Date Submitted: 6/5/2015 7:13:41 PM
Description:
Contact Information
Handle: William E. Anderson
Site Name: PowerShell
Feedback ID: 1402139
Problem Description:
You know, it'd be kind of nice to be able to have a version of the Integrated Scripting Engine available as an installable feature for PowerShell Web Access. There's been a couple of times where a thought of how to script something popped into my head and all I had was my phone. Word for mobile doesn't really give me what I would like for building scripts in this way.Product Studio item created by…
1 vote -
The Local Configuration Manager is not configured with a certificate.
Votes from Connect: 4
Original Date Submitted: 6/5/2015 1:21:21 AM
Description:
Contact Information
Handle: Bob Dean IT Pro
Site Name: PowerShell
Feedback ID: 1399853
Frequency: Desired State Configuration (DSC)
Regression: Build the LCM meta configuration.
Apply the LCM meta configuration to the target node.
Execute update-dscconfiguration on the target node.Problem Description:
The configuration for the LCM.
[DscLocalConfigurationManager()]
Configuration Meta
{Node $AllNodes.NodeName
{
Settings
{
RefreshFrequencyMins = 30
RefreshMode = "PULL"
ConfigurationModeFrequencyMins = 60
AllowModuleOverwrite = $true
RebootNodeIfNeeded = $true
ActionAfterReboot = "ContinueConfiguration"
ConfigurationMode = "ApplyAndMonitor"}
ConfigurationRepositoryWeb PullServer
{
ServerURL = $Node.PullServer
RegistrationKey = "My Registration Key"
ConfigurationNames…1 vote -
Error when deploying DSC Extension in Azure IaaS VM
Votes from Connect: 6
Original Date Submitted: 6/4/2015 6:00:09 AM
Description:
Contact Information
Handle: AlexWeiss
Site Name: PowerShell
Feedback ID: 1397136
Frequency: PowerShell
Regression: Run a deployment of 10 VMs with a JSON on IaaS V2 using ARM REST API
These 10 VMs must also have a DSC Extension resource deployed.Problem Description:
Hi Team,Wanted to share an error that happens when deploying a VM in Azure using the DSC Extension and Azure Resource Manager.
When the DSC extension try to install, it needs the WMF5 Preview Update but it receive the error below when installing multiple VM at…1 vote -
PowerShell does not accept all valid integer literals when accepting parameters interactively.
Votes from Connect: 5
Original Date Submitted: 6/2/2015 10:28:19 PM
Description:
Contact Information
Handle: uniquedisplaynameformypublicprofile
Site Name: PowerShell
Feedback ID: 1392738
Frequency: PowerShell
Regression: Create the function:
function Foo {param([Parameter(mandatory)][int]$Bar)
"OK - $Bar"}
This works:
Foo -Bar 1KB
(prints: OK - 1024)
Foo -Bar 1L
(prints: OK - 1)But this fails:
Foo
cmdlet Foo at command pipeline position 1
Supply values for the following parameters:
Bar: 1KB
(prints: Cannot recognize "1KB" as a System.Int32 due to a format error.)
Bar: 1D
(prints: Cannot recognize "1L" as a System.Int32 due to a format error.)Problem Description:
PowerShell does…1 vote -
Using Find-Module -Tag DSC with Install-Module causes the PowerShell Console to hang
Votes from Connect: 4
Original Date Submitted: 5/29/2015 3:12:46 AM
Description:
Contact Information
Handle: azhskr
Site Name: PowerShell
Feedback ID: 1377521
Frequency: PowerShell
Regression: Find-Module -Tag DSC | Install-Module -> Hangs with no errors
Find-Module -Name xActiveDirectory | Install-Module -> WorksProblem Description:
Find-Module -Tag DSC | Install-Module just hangs in the PowerShell Console. There is no error displayed and I have let it sit for 20 minutes before I finally had to close the console and reopen it. If I run the command Find-Module -Name xActiveDirectory | Install-Module it works as expected.Product Studio item created by Connect Synchronizer…
1 vote -
Windows PowerShell v5 - PowerShell Direct - Start-Job with -vmname parameter
Votes from Connect: 3
Original Date Submitted: 5/27/2015 9:24:37 PM
Description:
Contact Information
Handle: _TimPringle
Site Name: PowerShell
Feedback ID: 1373413
Frequency: PowerShell
Regression: Reproduction Steps Example 1
1) Start PowerShell (either as normal or run as administrator)
2) Type Start-Job -VMName, and use tab to parse through other parameters. These are only the common parameters.Reproduction Steps Example 2
1) Start PowerShell (either as normal or run as administrator)
2) Type get-command start-job -Syntax
3) The output should be similar to below, but the last four lines, which detail the use with the VM parameters, only indicate that the…1 vote -
Installation of KB3000850 on Win8.1 or WS2012R2 Causes PowerShell Script to Freeze with High CPU Utilization
Votes from Connect: 66
Original Date Submitted: 5/27/2015 8:46:16 AM
Description:
Contact Information
Handle: Frank E Lesniak
Site Name: PowerShell
Feedback ID: 1371736
Frequency: PowerShell
Regression: 1. Visit: https://gist.github.com/anonymous/572f42ba0ea7eec4f721#file-psclassreproreduced11-ps1
2. Click the "Raw" button. Copy the code to the clipboard
3. Open Notepad and paste the code from the clipboard. Save the file somewhere with file name: animal.ps1
(don't forget to change the file type to "All Files")
4. Execute the script using PowerShell.Problem Description:
I have a stock PowerShell template that I use as a starting point for many scripts; its code is used throughout my…1 vote -
Update -? common parameter
Votes from Connect: 4
Original Date Submitted: 5/21/2015 8:59:29 PM
Description:
Contact Information
Handle: Thomas Lee
Site Name: PowerShell
Feedback ID: 1353410
Problem Description:
-? is a great parameter for all cmdlets as it does a basic get-help. That's fine, but it would be nice to extend it as follows:Switch What it does
-?F Equivalent of Get-Help -FULL
-?D Equivalent of Get-Help -Detailed
-?E Equivalent of Get-Help -Example
-?o Equivalent of Get-Help -OnlineThe idea is to make it simlpler to get help for a cmdlet/function.
Product Studio item created by Connect Synchronizer due to creation of feedback ID…
1 vote -
Get-NetTCPConnection does not show ProcessID
Votes from Connect: 9
Original Date Submitted: 5/20/2015 3:14:12 PM
Description:
Contact Information
Handle: Joachim Meyer
Site Name: PowerShell
Feedback ID: 1349420
Frequency: PowerShell
Regression:Problem Description:
I guess that classifies more as a design flaw than a bug. Netstat.exe has the option -o that displays the owning Process ID for each connection. Get-NetTCPConnection should also add a property for the Process ID. Without the Process ID the Cmdlet is pretty useless (at least for me) and does not replace netstat.exe. (The underlying WMI class MSFT_NetTCPConnection does not include that property, too, so in this case additional code and a…1 vote -
Import-Module with -Name parameter breaks PowerShell ISE in WMF 5.0 April Preview
Votes from Connect: 10
Original Date Submitted: 5/19/2015 8:46:17 PM
Description:
Contact Information
Handle: azhskr
Site Name: PowerShell
Feedback ID: 1347198
Frequency: PowerShell ISE
Regression: Launch PowerShell ISE as either Administrator or non-Administrator
Get-Service BITS
Import-Module "Module Name"
Get-Module "Module Name"
Get-Service BITS
Remove-Module "Module Name"
Import-Module -Name "Module Name"
Get-Module -Name "Module Name"
Get-Module "Module Name"
Get-Service BITSProblem Description:
Using Import-Module -Name "Module Name" imports the module, but breaks all output in the ISE. Using Import-Module "Module Name" imports the module and doesn't affect the output.Product Studio item created by Connect Synchronizer due to creation of feedback…
1 vote -
Class constructor returns instance when exception is thrown
Votes from Connect: 7
Original Date Submitted: 5/19/2015 2:43:00 AM
Description:
Contact Information
Handle: Trevor Sullivan [MVP]
Site Name: PowerShell
Feedback ID: 1345058
Frequency: PowerShell
Regression: class BaconStrip {[string] $Length;
[string] $Width;[ValidateSet('Cooked', 'Raw')]
[string] $Status;[ValidateSet('Regular', 'Applewood', 'Smoked')]
[string] $Type;BaconStrip([string] $Type) {
$this.Type = $Type;
}[void] Cook() {
$this.Status = 'Cooked';
}}
Create a new BaconStrip instance with an invalid type
$MyBaconStrip = [BaconStrip]::new('Regular2');
This variable should be $null if an exception is thrown in the constructor
$MyBaconStrip;
Problem Description:
In April 2015 Preview of WMF 5.0 (version: 5.0.10105.0), when you construct a PowerShell class,…1 vote -
PowerShell copy on write behavior depends on operator type
Votes from Connect: 3
Original Date Submitted: 5/18/2015 2:02:46 AM
Description:
Contact Information
Handle: Sergey Teplyakov
Site Name: PowerShell
Feedback ID: 1341920
Frequency: PowerShell
Regression:Problem Description:
PowerShell uses copy-on-write semantic for inner scopes.This means that if you'll change outer variable in the inner scope then inner scope would deal with it's own copy. Here is an example:
$list = @(1, 2)
Function Foo
{
"Foo: initial value - $list"
$list = $list + 3
"Foo:$list: $list,
$global:list: $global:list"
}
The output would be:Foo: initial value - 1 2
Foo: $list: 1 2 3, $global:list: 1 2 …1 vote -
Support disk cleanup command's feature in PowerShell cmdlet
Votes from Connect: 12
Original Date Submitted: 5/9/2015 1:38:47 PM
Description:
Contact Information
Handle: kkamegawa
Site Name: PowerShell
Feedback ID: 1316211
Problem Description:
cleanmgr.exe do not install in Windows Server without desktop experience.
But ServerCoreOS cannot support desktop experience.I hope to support PowerShell's cmdlet same as cleanmgr.exe's feature.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1316211 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1316211).
Repro Steps:
Internal BugId: 14454
1 vote -
CMDlet for Copying the last command to the clipboard.
Votes from Connect: 10
Original Date Submitted: 5/6/2015 6:05:20 AM
Description:
Contact Information
Handle: Dan Anstis, AUS
Site Name: PowerShell
Feedback ID: 1306453
Problem Description:
It would be great if we could get a native CMDlet to copy the last command run into clipboard.
I currently do this via a Copy-Last function in my profile, however it is so handy that I would love it to be included on all PowerShell consoles that I use.My function is as follows (for example of what I would like to see:
function Copy-Last
{(Get-History)[-1].CommandLine | clip
}
Product Studio item created…
1 vote
- Don't see your idea?