sreda, 17. april 2013

Powershell - iskanje niza v datoteki

Včasih se spomnim, da sem nekje že uporabil neko rešitev, ne spomnim pa se imena datoteke. Niz lahko poiščem takole:


dir -i *.ps1 -r|select-string test-connection
Dela\MS\Get-ClientWSUSSetting.ps1:120:                If (Test-Connection -ComputerName $Computer -Count 1 -Quiet) {
Dela\brzinaodtave.ps1:5:$PingServer = Test-Connection -count 10 -Delay 1 $Server
Dela\brzinaodtvsi.ps1:39:Test-Connection $server
Dela\ipstatusanglave.ps1:15:                    $aje=(Test-Connection -Computername $computer -BufferSize 16 -Count 1 -
ea 0 -quiet)

Ni komentarjev:

Objavite komentar