![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PowerShell
Listenrose
这个作者很懒,什么都没留下…
展开
-
Powershell随笔
1. 添加 powershell-ise:Import-Module servermanager Add-WindowsFeature powershell-ise2. 设置.ps1文件的可执行权限Set-ExecutionPolicy Remotesigned3. 获取帮助 Get-Help Get-Service -Detail4. 注释 #,多行注释 5. 关原创 2013-06-19 11:14:13 · 634 阅读 · 0 评论 -
Powershell获取当前路径
获取当前路径,之前一直通过内置的$MyInvocation变量:$CurrentyDir=Split-Path-Parent$MyInvocation.MyCommand.Definition; PowerShell3.0之后,直接一个$PSScriptRoot解决问题。原创 2013-11-07 11:05:27 · 17167 阅读 · 0 评论