-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
If I'm doing "dir" on a network mapped drive the output is extremly slow, I can read line by line.
Output to screen:
u is a network drive
$start=(Get-Date)
dir u:\ # lists 580 entries
$end=(Get-Date)
$end-$start
Output to null:
u is a network drive
$start=(Get-Date)
dir u:\ | out-null # lists 580 entries
$end=(Get-Date)
$end-$start
Expected behavior
Roughly the same time (1 second)Actual behavior
Output to screen:
Ticks : 280979347
Days : 0
Hours : 0
Milliseconds : 97
Microseconds : 934
Nanoseconds : 700
Minutes : 0
Seconds : 28
TotalDays : 0,000325207577546296
TotalHours : 0,00780498186111111
TotalMilliseconds : 28097,9347
TotalMicroseconds : 28097934,7
TotalNanoseconds : 28097934700
TotalMinutes : 0,468298911666667
TotalSeconds : 28,0979347
Output to null:
Days : 0
Hours : 0
Minutes : 0
Seconds : 0
Milliseconds : 989
Ticks : 9892260
TotalDays : 1,1449375E-05
TotalHours : 0,000274785
TotalMinutes : 0,0164871
TotalSeconds : 0,989226
TotalMilliseconds : 989,226Error details
doing a "dir" on a network drive takes 28 seconds to list a network drive
With CMD it's instant (same as output to null in Powershell)
The problem is independant if I use PS7 directly or via Terminal, so it's not the screenput itself that is slowing it.Environment data
Name Value
---- -----
PSVersion 7.6.0
PSEdition Core
GitCommitId 7.6.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime