随笔分类 -  Powershell--For TA?? Only

摘要:#将所有docx文件改成可读Set-ItemProperty -Path "e:\screenshot\*.docx" -Name IsReadOnly -Value $false#从远端服务器剪切截图至本地$target = "e:\screenshot"$pw = ConvertTo-Secur... 阅读全文
posted @ 2015-05-13 16:18 dongdonggeorge 阅读(394) 评论(0) 推荐(0)
摘要:Function Take-ScreenShot { #Requires -Version 2 [cmdletbinding( SupportsShouldProcess = $True, DefaultParamete... 阅读全文
posted @ 2015-05-13 16:17 dongdonggeorge 阅读(373) 评论(0) 推荐(0)
摘要:$sn = Read-Host -Prompt "请输入SN号(7位 or 10位)"$xl = New-Object -ComObject "Excel.Application"$cmdbwb = $xl.Workbooks.Open("F:\Ivan\HZCMDB.xlsx")$cmdbwss ... 阅读全文
posted @ 2015-05-13 16:16 dongdonggeorge 阅读(242) 评论(0) 推荐(0)
摘要:$lastMon = ((get-date).AddDays(-7) -split(" "))[0] $lastFri = ((get-date).AddDays(-3) -split(" "))[0] $emsno = Read-Host -Prompt "plz input EMS No." $smtpserver = "172.17.8.52" $sender = "chen.che... 阅读全文
posted @ 2015-05-13 16:15 dongdonggeorge 阅读(192) 评论(0) 推荐(0)
摘要:#建立远程服务器的文件夹映射 $pw = ConvertTo-SecureString '密码' -AsPlainText -Force $Creds = New-Object -Typename System.Management.Automation.PSCredential -Argument... 阅读全文
posted @ 2015-05-13 16:14 dongdonggeorge 阅读(327) 评论(0) 推荐(0)
摘要:#将所有docx文件改成可读Set-ItemProperty -Path "e:\screenshot\*.docx" -Name IsReadOnly -Value $false#从远端服务器剪切截图至本地$target = "e:\screenshot"$pw = ConvertTo-Secur... 阅读全文
posted @ 2015-05-13 16:13 dongdonggeorge 阅读(274) 评论(0) 推荐(0)
摘要:Function Take-ScreenShot { #Requires -Version 2 [cmdletbinding( SupportsShouldProcess = $True, DefaultParamete... 阅读全文
posted @ 2015-05-13 16:12 dongdonggeorge 阅读(286) 评论(0) 推荐(0)