windows shell - powershell

本文介绍PowerShell作为Windows平台系统管理的强大工具,相比传统批处理具备更佳的字符串操作能力和控制结构。通过示例演示如何启动PowerShell并执行简单命令来解析环境变量。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Power shell is a replacement to the existing shell (batch to be more precisesly speaking). Powershell has beeter string manipulation and better control construct, whch maneks it better for system administration on the windows platform 
to start the powershell, you can start the command line 

powershell


and then you can type some command in, here is an example 

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC> $a = $env:path; $a.split(";")
C:\Program Files (x86)\Microsoft F#\v4.0\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VSTSDB\Deploy
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools
C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework\v3.5
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages
C:\Program Files (x86)\HTML Help Workshop
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Performance Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin
c:\program files (x86)\fortify software\hp fortify v3.60\bin
C:\Windows\system32
C:\Windows
C:\Windows\system32\wbem
C:\Windows\system32\windowspowershell\v1.0\
C:\SysAdmin
c:\program files (x86)\microsoft application virtualization client
C:\SysAdmin\bin\winengine
c:\program files (x86)\common files\hitachi id\
c:\program files\openafs\2011.4.22-x64\bin
\\ms\dist\aurora\proj\modulecmd\prod\bin
c:\program files\perforce
C:\SysAdmin\bin\winengine
c:\program files\openafs\2012.5.16-x64\bin


You may find more deails on the first to Powershell series like here: "Running Windows PowerShell Scripts
http://technet.microsoft.com/en-us/library/ee176949.aspx


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值