Daily Archives: August 2, 2018

PowerShell i loop kroz spisak servera

Dobri linkovi : link1, link2 I evo PS skriptića koji vrti petlju sa dva člana : param( [string]$pauza = “———-“ ) $spisakservera = @(“mojserver1.mojdomen”,”mojserver2.mojdomen”) for ($i=0; $i -lt 2; $i++) { $pauza $spisakservera[$i] $pauza Invoke-SQLCmd -query “select name, size*8/1024 AS … Continue reading

Posted in Windows | Tagged , , | Comments Off on PowerShell i loop kroz spisak servera