Powershell的内置变量
ls Variable:
| Name | Value | Description |
| $ | ||
| ? | TRUE | Status of last command |
| ^ | ||
| args | System.Object[] | |
| ConfirmPreference | High | Dictates when confirmation should be requested. Confirmation is requested when the ConfirmImpact of the operation is equal to or greater than $ConfirmPreference. If $ConfirmPreference is None, actions will only be confirmed when Confirm is specified. |
| ConsoleFileName | Name of the current console file | |
| DebugPreference | SilentlyContinue | Dictates the action taken when a Debug message is delivered |
| Error | System.Collections.ArrayList | |
| ErrorActionPreference | Continue | Dictates the action taken when an error message is delivered |
| ErrorView | NormalView | Dictates the view mode to use when displaying errors |
| ExecutionContext | System.Management.Automation.EngineIntrinsics | The run objects available to cmdlets |
| FALSE | FALSE | Boolean False |
| FormatEnumerationLimit | 4 | Dictates the limit of enumeration on formatting IEnumerable objects |
| HOME | C:\Users\814072 | Folder containing the current user's profile |
| Host | System.Management.Automation.Internal.Host.InternalHost | A reference to the host of the current runspace |
| input | System.Collections.ArrayList+ArrayListEnumeratorSimple | |
| MaximumAliasCount | 4096 | Maximum number of aliases allowed in a session |
| MaximumDriveCount | 4096 | Maximum number of drives allowed in a session |
| MaximumErrorCount | 256 | Maximum number of errors to retain in a session |
| MaximumFunctionCount | 4096 | Maximum number of functions allowed in a session |
| MaximumHistoryCount | 4096 | Maximum number of history objects to retain in a session |
| MaximumVariableCount | 4096 | Maximum number of variables allowed in a session |
| MyInvocation | System.Management.Automation.InvocationInfo | |
| NestedPromptLevel | 0 | Dictates what type of prompt should be displayed for the current nesting level |
| null | References to the null variable always return the null value. Assignments have no effect. | |
| OutputEncoding | System.Text.DBCSCodePageEncoding | The text encoding used when piping text to a native executable file |
| PID | 4800 | Current process ID |
| profile | C:\Users\814072\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 | |
| ProgressPreference | Continue | Dictates the action taken when progress records are delivered |
| PSBoundParameters | System.Management.Automation.PSBoundParametersDictionary | |
| PSCommandPath | ||
| PSCulture | zh-CN | Culture of the current Windows PowerShell session |
| PSDefaultParameterValues | System.Management.Automation.DefaultParameterDictionary | Variable to hold all default <cmdlet:parameter, value> pairs |
| PSEmailServer | Variable to contain the name of the email server. This can be used instead of the HostName parameter in the Send-MailMessage cmdlet. | |
| PSHOME | C:\Windows\System32\WindowsPowerShell\v1.0 | Parent folder of the host application of the current runspace |
| psISE | Microsoft.PowerShell.Host.ISE.ObjectModelRoot | |
| PSScriptRoot | ||
| PSSessionApplicationName | wsman | AppName where the remote connection will be established |
| PSSessionConfigurationName | http://schemas.microsoft.com/powershell/Microsoft.PowerShell | Name of the session configuration which will be loaded on the remote computer |
| PSSessionOption | System.Management.Automation.Remoting.PSSessionOption | Default session options for new remote sessions |
| PSUICulture | en-US | UI culture of the current Windows PowerShell session |
| psUnsupportedConsoleApplications | Microsoft.PowerShell.Host.ISE.UICollection`1[System.String] | |
| PSVersionTable | System.Management.Automation.PSVersionHashTable | Version information for current Windows PowerShell session |
| PWD | C:\Users\814072 | |
| scriptAnalyzer | Microsoft.PowerShell.Host.ISE.ISEAddOnTool | |
| scriptBrowser | Microsoft.PowerShell.Host.ISE.ISEAddOnTool | |
| ShellId | Microsoft.PowerShell | The ShellID identifies the current shell. This is used by #Requires. |
| StackTrace | at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Management.Automation.PathUtils.MasterStreamOpen(PSCmdlet cmdlet, String filePath, Encoding resolvedEncoding, Boolean defaultEncoding, Boolean Append, Boolean Force, Boolean NoClobber, FileStream& fileStream, StreamWriter& streamWriter, FileInfo& readOnlyFileInfo, Boolean isLiteralPath) |
|
| TRUE | TRUE | Boolean True |
| VerbosePreference | SilentlyContinue | Dictates the action taken when a Verbose message is delivered |
| WarningPreference | Continue | Dictates the action taken when a Warning message is delivered |
| WhatIfPreference | FALSE | If true, WhatIf is considered to be enabled for all commands. |
Powershell的内置变量的更多相关文章
- Maven系列三Maven内置变量
Maven内置变量说明: ${basedir} 项目根目录(即pom.xml文件所在目录) ${project.build.directory} 构建目录,缺省为target目录 ${project. ...
- Maven的内置变量
Maven内置变量说明: ${basedir} 项目根目录(即pom.xml文件所在目录) ${project.build.directory} 构建目录,缺省为target目录 ${project. ...
- nginx的那些内置变量
nginx在配置文件nginx.conf中可以使用很多内置变量,配置如下: location /info { add_header 'Content-Type' 'text/html'; echo & ...
- Maven内置变量说明
Maven内置变量说明: ${basedir} 项目根目录 ${project.build.directory} 构建目录,缺省为target ${project.build.outputDirect ...
- 学习笔记——Maven 内置变量
Maven内置变量说明: ${basedir} 项目根目录(即pom.xml文件所在目录) ${project.build.directory} 构建目录,缺省为target目录 ${project. ...
- makefile 分析 -- 内置变量及自动变量
makefile 分析1 -p 选项,可以打印出make过程中的数据库, 下面研究一下内置的变量和规则. -n 选项, 只运行,不执行, -d 选项,相当于--debug=a, b(basic), ...
- Perl中的特殊内置变量详解
#!/usr/bin/perl -w @array = qw(a b c d); foreach (@array) { print $_," "; } 例子的作用就是定义一个数组并 ...
- 【译】 AWK教程指南 附录D-AWK的内置变量
因内置变量的个数不多,此处按其相关性分类说明,并未按其字母顺序排列. ARGC ARGC表示命令行上除了选项 -F, -v, -f 及其所对应的参数之外的所有参数的个数.若将"awk程序&q ...
- Maven内置变量
1.Maven内置变量说明: ${basedir} 项目根目录 ${project.build.directory} 构建目录,缺省为target ${project.build.outputDire ...
随机推荐
- 【USACO】numtri
给一颗数字树,让找一条数字和最大的路径.一下子就想起刚学不久的回溯法了.照着写了个代码,调了调搞通了.在小数据的情况下是对的,但是在test 6 树有199层的时候溢出了. #include < ...
- HDU 5793 A Boring Question (逆元+快速幂+费马小定理) ---2016杭电多校联合第六场
A Boring Question Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others ...
- 6个朋友(codevs 2832)
2832 6个朋友 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 题目描述 Description 有这么一种说法:认识6个人,你就认识全世 ...
- Java查询网址
Java在线帮助文档: http://docs.oracle.com/javase/8/docs/technotes/guides/desc_jdk_structure.html Java小知识讲解: ...
- 设计模式学习之单例模式(Singleton,创建型模式)(4)
假如程序中有一个Person类,我的需求就是需要在整个应用程序中只能new一个Person,而且这个Person实例在应用程序中进行共享,那么我们该如何实现呢? 第一步: 新建一个Person类,类中 ...
- Git Fast-forward提交
多人协同开发,使用Git经常会看到警告信息包含术语:Fast-forward, 这是何义? 简单来说就是提交到远程中心仓库的代码必须是按照时间顺序的. 比如A从中心仓库拿到代码后,对文件f进行了修改. ...
- [原]FileHelper-文件操作辅助类
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Whir.S ...
- node.js简单的页面输出
在node.js基本上没有兼容问题(如果你不是从早期的node.js玩起来),而且原生对象又加了这么多扩展,再加上node.js自带的库,每个模块都提供了花样繁多的API,如果还嫌不够,github上 ...
- hdu 1556 树状数组+点查询
树状数组 N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一 ...
- yum与rpm的使用
rpm常用的命令组合: rpm -ivh:安装显示安装进度--install--verbose--hash -Uvh:升级软件包--Update: -qpl:列出RPM软件包内的文件信息[Query ...