设为首页 加入收藏 网站首页
休闲娱乐
军事·社会百态·娱乐八卦·校园
体育·美女写真·幽默笑话·游戏
综合·在线视频·搞笑图片·灵异
两性生活
两性知识·性爱技巧
情色实录·两性图片
女性健康·同性之恋
电脑网络
网络编程·网页制作·软件教学
操作系统·图形图象·冲浪宝典
网络安全·邮件系统·认证考试
热点专题
芙蓉·真人漫画
72式·欲望都市
帅哥·人体彩绘
您现在的位置: 世纪中国 >> 操作系统 >> Windows Vista >> 教程正文
Windows PowerShell的12项酷功能
作者:中国图霸    教程来源:网络    点击数:    更新时间:2007-1-3

  Windows PowerShell 1.0已经发布,微软windowsvistablog上,开发人员列举了Windows Vista中Windows PowerShell所提供的12项酷酷的功能:

  解答PowerShell:PowerShell原来的开发代号是Monad,原计划是用以替代Windows中的命令行工具,但是后来微软说它只是技术上的扩充。使用PowerShell,管理员可以做任何在图形界面下所做的事情。Windows PowerShell 1.0可以运行在Windows XP SP2、Windows Server 2003和Windows Vista上。

  1. 内置Cmdlets (即"commandlets")

  Windows PowerShell中的所有Cmdlets都允许这样的动名词:get-service, get-process, stop-service, get-wmiobject.

  2. 强大的通配符和操作对象

  要得到以w开头的服务及其依赖服务只要输入:

  PS> get-service w* | format-list DisplayName, DependentServices

  3. 在犯错误前测试命令

  Windows PowerShell 有意向独特的功能:Whatif ,可以不执行命令就告诉你命令执行结果.如:

  PS> stop-service w3* -whatif

  4. 获取副本

  PowerShell 可以开始和结束所有命令的副本,可以在脚本中轻易测试命令并同时保存.

  PS> Start-Transcript -Path c:demodfoshow.txt
  PS> Stop-Transcript

  5. 从命令行发布Windows对话

  因为Windows PowerShell位对象而优化,可以向.NET Framework一样从命令行访问COM对象,下列命令告诉你的Vista机器发表"Windows Vista and PowerShell"字串.

  PS> $spVoice = new-object -com "SAPI.spvoice"
  PS> $spVoice.Speak("Windows Vista and PowerShell")

  6. 使用Windows PowerShell访问诸如Windows Media Player 11等的应用程序

  PS> $band = "The Posies"
  PS> $player = New-object -com wmplayer.ocx
  PS> $playlist = $player.mediacollection.getbyauthor($band)
  PS> $player.openPlayer($playlist.item(0).sourceurl)
  7. Windows PowerShell作为命令行存储计算器

  PowerShell可以完成基本的计算工作

  PS> 2*2

  不过,Windows PowerShell也可以快速解决存储问题,例如,备份11GB的数据需要多少个700MB的CD.

  PS> 11gb/700mb

  那么,需要多少个1000GB的存储来备份每个320GB,共425个的Vista桌面呢?

  PS > (320gb*425)/1000GB

  8. PowerShell 用作日历计算

[1] [2] 下一页

分类推荐
社会 社会 娱乐 军事 校园
幽默 体育 女性 专题
电脑 编程 网页 软件 系统
安全 图象 冲浪 认证
搞笑 人物 动物 物品 表情
签名 色图 漫画 奇闻
美女 明星 清纯 自拍 欧美
丝袜 卡通 性感 走光
两性 知识 性图 孕育 技巧
同性 单身 情感 实录
视频 写真 搞笑 MTV 翻唱
写实 片段 游戏 综艺
Windows Vista热门文章
普通教程 Windows Vista备份与自动备份完
普通教程 Windows Vista使用教程之系统安
普通教程 Windows Vista下紫光拼音无法使
普通教程 Windows Vista系统家庭网络全面
普通教程 激活Windows Vista几项隐藏的功
普通教程 减少Windows Vista资源占用
普通教程 使用BCDEdit修改Windows Vista
普通教程 32位与64位Win Vista RC1系统对
普通教程 体验Windows Vista系统中的任务
普通教程 体验Windows Vista家用网络连接
普通教程 只需2、3秒:加快Windows Vist
普通教程 Windows Vista中父母控制使用方
普通教程 ATi官方Windows Vista测试工具
普通教程 安装不同版本Win Vista方法
普通教程 Vista系统家庭共享上网必读
普通教程 在Vista中使用Win2003 SP1管理
普通教程 Windows Vista系列技巧:弹出窗
普通教程 Windows Vista操作系统视图缩放
普通教程 Windows Vista和XP系统功能大比
普通教程 Vista实用软件:去除快捷图标箭

  广东广州海珠区 世纪网络工作室 版权所有 上海电信提供网络带宽
信箱: 9297659@qq.com 粤ICP备06113754号