摘要:
$infos = @{}$infos.Path ='c:\Windows'$infos.Recurse =$true$infos.Filter ='*.log'$infos.ErrorAction ='SilentlyContinue'$infos.Remove('Recurse')dir@info... 阅读全文
摘要:
function Start-GPUpdate{param([String[]]$ComputerName)$code = {$rv = 1 |Select-Object -Property ComputerName, ExitCode$null = gpupdate.exe /force$rv.E... 阅读全文