小程序页面之间进行传值的操作办法
1441
2022-09-17
PowerShell Select-Object 选择要显示的列#yyds干货盘点#
环境配置说明
Windows 21H1 PSVersion 5.1.19041.1320
PS C:\Users\admin> Get-Process | Select-Object Id,Name,CPU | Sort-Object CPU -Descending | Select-Object -First 10 Id Name CPU -- ---- --- 3204 Code 190.59375 6648 powershell_ise 145.203125 6900 vmtoolsd 115.71875 3608 Code 102.921875 640 Code 102.125 4636 explorer 67.53125 6548 msedge 59.1875 2664 SGTool 51.171875 6676 msedge 50.078125 6992 msedge 37.15625
Select-Object中的列名可以通过get-member来查看
PS C:\Users\admin> Get-Process | Get-Member TypeName:System.Diagnostics.Process Name MemberType Definition ---- ---------- ---------- Handles AliasProperty Handles = Handlecount Name AliasProperty Name = ProcessName NPM AliasProperty NPM = NonpagedSystemMemorySize64 PM AliasProperty PM = PagedMemorySize64 SI AliasProperty SI = SessionId VM AliasProperty VM = VirtualMemorySize64 WS AliasProperty WS = WorkingSet64 Disposed Event System.EventHandler Disposed(Syste... ErrorDataReceived Event System.Diagnostics.DataReceivedEve... Exited Event System.EventHandler Exited(System.... OutputDataReceived Event System.Diagnostics.DataReceivedEve... BeginErrorReadLine Method void BeginErrorReadLine() BeginOutputReadLine Method void BeginOutputReadLine() CancelErrorRead Method void CancelErrorRead() CancelOutputRead Method void CancelOutputRead() Close Method void Close() CloseMainWindow Method bool CloseMainWindow() CreateObjRef Method System.Runtime.Remoting.ObjRef Cre... Dispose Method void Dispose(), void IDisposable.D... Equals Method bool Equals(System.Object obj) GetHashCode Method int GetHashCode() GetLifetimeService Method System.Object GetLifetimeService() GetType Method type GetType() InitializeLifetimeService Method System.Object InitializeLifetimeSe... Kill Method void Kill() Refresh Method void Refresh() Start Method bool Start() ToString Method string ToString() WaitForExit Method bool WaitForExit(int milliseconds)... WaitForInputIdle Method bool WaitForInputIdle(int millisec... __NounName NoteProperty string __NounName=Process BasePriority Property int BasePriority {get;} Container Property System.ComponentModel.IContainer C... EnableRaisingEvents Property bool EnableRaisingEvents {get;set;} ExitCode Property int ExitCode {get;} ExitTime Property datetime ExitTime {get;} Handle Property System.IntPtr Handle {get;} HandleCount Property int HandleCount {get;} HasExited Property bool HasExited {get;} Id Property int Id {get;} MachineName Property string MachineName {get;} MainModule Property System.Diagnostics.ProcessModule M... MainWindowHandle Property System.IntPtr MainWindowHandle {get;} MainWindowTitle Property string MainWindowTitle {get;} MaxWorkingSet Property System.IntPtr MaxWorkingSet {get;s... MinWorkingSet Property System.IntPtr MinWorkingSet {get;s... Modules Property System.Diagnostics.ProcessModuleCo... NonpagedSystemMemorySize Property int NonpagedSystemMemorySize {get;} NonpagedSystemMemorySize64 Property long NonpagedSystemMemorySize64 {g... PagedMemorySize Property int PagedMemorySize {get;} PagedMemorySize64 Property long PagedMemorySize64 {get;} PagedSystemMemorySize Property int PagedSystemMemorySize {get;} PagedSystemMemorySize64 Property long PagedSystemMemorySize64 {get;} PeakPagedMemorySize Property int PeakPagedMemorySize {get;} PeakPagedMemorySize64 Property long PeakPagedMemorySize64 {get;} PeakVirtualMemorySize Property int PeakVirtualMemorySize {get;} PeakVirtualMemorySize64 Property long PeakVirtualMemorySize64 {get;} PeakWorkingSet Property int PeakWorkingSet {get;} PeakWorkingSet64 Property long PeakWorkingSet64 {get;} PriorityBoostEnabled Property bool PriorityBoostEnabled {get;set;} PriorityClass Property System.Diagnostics.ProcessPriority... PrivateMemorySize Property int PrivateMemorySize {get;} PrivateMemorySize64 Property long PrivateMemorySize64 {get;} PrivilegedProcessorTime Property timespan PrivilegedProcessorTime {... ProcessName Property string ProcessName {get;} ProcessorAffinity Property System.IntPtr ProcessorAffinity {g... Responding Property bool Responding {get;} SafeHandle Property Microsoft.Win32.SafeHandles.SafePr... SessionId Property int SessionId {get;} Site Property System.ComponentModel.ISite Site {... StandardError Property System.IO.StreamReader StandardErr... StandardInput Property System.IO.StreamWriter StandardInp... StandardOutput Property System.IO.StreamReader StandardOut... StartInfo Property System.Diagnostics.ProcessStartInf... StartTime Property datetime StartTime {get;} SynchronizingObject Property System.ComponentModel.ISynchronize... Threads Property System.Diagnostics.ProcessThreadCo... TotalProcessorTime Property timespan TotalProcessorTime {get;} UserProcessorTime Property timespan UserProcessorTime {get;} VirtualMemorySize Property int VirtualMemorySize {get;} VirtualMemorySize64 Property long VirtualMemorySize64 {get;} WorkingSet Property int WorkingSet {get;} WorkingSet64 Property long WorkingSet64 {get;} PSConfiguration PropertySet PSConfiguration {Name, Id, Priorit... PSResources PropertySet PSResources {Name, Id, Handlecount... Company ScriptProperty System.Object Company {get=$this.M... CPU ScriptProperty System.Object CPU {get=$this.Total... Description ScriptProperty System.Object Description {get=$th... FileVersion ScriptProperty System.Object FileVersion {get=$th... Path ScriptProperty System.Object Path {get=$this.Main... Product ScriptProperty System.Object Product {get=$this.M... ProductVersion ScriptProperty System.Object ProductVersion {get=...
学习资料
PowerShell 版本 + 工具 PowerShell/PowerShell 51CTO社区
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~