windows-运维-05 初识PowerShell
什么是PowerShell
Powershell 是运行在windows机器上实现系统和应用程序管理自动化的命令行脚本环境。你可以把它看成是命令行提示符cmd.exe的扩充,不对,应当是颠覆。 powershell需要.NET环境的支持,同时支持.NET对象。微软之所以将Powershell 定位为Power,并不是夸大其词,因为它完全支持对象。其可读性,易用性,可以位居当前所有shell之首。 当前powershell有四版本,分别为1.0,2.0,3.0 ,4.0
- 如果您的系统是window7或者Windows Server 2008,那么PowerShell 2.0已经内置了,可以升级为3.0,4.0。
- 如果您的系统是Windows 8 或者Windows server 2012,那么PowerShell 3.0已经内置了,可以升级为4.0。
- 如果您的系统为Windows 8.1或者Windows server 2012 R2,那默认已经是4.0了。
Powershell 自定义控制台
打开虚拟机或者物理机,打开你powershell,右击powershell的标题栏选择”属性”弹出powershell控制台对话框。在这里有四个选项卡:选项、字体、布局和颜色。
Powershell 编辑模式
powershell控制台有两种模式,一个是快速编辑模式,一个是标准模式。
快速编辑模式和标准模式的切换可以通过控制台标题栏->鼠标右击->属性->选项->编辑选项 。
- Powershell标准模式
鼠标右击选择标记后才能实现复制和粘切功能。 - Powershell快速编辑模式
可以通过鼠标左键选择任意矩形区域内的文本,并且鼠标右击实现复制功能。
Powershell的快捷键
ALT+F7 | 清除命令的历史记录 |
---|---|
PgUp PgDn | 显示当前会话的第一个命令和最后一个命令 |
Enter | 执行当前命令 |
End | 将光标移至当前命令的末尾 |
Del | 从右开始删除输入的命令字符 |
Esc | 清空当前命令行 |
F2 | 自动补充历史命令至指定字符 (例如历史记录中存在Get-Process,按F2,提示”Enter char to copy up to”,键入‘s’,自动补齐命令:Get-Proce) |
F4 | 删除命令行至光标右边指定字符处 |
F7 | 对话框显示命令行历史记录 |
F8 | 检索包含指定字符的命令行历史记录 |
F9 | 根据命令行的历史记录编号选择命令,历史记录编号可以通过F7查看 |
左/右方向键 | 左右移动光标 |
上/下方向键 | 切换命令行的历史记录 |
Home | 光标移至命令行最左端 |
Backspace | 从右删除命令行字符 |
Ctrl+C | 取消正在执行的命令 |
Ctrl+左/右方向键 | 在单词之间移动光标 |
Ctrl+Home | 删除光标最左端的所有字符 |
Tab | 自动补齐命令或者文件名 |
Powershell交互式
Powershell 进行数学运算
我们可以把powershell当成一个计算器。象键入命令行那样输入数学表达式,回车,powershell会自动计算并把结果输出。常用的加减乘除模(+,-,*,/,%)运算和小括号表达式都支持。
1 | PS C:\pstest> 1+2+3 |
PowerShell也能自动识别计算机容量单位,包括KB,MB,GB,TB,PB
1 | PS C:\pstest> 1pb/1tb |
假如一个网站每个页面大小为80kb,统计显示每天的PV操作为800,1个月下来占用的带宽:
1 | PS C:\pstest> 80kb*800*30/1gb |
假如一个网站的每天人均PV操作为5,页面大小为80Kb,主机提供商限制的总流量为10G,那平均每天的最大访客数
为:
1 | PS C:pstest> 10GB/(80KB*5)/30 |
Powershell变量
定义变量
变量可以临时保存数据,因此可以把数据保存在变量中,以便进一步操作。
1 | #定义变量 |
powershell 不需要显示地去声明,可以自动创建变量,只须记住变量的前缀为$.
创建好了变量后,可以通过变量名输出变量,也可以把变量名存在字符串中。但是有个例外单引号中的字符串不会识别和处理变量名。
选择变量名
在powershell中变量名均是以美元符”$”开始,剩余字符可以是数字、字母、下划线的任意字符,并且powershell变量名大小写不敏感($a和$A 是同一个变量)。
某些特殊的字符在powershell中有特殊的用途,一般不推荐使用这些字符作为变量名。当然你硬要使用,请把整个变量名后缀用花括号括起来。
1 | PS C:\test> ${"I"like $}="mossfly" |
赋值和返回值
赋值操作符为“=”,几乎可以把任何数据赋值给一个变量,甚至一条cmdlet命令,为什么,因为Powershell支持对象,对象可以包罗万象。
1 | PS C:\test> $item=Get-ChildItem . |
给多个变量同时赋值
赋值操作符不仅能给一个变量赋值,还可以同时给多个变量赋相同的值。
1 | PS C:\test> $a=$b=$c=123 |
交换变量的值
要交换两个变量的值,传统的程序语言至少需要三步,并且还需定义一个中间临时变量。
1 | $Value1 = 10 |
在powershell中,交换两个变量的值,这个功能变得非常简单。
1 | PS C:\test> $value1=10 |
查看正在使用的变量
Powershell将变量的相关信息的记录存放在名为variable:的驱动中。如果要查看所有定义的变量,可以直接遍历variable:
1 | PS C:\test> ls variable: |
查找变量
因为有虚拟驱动variable:的存在,可以象查找文件那样使用通配符查找变量。例如要查询以value打头的变量名。
1 | PS C:\test> ls variable:value* |
验证变量是否存在
验证一个变量是否存在,仍然可以象验证文件系统那样,使用cmdlet Test-Path。为什么?因为变量存在变量驱动器中。
1 | PS C:\test> Test-Path variable:value1 |
删除变量
因为变量会在powershell退出或关闭时,自动清除。一般没必要删除,但是你非得删除,也可以象删除文件那样删除它
1 | PS C:\test> Test-Path variable:value1 |
使用专用的变量命令
为了管理变量,powershell提供了五个专门管理变量的命令Clear-Variable,Get-Variable,New-Variable,Remove-Variable,Set-Variable。因为虚拟驱动器variable:的存在,clear,remove,set打头的命令可以被代替。但是Get-Variable,New-Variable。却非常有用new-variable可以在定义变量时,指定变量的一些其它属性,比如访问权限。同样Get-Variable也可以获取这些附加信息。
变量写保护(创建常量)
可以使用New-Variable 的option选项 在创建变量时,给变量加上只读属性,这样就不能给变量重新赋值了。
1 | PS C:\test> New-Variable num -Value 100 -Force -Option readonly |
但是可以通过删除变量,再重新创建变量更新变量内容。
1 | PS C:\test> del Variable:num -Force |
有没有权限更高的变量,有,那就是:选项Constant,常量一旦声明,不可修改
1 | PS C:\test> new-variable num -Value "strong" -Option constant |
变量描述
在New-Variable 可以通过-description 添加变量描述,但是变量描述默认不会显示,可以通过Format-List 查看。
1 | PS C:\test> new-variable name -Value "me" -Description "This is my name" |
执行外部命令
Powershell能像cmd一样执行外部命令
通过netstat查看网络端口状态
1 | PS C:\PS> netstat |
route print 查看本机路由信息
1 | PS C:\PS> route print |
启动CMD控制台
启动CMD控制台键入cmd或者cmd.exe,退出cmd可以通过命令exit。
1 | PS C:\PS> cmd |
查找可用的Cmd控制台命令
Cmd.exe 通过 /c 来接收命令参数,在Cmd中help可以查看可用的命令,所以可以通过Cmd /c help 查找可用的Cmd控制台命令
1 | PS C:\PS> cmd /c help |
命令集 cmdlets
cmdlets是Powershell的内部命令,cmdlet的类型名为System.Management.Automation.CmdletInfo,包含下列属性和方法:
Name | MemberType | Definition | |||
---|---|---|---|---|---|
Equals | Method | bool Equals(System.Object obj) | |||
GetHashCode | Method | int GetHashCode() | |||
GetType | Method | type GetType() | |||
ToString | Method | string ToString() | |||
CommandType | Property | System.Management.Automation.CommandTypes CommandType {get;} | |||
DefaultParameterSet | Property | System.String DefaultParameterSet {get;} | |||
Definition | Property | System.String Definition {get;} | |||
HelpFile | Property | System.String HelpFile {get;} | |||
ImplementingType | Property | System.Type ImplementingType {get;} | |||
Module | Property | System.Management.Automation.PSModuleInfo Module {get;} | |||
ModuleName | Property | System.String ModuleName {get;} | |||
Name | Property | System.String Name {get;} | |||
Noun | Property | System.String Noun {get;} | |||
OutputType | Property | System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.PSTypeName, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] OutputType {get;} | |||
Parameters | Property | System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Management.Automation.ParameterMetadata, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Parameters {get;} | |||
ParameterSets | Property | System.Collections.ObjectModel.ReadOnlyCollection`1[[System.Management.Automation.CommandParameterSetInfo, System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] ParameterSets {get;} | |||
PSSnapIn | Property | System.Management.Automation.PSSnapInInfo PSSnapIn {get;} | |||
Verb | Property | System.String Verb {get;} | |||
Visibility | Property | System.Management.Automation.SessionStateEntryVisibility Visibility {get;set;} | |||
DLL | ScriptProperty | System.Object DLL {get=$this.ImplementingType.Assembly.Location;} | |||
HelpUri | ScriptProperty | System.Object HelpUri {get=try { # ok to cast CommandTypes enum to HelpCategory because string/indentifier for # cmdlet,function,filter,alias,externalscript is identical. # it is ok to fail for other enum values (i.e. for Application) $helpObject = get-help -Name ($this.Name) -Category (string) -ErrorAction SilentlyContinue# return first non-null uri (and try not to hit any strict mode things) if ($helpObject -eq $null) { return $null } if ($helpObject.psobject.properties[‘relatedLinks’] -eq $null) { return $null } if ($helpObject.relatedLinks.psobject.properties[‘navigationLink’] -eq $null) { return $null } $helpUri = [string]$( $helpObject.relatedLinks.navigationLink \ | %{ if ($.psobject.properties[‘uri’] -ne $null) { $.uri } } \ | ?{ $_ } \ | select -first 1 ) return $helpUri } catch {};} |
下面是全部的Cmdlets命令
每个命令有一个动词和名词组成,命令的作用一目了然。
Name | ModuleName | Help |
---|---|---|
Add-Computer | Microsoft.PowerShell.Management | help |
Add-Content | Microsoft.PowerShell.Management | help |
Add-History | Microsoft.PowerShell.Core | help |
Add-Member | Microsoft.PowerShell.Utility | help |
Add-PSSnapin | Microsoft.PowerShell.Core | help |
Add-Type | Microsoft.PowerShell.Utility | help |
Checkpoint-Computer | Microsoft.PowerShell.Management | help |
Clear-Content | Microsoft.PowerShell.Management | help |
Clear-EventLog | Microsoft.PowerShell.Management | help |
Clear-History | Microsoft.PowerShell.Core | help |
Clear-Item | Microsoft.PowerShell.Management | help |
Clear-ItemProperty | Microsoft.PowerShell.Management | help |
Clear-Variable | Microsoft.PowerShell.Utility | help |
Compare-Object | Microsoft.PowerShell.Utility | help |
Complete-Transaction | Microsoft.PowerShell.Management | help |
Connect-WSMan | Microsoft.WSMan.Management | help |
ConvertFrom-Csv | Microsoft.PowerShell.Utility | help |
ConvertFrom-SecureString | Microsoft.PowerShell.Security | help |
ConvertFrom-StringData | Microsoft.PowerShell.Utility | help |
Convert-Path | Microsoft.PowerShell.Management | help |
ConvertTo-Csv | Microsoft.PowerShell.Utility | help |
ConvertTo-Html | Microsoft.PowerShell.Utility | help |
ConvertTo-SecureString | Microsoft.PowerShell.Security | help |
ConvertTo-Xml | Microsoft.PowerShell.Utility | help |
Copy-Item | Microsoft.PowerShell.Management | help |
Copy-ItemProperty | Microsoft.PowerShell.Management | help |
Debug-Process | Microsoft.PowerShell.Management | help |
Disable-ComputerRestore | Microsoft.PowerShell.Management | help |
Disable-PSBreakpoint | Microsoft.PowerShell.Utility | help |
Disable-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Disable-WSManCredSSP | Microsoft.WSMan.Management | help |
Disconnect-WSMan | Microsoft.WSMan.Management | help |
Enable-ComputerRestore | Microsoft.PowerShell.Management | help |
Enable-PSBreakpoint | Microsoft.PowerShell.Utility | help |
Enable-PSRemoting | Microsoft.PowerShell.Core | help |
Enable-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Enable-WSManCredSSP | Microsoft.WSMan.Management | help |
Enter-PSSession | Microsoft.PowerShell.Core | help |
Exit-PSSession | Microsoft.PowerShell.Core | help |
Export-Alias | Microsoft.PowerShell.Utility | help |
Export-Clixml | Microsoft.PowerShell.Utility | help |
Export-Console | Microsoft.PowerShell.Core | help |
Export-Counter | Microsoft.PowerShell.Diagnostics | help |
Export-Csv | Microsoft.PowerShell.Utility | help |
Export-FormatData | Microsoft.PowerShell.Utility | help |
Export-ModuleMember | Microsoft.PowerShell.Core | help |
Export-PSSession | Microsoft.PowerShell.Utility | help |
ForEach-Object | Microsoft.PowerShell.Core | help |
Format-Custom | Microsoft.PowerShell.Utility | help |
Format-List | Microsoft.PowerShell.Utility | help |
Format-Table | Microsoft.PowerShell.Utility | help |
Format-Wide | Microsoft.PowerShell.Utility | help |
Get-Acl | Microsoft.PowerShell.Security | help |
Get-Alias | Microsoft.PowerShell.Utility | help |
Get-AuthenticodeSignature | Microsoft.PowerShell.Security | help |
Get-ChildItem | Microsoft.PowerShell.Management | help |
Get-Command | Microsoft.PowerShell.Core | help |
Get-ComputerRestorePoint | Microsoft.PowerShell.Management | help |
Get-Content | Microsoft.PowerShell.Management | help |
Get-Counter | Microsoft.PowerShell.Diagnostics | help |
Get-Credential | Microsoft.PowerShell.Security | help |
Get-Culture | Microsoft.PowerShell.Utility | help |
Get-Date | Microsoft.PowerShell.Utility | help |
Get-Event | Microsoft.PowerShell.Utility | help |
Get-EventLog | Microsoft.PowerShell.Management | help |
Get-EventSubscriber | Microsoft.PowerShell.Utility | help |
Get-ExecutionPolicy | Microsoft.PowerShell.Security | help |
Get-FormatData | Microsoft.PowerShell.Utility | help |
Get-Help | Microsoft.PowerShell.Core | help |
Get-History | Microsoft.PowerShell.Core | help |
Get-Host | Microsoft.PowerShell.Utility | help |
Get-HotFix | Microsoft.PowerShell.Management | help |
Get-Item | Microsoft.PowerShell.Management | help |
Get-ItemProperty | Microsoft.PowerShell.Management | help |
Get-Job | Microsoft.PowerShell.Core | help |
Get-Location | Microsoft.PowerShell.Management | help |
Get-Member | Microsoft.PowerShell.Utility | help |
Get-Module | Microsoft.PowerShell.Core | help |
Get-PfxCertificate | Microsoft.PowerShell.Security | help |
Get-Process | Microsoft.PowerShell.Management | help |
Get-PSBreakpoint | Microsoft.PowerShell.Utility | help |
Get-PSCallStack | Microsoft.PowerShell.Utility | help |
Get-PSDrive | Microsoft.PowerShell.Management | help |
Get-PSProvider | Microsoft.PowerShell.Management | help |
Get-PSSession | Microsoft.PowerShell.Core | help |
Get-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Get-PSSnapin | Microsoft.PowerShell.Core | help |
Get-Random | Microsoft.PowerShell.Utility | help |
Get-Service | Microsoft.PowerShell.Management | help |
Get-TraceSource | Microsoft.PowerShell.Utility | help |
Get-Transaction | Microsoft.PowerShell.Management | help |
Get-UICulture | Microsoft.PowerShell.Utility | help |
Get-Unique | Microsoft.PowerShell.Utility | help |
Get-Variable | Microsoft.PowerShell.Utility | help |
Get-WinEvent | Microsoft.PowerShell.Diagnostics | help |
Get-WmiObject | Microsoft.PowerShell.Management | help |
Get-WSManCredSSP | Microsoft.WSMan.Management | help |
Get-WSManInstance | Microsoft.WSMan.Management | help |
Group-Object | Microsoft.PowerShell.Utility | help |
Import-Alias | Microsoft.PowerShell.Utility | help |
Import-Clixml | Microsoft.PowerShell.Utility | help |
Import-Counter | Microsoft.PowerShell.Diagnostics | help |
Import-Csv | Microsoft.PowerShell.Utility | help |
Import-LocalizedData | Microsoft.PowerShell.Utility | help |
Import-Module | Microsoft.PowerShell.Core | help |
Import-PSSession | Microsoft.PowerShell.Utility | help |
Invoke-Command | Microsoft.PowerShell.Core | help |
Invoke-Expression | Microsoft.PowerShell.Utility | help |
Invoke-History | Microsoft.PowerShell.Core | help |
Invoke-Item | Microsoft.PowerShell.Management | help |
Invoke-WmiMethod | Microsoft.PowerShell.Management | help |
Invoke-WSManAction | Microsoft.WSMan.Management | help |
Join-Path | Microsoft.PowerShell.Management | help |
Limit-EventLog | Microsoft.PowerShell.Management | help |
Measure-Command | Microsoft.PowerShell.Utility | help |
Measure-Object | Microsoft.PowerShell.Utility | help |
Move-Item | Microsoft.PowerShell.Management | help |
Move-ItemProperty | Microsoft.PowerShell.Management | help |
New-Alias | Microsoft.PowerShell.Utility | help |
New-Event | Microsoft.PowerShell.Utility | help |
New-EventLog | Microsoft.PowerShell.Management | help |
New-Item | Microsoft.PowerShell.Management | help |
New-ItemProperty | Microsoft.PowerShell.Management | help |
New-Module | Microsoft.PowerShell.Core | help |
New-ModuleManifest | Microsoft.PowerShell.Core | help |
New-Object | Microsoft.PowerShell.Utility | help |
New-PSDrive | Microsoft.PowerShell.Management | help |
New-PSSession | Microsoft.PowerShell.Core | help |
New-PSSessionOption | Microsoft.PowerShell.Core | help |
New-Service | Microsoft.PowerShell.Management | help |
New-TimeSpan | Microsoft.PowerShell.Utility | help |
New-Variable | Microsoft.PowerShell.Utility | help |
New-WebServiceProxy | Microsoft.PowerShell.Management | help |
New-WSManInstance | Microsoft.WSMan.Management | help |
New-WSManSessionOption | Microsoft.WSMan.Management | help |
Out-Default | Microsoft.PowerShell.Utility | help |
Out-File | Microsoft.PowerShell.Utility | help |
Out-GridView | Microsoft.PowerShell.Utility | help |
Out-Host | Microsoft.PowerShell.Utility | help |
Out-Null | Microsoft.PowerShell.Utility | help |
Out-Printer | Microsoft.PowerShell.Utility | help |
Out-String | Microsoft.PowerShell.Utility | help |
Pop-Location | Microsoft.PowerShell.Management | help |
Push-Location | Microsoft.PowerShell.Management | help |
Read-Host | Microsoft.PowerShell.Utility | help |
Receive-Job | Microsoft.PowerShell.Core | help |
Register-EngineEvent | Microsoft.PowerShell.Utility | help |
Register-ObjectEvent | Microsoft.PowerShell.Utility | help |
Register-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Register-WmiEvent | Microsoft.PowerShell.Management | help |
Remove-Computer | Microsoft.PowerShell.Management | help |
Remove-Event | Microsoft.PowerShell.Utility | help |
Remove-EventLog | Microsoft.PowerShell.Management | help |
Remove-Item | Microsoft.PowerShell.Management | help |
Remove-ItemProperty | Microsoft.PowerShell.Management | help |
Remove-Job | Microsoft.PowerShell.Core | help |
Remove-Module | Microsoft.PowerShell.Core | help |
Remove-PSBreakpoint | Microsoft.PowerShell.Utility | help |
Remove-PSDrive | Microsoft.PowerShell.Management | help |
Remove-PSSession | Microsoft.PowerShell.Core | help |
Remove-PSSnapin | Microsoft.PowerShell.Core | help |
Remove-Variable | Microsoft.PowerShell.Utility | help |
Remove-WmiObject | Microsoft.PowerShell.Management | help |
Remove-WSManInstance | Microsoft.WSMan.Management | help |
Rename-Item | Microsoft.PowerShell.Management | help |
Rename-ItemProperty | Microsoft.PowerShell.Management | help |
Reset-ComputerMachinePassword | Microsoft.PowerShell.Management | help |
Resolve-Path | Microsoft.PowerShell.Management | help |
Restart-Computer | Microsoft.PowerShell.Management | help |
Restart-Service | Microsoft.PowerShell.Management | help |
Restore-Computer | Microsoft.PowerShell.Management | help |
Resume-Service | Microsoft.PowerShell.Management | help |
Select-Object | Microsoft.PowerShell.Utility | help |
Select-String | Microsoft.PowerShell.Utility | help |
Select-Xml | Microsoft.PowerShell.Utility | help |
Send-MailMessage | Microsoft.PowerShell.Utility | help |
Set-Acl | Microsoft.PowerShell.Security | help |
Set-Alias | Microsoft.PowerShell.Utility | help |
Set-AuthenticodeSignature | Microsoft.PowerShell.Security | help |
Set-Content | Microsoft.PowerShell.Management | help |
Set-Date | Microsoft.PowerShell.Utility | help |
Set-ExecutionPolicy | Microsoft.PowerShell.Security | help |
Set-Item | Microsoft.PowerShell.Management | help |
Set-ItemProperty | Microsoft.PowerShell.Management | help |
Set-Location | Microsoft.PowerShell.Management | help |
Set-PSBreakpoint | Microsoft.PowerShell.Utility | help |
Set-PSDebug | Microsoft.PowerShell.Core | help |
Set-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Set-Service | Microsoft.PowerShell.Management | help |
Set-StrictMode | Microsoft.PowerShell.Core | help |
Set-TraceSource | Microsoft.PowerShell.Utility | help |
Set-Variable | Microsoft.PowerShell.Utility | help |
Set-WmiInstance | Microsoft.PowerShell.Management | help |
Set-WSManInstance | Microsoft.WSMan.Management | help |
Set-WSManQuickConfig | Microsoft.WSMan.Management | help |
Show-EventLog | Microsoft.PowerShell.Management | help |
Sort-Object | Microsoft.PowerShell.Utility | help |
Split-Path | Microsoft.PowerShell.Management | help |
Start-Job | Microsoft.PowerShell.Core | help |
Start-Process | Microsoft.PowerShell.Management | help |
Start-Service | Microsoft.PowerShell.Management | help |
Start-Sleep | Microsoft.PowerShell.Utility | help |
Start-Transaction | Microsoft.PowerShell.Management | help |
Start-Transcript | Microsoft.PowerShell.Host | help |
Stop-Computer | Microsoft.PowerShell.Management | help |
Stop-Job | Microsoft.PowerShell.Core | help |
Stop-Process | Microsoft.PowerShell.Management | help |
Stop-Service | Microsoft.PowerShell.Management | help |
Stop-Transcript | Microsoft.PowerShell.Host | help |
Suspend-Service | Microsoft.PowerShell.Management | help |
Tee-Object | Microsoft.PowerShell.Utility | help |
Test-ComputerSecureChannel | Microsoft.PowerShell.Management | help |
Test-Connection | Microsoft.PowerShell.Management | help |
Test-ModuleManifest | Microsoft.PowerShell.Core | help |
Test-Path | Microsoft.PowerShell.Management | help |
Test-WSMan | Microsoft.WSMan.Management | help |
Trace-Command | Microsoft.PowerShell.Utility | help |
Undo-Transaction | Microsoft.PowerShell.Management | help |
Unregister-Event | Microsoft.PowerShell.Utility | help |
Unregister-PSSessionConfiguration | Microsoft.PowerShell.Core | help |
Update-FormatData | Microsoft.PowerShell.Utility | help |
Update-List | Microsoft.PowerShell.Utility | help |
Update-TypeData | Microsoft.PowerShell.Utility | help |
Use-Transaction | Microsoft.PowerShell.Management | help |
Wait-Event | Microsoft.PowerShell.Utility | help |
Wait-Job | Microsoft.PowerShell.Core | help |
Wait-Process | Microsoft.PowerShell.Management | help |
Where-Object | Microsoft.PowerShell.Core | help |
Write-Debug | Microsoft.PowerShell.Utility | help |
Write-Error | Microsoft.PowerShell.Utility | help |
Write-EventLog | Microsoft.PowerShell.Management | help |
Write-Host | Microsoft.PowerShell.Utility | help |
Write-Output | Microsoft.PowerShell.Utility | help |
Write-Progress | Microsoft.PowerShell.Utility | help |
Write-Verbose | Microsoft.PowerShell.Utility | help |
Write-Warning | Microsoft.PowerShell.Utility | help |
本篇到此结束