发布时间:2015-06-30 22:54:17
$CMD = "$PSScriptRoot\SPEEDTEST-64.EXE "<br /> $Date = Get-Date<br /> $Name = $Date.ToString('yyyy-MM-dd-hh-mm')<br /> $Destination = New-Item -Path $PSScriptRoot\$Name.txt -ItemType file -Force<br />Add-Content -path $PSScriptRoot\$Name.txt -value "ServerID;TargetServ.........【阅读全文】
发布时间:2015-06-26 21:36:19
今天突然想起用Powershell批量设置JDK环境,于是写了下文.<br /><p>#创建环境变量 <br />Function Create-EnvironmentVariable<br />{<br /> param<br /> (<br /> [Parameter(Mandatory=$true)]<br /> &nbs.........【阅读全文】