![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Powershell
文章平均质量分 66
海豚六号
这个作者很懒,什么都没留下…
展开
-
A simple Powershell script to monitor CUP/Mem utilization
#import powershell community extensions for increased functionality Import-Module Pscx #import vmware cli Add-PSSnapin "Vmware.VimA原创 2011-10-13 11:09:07 · 722 阅读 · 0 评论 -
The Secret of String Formating
One of the great features of PowerShell is that much formatting is done for free. For example, to find out the size of a particular file you could just enter: PSH [D:\foo]: ls demo-format.txt原创 2012-08-28 16:41:05 · 754 阅读 · 0 评论 -
Restart-Computer enhanced in powershell V3
In PowerShell v3, Restart-Computer now has a number of useful newparameters. For example, you can restart a remote machine and wait for thereboot process to finish. -Wait: Halts the script until th原创 2012-08-24 10:01:45 · 1973 阅读 · 0 评论 -
Powersehll有哪些运算符
Powershell有哪些运行符?当然Google有答案,也许Baidu也有答案。不过我决定还是先问Powershell试试。所以我尝试了这么一条命令: PS F:\> help about_operator 嘿,蒙对了,这里果然有Powershell运算符的详细介绍。 Powershell支持运算符主要有这么几种类型: √ 算术运算符:用于进行数值计算转载 2012-07-20 16:05:35 · 1447 阅读 · 0 评论 -
Powershell invokes FTP scripts
Do you have the requirement to transfer file from Windows to Linux? Do you want your script get this job done automatically, maybe you prefer Powershell. As for as i know Powershell doesn't suppor原创 2012-07-11 17:52:39 · 886 阅读 · 0 评论 -
Using Functions after the Pipeline
我们都知道Powershell普通函数的声明的样子,使用也很简单: function(关键字) 函数名 (参数) {代码} 比如: function add ($x,$y) { $n = $x + $y “$x+$y=$n” }原创 2011-10-19 15:14:25 · 586 阅读 · 0 评论 -
Find and delete unused VM snapshot
#import powershell community extensions for increased functionality Import-Module Pscx #import vmware cli Add-PSSnapin "Vmware.VimAutomati原创 2011-10-13 11:15:43 · 755 阅读 · 0 评论 -
How To Load .NET Assemblies In A PowerShell Session
PowerShell (the engine) runs fine under .NET 4.0. PowerShell ( the console host and the ISE) do not, simply because they were compiled again原创 2011-10-13 16:07:18 · 648 阅读 · 0 评论 -
Powershell uses .Net DLL is pretty simple
Step1 :Create a C sharp DLL project like below: using System; using System.Collections.Generic; using System.Linq; using System.Text; nam原创 2011-10-13 16:13:19 · 659 阅读 · 0 评论 -
Disk usage monitoring
# To monitor disk space usage $volumeSet = Get-WmiObcject -Class win32_volume -ComputerName localhost -filter "drivetype = 3"原创 2011-10-13 11:12:17 · 585 阅读 · 0 评论 -
Powershell: Get Content Faster with ReadCount!
Do you use Powershell? Do you use Get-Content in Powershell to read files? Do you sometimes work with large text files? If you answered yes to any of the questions above, then read on - this po转载 2013-04-28 11:28:20 · 1452 阅读 · 0 评论