Question
Requête web simple
- arnold
- Auteur du sujet
- Hors Ligne
- Membre senior
-
- Messages : 57
- Remerciements reçus 0
Svp
Mon scripte ne vas pas. Pas d''echo
Merci pour votre aide
Arnold
$i = 0
$j = 0
$k = 0
$l = 0
$m = 0
$n = 0 # city 1
$xHashCity_1 = @{1 = $xHTTP_Request = Invoke-WebRequest -Uri "athome.myminicity.com/";
2 = $xHTTP_Request = Invoke-WebRequest -Uri "my3d-city.com/saint-innsbruck";
3 = $xHTTP_Request = Invoke-WebRequest -Uri "st-innsbruck.miniville.fr/";
4 = $xHTTP_Request = Invoke-WebRequest -Uri "st-innsbruck.myminicity.com/";
5 = $xHTTP_Request = Invoke-WebRequest -Uri "my3d-city.com/3dcity"
}
# compteur gal.
for ($i=1 ; $i -lt 6; {break})
{Write-host "Val compteur ""gal."" de: Loop gal. est : $i" -ForegroundColor red
# pop 1
for ($j=1 ; $j -lt 2; $j++)
{Write-host "Val compteur ""POP"" de: Loop gal. + Pop 2x sont : $i - $j" -ForegroundColor white
get-wmiobject -class win32_networkadapter -namespace root\CIMV2 | where-object {$_.Name -match “Ethernet 2”} | % {$_.Enable()}
1..2 | ForEach {$xHashCity_1[1]
{$xSleep = $xHashCity_1[1]
while ($xSleep.busy) {sleep -seconds 2}}
$xHashCity_1[2]
{$xSleep = $xHashCity_1[2]
while ($xSleep.busy) {sleep -seconds 2}}
$xHashCity_1[3]
{$xSleep = $xHashCity_1[3]
while ($xSleep.busy) {sleep -seconds 2}}
$xHashCity_1[4]
{$xSleep = $xHashCity_1[4]
while ($xSleep.busy) {sleep -seconds 2}}
$xHashCity_1[5]
{$xSleep = $xHashCity_1[5]
while ($xSleep.busy) {sleep -seconds 2}}
get-wmiobject -class win32_networkadapter -namespace root\CIMV2 | where-object {$_.Name -match “Ethernet 2”} | % {$_.Disable()}
" *** Processing outloop $PSItem *** `n"
'a' |
ForEach {" *** Processing innerloop *** $PSItem"} }
""
# Env
for ($k=1 ; $k -lt 2 ; $k++)
{Write-host "Val compteur ""Env"" de: Loop gal + Pop 2x + Env sont : $i - $j - $k" -ForegroundColor Green
# Ind
for ($l=1 ; $l -lt 2 ; $l++)
{Write-host "Val compteur ""Ind"" de: Loop gal + Pop 2x + Env + Ind sont : $i - $j - $k - $l" -ForegroundColor Green
# Sec
for ($m=1 ; $m -lt 2 ; $m++)
{Write-host "Val compteur ""Sec"" de: Loop gal + Pop 2x + Env + Ind + Sec sont : $i - $j - $k - $l - $m" -ForegroundColor Green
# Tra
for ($n=1 ; $n -lt 2 ; $n++)
{Write-host "Val compteur ""Tra"" de: Loop gal + Pop 2x + Env + Ind + Sec + Tra sont : $i - $j - $k - $l - $m - $n" -ForegroundColor Green
""
""
}}}}}$i++}
Connexion ou Créer un compte pour participer à la conversation.
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Requête web simple