Shell
文章平均质量分 76
zhongjiekangping
热爱技术,追逐但不狂热...... 比较喜欢探索自己的未知领域,喜欢了解各种编程环境和领域,平时也比较喜欢阅读,用心的阅读可以使人沉淀。
展开
-
PowerShell 函数返回值的问题
PowerShell 函数返回值的问题Powershell的函数返回值与其他脚本语言存在较大差别,我也是在研究了好一阵子才明白是怎么回事。第一要搞明白什么是“默认输出”,默认输出就是没有指定任何特定输出设备的语句所要输出到的地方。相当于传统编程语言或者shell的stdout,其实就叫标准输出也行。像如下语句:PS C:/Users/Administrator>转载 2009-11-19 17:44:00 · 7357 阅读 · 0 评论 -
程序中调用powershell 命令的基本步骤
1, 创建System.Management.Automation.Runspaces.InitialSeeeionState对象并导入 Snap-in or Cmdlets Entry 等信息用于定制运行环境. 2,以 InitialSessionState对象为参数创建System.Management.Automation.Runspaces.Runspace对象,并打开该Ru转载 2009-11-23 15:11:00 · 4270 阅读 · 0 评论 -
Using Windows Server 2008 Powershell to perform common network commands
There are things we do every day while administering our Windows network but if we were asked to do them from the command line, unlike most Linux admins, most of us Windows admins would struggle. Wind转载 2010-01-28 13:32:00 · 1233 阅读 · 0 评论 -
Creating an array of floats using new-object
Creating an array of floats using new-objectKris posted on Tuesday, November 27, 2007 4:49 AMUsing new-object I create several arrays containing different data types:$Sou原创 2009-12-18 09:53:00 · 433 阅读 · 0 评论 -
Creating AD user accounts in PowerShell
$password= $ptfpropDCpassWord $securePassword = ConvertTo-SecureString $password -AsPlainText -Force$domain=$ptfpropDCdomainName $userName=$ptfpropDCuserName $credential = new-object Management原创 2009-12-18 12:15:00 · 767 阅读 · 0 评论 -
SHELL十三问之一:什么是shell?
None转载 2010-09-09 12:22:00 · 808 阅读 · 0 评论 -
source in shell
None转载 2011-01-25 15:26:00 · 995 阅读 · 0 评论 -
浅析shell中source命令和.逗号命令对当前父shell的影响
None转载 2011-01-25 15:19:00 · 2277 阅读 · 0 评论 -
perl 中 数组 与 列表的 区别
None原创 2011-03-14 09:34:00 · 5155 阅读 · 0 评论