Powershell

From Mesopoly 3.0
Revision as of 13:02, 2 August 2016 by Zlatko (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$mminfo24 = (mminfo -s servername-X)| Out-String
$numbass = ($mminfo24.Split(" "))[6]
Write-Host $numbass

$Username="maybedomain\yourcoolusername"
$Password="yourcoolpassword"
$WebProxy = New-Object System.Net.WebProxy("http://wproxy11:8080",$true)
##$url="http://www.vinodol.com/rosnumba?brojka=$numbass"
$url="http://www.vinodol.com/"


$WebClient = New-Object net.webclient

$WebClient.Proxy=$webproxy
$WebClient.proxy.Credentials = New-Object System.Net.NetworkCredential($Username, $Password)
##$path="C:\Users\a_zlatkoi\test.xml"
$WebClient.DownloadString($url)
##$WebClient.DownloadFile($url, $path)