随笔分类 -  PowerShell

摘要:https://docs.microsoft.com/en-us/powershell/module/powershellget/install-module?view=powershell-6 https://docs.microsoft.com/en-us/powershell/develope 阅读全文
posted @ 2018-09-06 09:42 ChuckLu 阅读(979) 评论(0) 推荐(0) 编辑
摘要:PS C:\Users\clu\Desktop> [System.Net.Dns] | Get-Member -Static | Format-Table -AutoSize TypeName: System.Net.Dns Name MemberType Definition BeginGetHo 阅读全文
posted @ 2018-06-08 13:55 ChuckLu 阅读(249) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-date?view=powershell-6 Set-Date "2018-04-17 09:20:28" Set-Date "20 阅读全文
posted @ 2018-04-17 09:22 ChuckLu 阅读(2421) 评论(0) 推荐(0) 编辑
摘要:https://blogs.msmvps.com/erikr/2007/09/26/set-permissions-on-a-specific-service-windows/ Get-Acl .\LISA.BackOffice.log | Format-List Path : Microsoft. 阅读全文
posted @ 2018-04-16 18:32 ChuckLu 阅读(1134) 评论(0) 推荐(0) 编辑
摘要:No connection could be made because the target machine actively refused it [::1]:808 确保安装了wcf 1.首先查看端口占用情况, 在资源监视器中查看808端口,没有发现端口被监听 2.和同事确认,他那边的808端口 阅读全文
posted @ 2017-11-22 15:41 ChuckLu 阅读(29744) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/caolisong/archive/2007/04/25/726896.html nohup /mnt/Nand3/H2000G >/dev/null 2>&1 & 对于& 1 更准确的说应该是文件描述符 1,而1 一般代表的就是STDOUT_FILEN 阅读全文
posted @ 2017-09-27 17:46 ChuckLu 阅读(328) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/8925323/redirection-of-standard-and-error-output-appending-to-the-same-log-file The second way would look like thi 阅读全文
posted @ 2017-09-27 17:23 ChuckLu 阅读(1301) 评论(0) 推荐(0) 编辑
摘要:1 PS C:\Program Files\PowerShell\6.0.0-beta.6> Stop-ComputerStop-Computer : Failed to stop the computer WASYGSHA01-1020 with the following error messa 阅读全文
posted @ 2017-09-07 21:07 ChuckLu 阅读(740) 评论(0) 推荐(0) 编辑
摘要:因为处理管理员模式下,所以无法拖动。 先执行命令,确保命令会记录到history里。 然后,需要另外开一个不是管理权权限的窗口来拖动, [注意,下面的操作仅仅在powershell6.0里面才可以,之前的版本是记不住命令的History的] 首先键盘上的向上箭头,找到之前的命令,然后进行拖动,拖动完 阅读全文
posted @ 2017-09-07 17:01 ChuckLu 阅读(2385) 评论(0) 推荐(0) 编辑
摘要:New-Service https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-5.1 PS C:\Program Files\Pow 阅读全文
posted @ 2017-07-28 09:51 ChuckLu 阅读(1205) 评论(0) 推荐(0) 编辑
摘要:https://www.microsoft.com/en-hk/download/details.aspx?id=40855 文件太多了,按照这个http://stackoverflow.com/questions/19902239/how-to-upgrade-powershell-version 阅读全文
posted @ 2016-09-06 22:39 ChuckLu 阅读(1337) 评论(0) 推荐(0) 编辑
摘要:https://technet.microsoft.com/en-us/library/hh847748.aspx?f=255&MSPPError=-2147217396 在powershell中执行命令 Get-ExecutionPolicy -List 此命令也可以使用tab键进行辅助 Scop 阅读全文
posted @ 2016-09-06 22:19 ChuckLu 阅读(1553) 评论(0) 推荐(0) 编辑
摘要:1.1查看PowerShell的版本 1.1.1 $PSVersionTable.PSVersion Major Minor Build Revision 2 0 -1 -1 1.1.2 $PSVersionTable PS C:\Users\clu> $PSVersionTable Name Va 阅读全文
posted @ 2016-09-06 21:55 ChuckLu 阅读(9507) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示