# 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.
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

Set-VMProcessor -ExposeVirtualizationExtensions $true -VMName <VMNAME> Get-VMProcessor -VMName <VMNAME> This should show a column for ExposeVirtualizationExtensions but it doesn't 1 vote Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 2. ## 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 Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 3. ## Fix powershell Get-SecureUEFI to support the variable dbt. Get-SecureBootUEFI used the wrong GUID (EFI_GLOBAL_VARIABLE_GUID) so cause it can not get dbt. In UEFI spec 2.8, define the EFI_IMAGE_SECURITY_DATABASE2(dbt) should use the EFI_IMAGE_SECURITY_DATABASE_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 Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 4. ## Please enable port forwarding within PowerShell The very cool features on linux is about the port forwarding when we ssh to a remote server. I hope PowserShell come with these cool things. 10 votes Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 5. ## Filesystem PSProvider Doesn't Handle Folder with Trailing Space *-Item -Path "$home\try \it.txt" fails, even if "$home\try " exists. Note trailing space character after folder name. This has been observed for New-Item (using -Force), Get-Item, Get-ChildItem. This is on Windows 10 Enterprise versions PSH: 5.1.17763.592 + Winver: 1809 build 17763.678 PSH: 5.1.18362.145 + Winver: 1903 build 18362.295 2 votes Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 6. ## 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 Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 7. ## 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 Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 8. ## 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 Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 9. ## 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 10. ## convertto-json fails on result from Get-AzDiagnosticSetting The user reported an issue of Convertto-json cmdlet. Here is the details. Please take a loot at it. https://github.com/Azure/azure-powershell/issues/10216 1 vote Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 11. ## Add-VPNConnection AlwaysOn Trying to create a script to Add Always On VPN connections for remote users. The available scripts are so convoluted. I could easily do what I need if I could simply add the -AlwaysOn switch to Add-VPNConnection. 1 vote Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 12. ## BUG: WMI and CIM not able to find the CDPUserSvc service Get-WmiObject and Get-CimInstance are unable to find the CDPUserSvc service. Get-WmiObject -Namespace root\cimv2 -Query 'SELECT * FROM Win32_Service WHERE Name="CDPUserSvc"' Get-CimInstance -Namespace root\cimv2 -QueryDialect WQL -Query 'SELECT * FROM Win32_Service WHERE Name="CDPUserSvc"' The presence of this service can be confirmed with the Get-Service cmdlet: Get-Service -Name CDPUserSvc However, it works fine with other services. This behavior appears on a Windows 2019 server with native Framework and native PowerShell. Windows version: 17763.1.amd64fre.rs5_release.180914-1434 PS version: 5.1.17763.316 .Net Framework version: 4.7.03190 1 vote Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 13. ## SEHException I can't use power shell. If I open it, print these error ハンドルされていない例外: System.Runtime.InteropServices.SEHException: 外部コンポーネントが例外をスローしました。 場所 System.Reflection.RuntimeAssembly.GetResource(RuntimeAssembly assembly, String resourceName, UInt64& length, StackCrawlMarkHandle stackMark, Boolean skipSecurityCheck) 場所 System.Reflection.RuntimeAssembly.GetManifestResourceStream(String name, StackCrawlMark& stackMark, Boolean skipSecurityCheck) 場所 System.Resources.ManifestBasedResourceGroveler.GetManifestResourceStream(RuntimeAssembly satellite, String fileName, StackCrawlMark& stackMark) 場所 System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark) 場所 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark) 場所 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) 場所 System.Resources.ResourceManager.GetString(String name, CultureInfo culture) 場所 System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream) 場所 System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input) 場所 System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper() 場所 System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc() 場所 System.Management.Automation.Runspaces.PipelineThread.WorkerProc() 場所 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state,… 1 vote Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 14. ## Jupyter notebook kernel A Microsoft generated and supported kernel for the Jupyter Notebook/Lab users. There is one a fellow did up and it covers the basics but doesn't have auto-completion in the IDE, errors on some things, doesn't get updated much, etc. I use Jupyter to teach and getting a full on Microsoft supported kernel would be great. 2 votes Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 15. ## Serious MASSIVE BUG: Mount-DiskImage not scriptable Hi Mounting a ISO image is happening via Mount-DiskImage -ImagePath C:\ISO\isofile.iso -PassThru. This is working. BUT: the -ImagePath parameter doesn´t accept any(!) variables. This makes it absolute and total unusable in a script because usually the Path to a iso isn´t always static. If I have an static Path i can use the explorer. Its faster and easier. Dissapointing 3 votes Sign in (thinking…) Sign in with: Facebook Google Signed in as (Sign out) We’ll send you updates on this idea 16. ## Wrong path delimiters in archive (non-UNC) The "compress-archive" module stores path delimiters in non UNC format (backslashes instead of slashes) which differs from the builtin zipper in Win10 (Send to Zip-Archive). This leads to unrecognized files on decompression by i.e. Microsoft Dynamics NAV 2016 (decrompression of an imported zipfile "ControlAddIn.Zip") If you build the same archive with the Win10-Zipper, the files are recognized correctly. Used PS-Version : 5.1 build 18362 rev 145 Win10-Pro 64bit version: 10.0.18362.267 Command executed from Visual Studio: powershell Compress-Archive -Path ".\ControlAddIn\AddIn\*" -CompressionLevel Fastest -DestinationPath "$(SolutionDir)ControlAddIn.zip"
I cannot append the two Zip-Archives to let you compare these files by yourself therefore I post…

1 vote
(thinking…)
Signed in as (Sign out)

We’ll send you updates on this idea

17. ## "Using module" statement does not reload module after changes are made

Problem Description
------------------
If you are using the using module statement, it will load the module without any issues. However, if you make a change to the module and run the using module statement again without restarting your PowerShell session, it will not load the new modified module into memory, and instead will continue to use the old existing module that was loaded. This makes doing development with using module statements very tedious as you must continually reload your PowerShell session whenever you make changes to the module.

Ideally we would just use Import-Module -Name [module name] -Force` to avoid…

(thinking…)
Signed in as (Sign out)

We’ll send you updates on this idea

18. ## AzureAD cmdlets vs MSOL cmdlets

I am finding that the AzureAD cmdlets do not show me the same list of attributes for a user as the MSOL cmdlets you are deprecating. For example; our sharepoint people need to see the PreferredDataLocation value for content controls, this was available in MSOL and not easily in AzureAD. (I have included 2 user exports to show you what I mean) How do I make the AzureAD cmdlets do what MSOL does?

1 vote
(thinking…)
Signed in as (Sign out)

We’ll send you updates on this idea

19. ## Scheduledtask commands should support whatif

The -ScheduledTask commands that modify state should support the WhatIf parameter. They don't appear to currently as of Server 2016.

Specifying -WhatIf to Disable-ScheduledTask says the parameter is unknown.

1 vote
(thinking…)
Signed in as (Sign out)

We’ll send you updates on this idea

On some of our servers, when using cmdlet "Add-MpPreference", we got error of "Provider load failure", after some investigation, we found following issues for WMI to create files? Did anyone experience similar issues before?

wmiprvse.exe 7488 CreateFile C:\Windows\System32\wbem\NCObjAPI.DLL NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
wmiprvse.exe 7488 CreateFile C:\Windows\System32\wbem\wbemcomn.dll NAME NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

1 vote