{"id":37220,"date":"2019-10-31T22:16:24","date_gmt":"2019-10-31T19:16:24","guid":{"rendered":"https:\/\/prohoster.info\/blog\/monitoring-dostupnosti-hostov-na-powershell\/"},"modified":"2019-10-31T22:16:24","modified_gmt":"2019-10-31T19:16:24","slug":"monitoring-dostupnosti-hostov-na-powershell","status":"publish","type":"post","link":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/monitoring-dostupnosti-hostov-na-powershell","title":{"rendered":"\u00dcberwachung der Verf\u00fcgbarkeit von Hosts in PowerShell","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0445\u043e\u0441\u0442\u043e\u0432. \u0411\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0421\u041c\u0421!\u00bb.<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/592282dee205448fdcf08fcdcdf3d027.jpeg\" style=\"display:block;margin: 0 auto\" \/><i>\u0421 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430<\/i><\/p>\n<p><b>\u0412\u0430\u0436\u043d\u043e<\/b>: \u044f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0438 \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/server\" title=\"\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432\" data-wpil-keyword-link=\"linked\">\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432<\/a> \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430.<\/p>\n<p>\u0412\u0441\u0435\u0445 \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u043e, \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>\n<a rel=\"nofollow\" name=\"habracut\"><\/a><br \/>\n<b class=\"spoiler_title\">\u041f\u043e\u0447\u0435\u043c\u0443 Powershell<\/b><i>\u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043d\u0430 Python, \u043d\u043e \u043e\u043d \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043b\u0438\u0431\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u0430, \u043b\u0438\u0431\u043e \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a .exe, \u0447\u0442\u043e, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043c\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0410 \u0432\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Powershell \u0447\u0430\u0449\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<\/i><\/p>\n<h3>\u041d\u0435 \u0432\u0441\u0435 \u043b\u044e\u0431\u044f\u0442 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\/\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/h3>\n<p>\n<i>\u0414\u0443\u043c\u0430\u044e \u0432 \u044d\u0442\u043e\u043c \u043d\u0435\u0442 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u044f, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 \u0431\u044b \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0438 \u0432 *nix-\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f GUI.<\/i><\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Powershell \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u043e, \u0442\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u044c, \u0430 \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u043a \u043d\u0435\u043c\u0443 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c GUI. \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0436\u043d\u043e, \u0434\u0430 \u0435\u0449\u0435 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/6dbe20a761df074e5520e0944348581f.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">Add-Type -assembly System.Windows.Forms #\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443\n$main_form = New-Object System.Windows.Forms.Form #\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043d\u0430\u0448\u0438\u043c \"\u043e\u043a\u043d\u043e\u043c\"\n\n#\u0417\u0430\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\n$main_form.Text ='Links up' #\u0418\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435\n$main_form.Width = 300 #\u0428\u0438\u0440\u0438\u043d\u0430 \u043e\u043a\u043d\u0430\n$main_form.Height = 200 #\u0412\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430\n$main_form.AutoSize = $true #\u0414\u0430\u0435\u043c \u0435\u043c\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\n$main_form.ShowDialog() #\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \"\u043e\u043a\u043d\u043e\"\n<\/code><\/pre>\n<p>\n\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u044d\u0442\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e\u0435 Windwows-\u043e\u043a\u043d\u043e \u0442\u0430\u0432\u0442\u043e\u043b\u043e\u0433\u0438\u044f?.<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/cf6d9bf9bbba13dcde51c60428e947d4.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">Add-Type -assembly System.Windows.Forms #\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443\n\n$main_form = New-Object System.Windows.Forms.Form #\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u043d\u0430\u0448\u0438\u043c \"\u043e\u043a\u043d\u043e\u043c\"\n\n#\u0417\u0430\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\n$main_form.Text ='Links up' #\u0418\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435\n$main_form.Width = 300 #\u0428\u0438\u0440\u0438\u043d\u0430 \u043e\u043a\u043d\u0430\n$main_form.Height = 200 #\u0412\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430\n$main_form.AutoSize = $true #\u0414\u0430\u0435\u043c \u0435\u043c\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\n\n$Label = New-Object System.Windows.Forms.Label #\u0412\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u0430\u043a \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 Powershell\n$Label.Text = \"\u041f\u0440\u0438\u0432\u0435\u0442! \u042f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e\u0435 Windows-\u043e\u043a\u043d\u043e, \u0430 \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0438\u043b\u0441\u044f \u0442\u044b?\" #\u0412\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\n$Label.Location  = New-Object System.Drawing.Point(10,65) #\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u044b \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 (x,y)\n$Label.AutoSize = $true \n\n$main_form.Controls.Add($Label) #\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a \u0444\u043e\u0440\u043c\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\n\n$main_form.ShowDialog() #\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0441\u043a\u043e\u0440\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e\u0435 \u043e\u043a\u043d\u043e<\/code><\/pre>\n<p><\/p>\n<h3>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438<\/h3>\n<p>\n\u0422\u0430\u043a \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u00ab\u043f\u0438\u043d\u0433\u043e\u0432\u0430\u043b \u042f\u043d\u0434\u0435\u043a\u0441\u00bb \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b *.iso \u043e\u0431\u0437\u0430\u0432\u0451\u043b\u0441\u044f \u043e\u0431\u043e\u0441\u043e\u0431\u043b\u0435\u043d\u043d\u044b\u043c GUI, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043b\u043e. \u041f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0440\u0438\u0441\u0443\u0435\u043c \u0434\u0432\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/037c686bda35fe7357ea429b2d94771c.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">$PictureBox = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox.width = 10\n$PictureBox.height = 10\n$PictureBox.location = New-Object System.Drawing.Point(178,12)\n\n#\u0412\u043e\u0442 \u0442\u0443\u0442 \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0434\u0435\u043b\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0443\u0437\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442\n#&lt;b&gt;test-connection&lt;\/b&gt;, \u0433\u0434\u0435:\n#-Count - \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\n#-computer - IP \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430\n#-quiet - \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e Boolean \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\nif ((test-connection -Count 1 -computer ya.ru -quiet) -eq $True) {\n\t$PictureBox.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$main_form.Controls.Add($PictureBox)\n<\/code><\/pre>\n<p>\n<i>\u041e\u043f\u044f\u0442\u044c \u043d\u0430\u0448\u0438 DNS-\u043d\u0438\u043a\u0438 \u0448\u0430\u043b\u044f\u0442&#8230;<\/i><\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/d78c5c77b01336b4c0bb901b2d03b0e0.jpeg\" style=\"display:block;margin: 0 auto\" \/><br \/>\n\u0418 \u0435\u0449\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f.<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/470fb6f701e91dd1cc733bc6216798c9.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">$Button = New-Object System.Windows.Forms.Button\n$Button.Location = New-Object System.Drawing.Size(100,150) \n$Button.Size = New-Object System.Drawing.Size(80,30)\n$Button.Text = \"Reload\"\n\n# \u0412\u0435\u0448\u0430\u0435\u043c \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e PictureBox \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0440\u0430\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435\n$Button.Add_Click({ \n\tif ((Test-Connection -Count 1 -computer ya.ru -quiet) -eq $True)\n\t\t{$PictureBox.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox.imageLocation\t= \"C:Testno.png\"}\n\t  \n\tif ((Test-Connection -Count 1 -computer 8.8.8.8 -quiet) -eq $True)\n\t\t{$PictureBox1.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox1.imageLocation\t= \"C:Testno.png\"}\n \t})\n\n$main_form.Controls.Add($Button)\n<\/code><\/pre>\n<p>\n<img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/d701c50286c102426ab0f54e53a2cc7e.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<h3>\u0427\u0443\u0434\u0435\u0441\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u043d!?<\/h3>\n<p>\n\u0412\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0432 \u043e\u043a\u043e\u043b\u043e \u043f\u043e\u043b\u0443\u0434\u044e\u0436\u0438\u043d\u044b \u0445\u043e\u0441\u0442\u043e\u0432 \u044f \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u043d\u044f\u043b \u043e\u0434\u043d\u0443 \u0432\u0435\u0449\u044c \u2014 \u0430 \u0432\u0435\u0434\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c\u0441\u044f, \u0445\u043e\u0441\u0442\u044b \u043f\u043e\u043c\u0435\u043d\u044f\u044e\u0442 \u0438 \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e, \u044d\u0442\u043e \u0436\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e \u0432\u044b \u0432\u0437\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f:<\/p>\n<p><b class=\"spoiler_title\">\u0417\u0440\u0435\u043b\u0438\u0449\u0435 \u043d\u0435 \u0434\u043b\u044f \u0441\u043b\u0430\u0431\u043e\u043d\u0435\u0440\u0432\u043d\u044b\u0445<\/b><\/p>\n<pre><code class=\"plaintext\">Add-Type -assembly System.Windows.Forms #\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443\n\n$main_form = New-Object System.Windows.Forms.Form #\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u043d\u0430\u0448\u0438\u043c \"\u043e\u043a\u043d\u043e\u043c\"\n\n#\u0417\u0430\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\n$main_form.Text ='Links up' #\u0418\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435\n$main_form.Width = 300 #\u0428\u0438\u0440\u0438\u043d\u0430 \u043e\u043a\u043d\u0430\n$main_form.Height = 200 #\u0412\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430\n$main_form.AutoSize = $true #\u0414\u0430\u0435\u043c \u0435\u043c\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\n\n$Label = New-Object System.Windows.Forms.Label #\u0412\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u0430\u043a \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 Powershell\n$Label.Text = \"ya.ru\t\t............................\" #\u0412\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \n$Label.Location  = New-Object System.Drawing.Point(15,10) #\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u044b \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 (x,y)\n$Label.AutoSize = $true \n\n$Label1 = New-Object System.Windows.Forms.Label #\u0412\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0444\u043e\u0440\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043d\u043e \u043f\u043e \u0444\u0430\u043a\u0442\u0443 \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u0430\u043a \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 Powershell\n$Label1.Text = \"8.8.8.8\t\t............................\" #\u0412\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 googl-\u043e\u0432\u0441\u043a\u0438\u0439 DNS-\u043d\u0438\u043a\n$Label1.Location  = New-Object System.Drawing.Point(15,30) #\u0420\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u044b \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u0438 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 (x,y)\n$Label1.AutoSize = $true \n\n$Label2 = New-Object System.Windows.Forms.Label\n$Label2.Text = \"192.168.x.x\t............................\"\n$Label2.Location  = New-Object System.Drawing.Point(15,50)\n$Label2.AutoSize = $true\n\n$Label3 = New-Object System.Windows.Forms.Label\n$Label3.Text = \"192.168.x.x\t............................\"\n$Label3.Location  = New-Object System.Drawing.Point(15,70)\n$Label3.AutoSize = $true\n\n$Label4 = New-Object System.Windows.Forms.Label\n$Label4.Text = \"10.0.x.x\t ............................\"\n$Label4.Location  = New-Object System.Drawing.Point(15,90)\n$Label4.AutoSize = $true\n\n$Label5 = New-Object System.Windows.Forms.Label\n$Label5.Text = \"162.102.x.x\t ............................\"\n$Label5.Location  = New-Object System.Drawing.Point(15,110)\n$Label5.AutoSize = $true\n\n$PictureBox = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox.width = 10\n$PictureBox.height = 10\n\n#\u0412\u043e\u0442 \u0442\u0443\u0442 \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0434\u0435\u043b\u0443 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0443\u0437\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442\n#&lt;b&gt;test-connection&lt;\/b&gt;, \u0433\u0434\u0435:\n#-Count - \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\n#-computer - IP \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430\n#-quiet - \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u0432\u0435\u0440\u043d\u0443\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e Boolean \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\n$PictureBox.location = New-Object System.Drawing.Point(235,12)\nif ((test-connection -Count 1 -computer ya.ru -quiet) -eq $True) {\n\t$PictureBox.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$PictureBox1 = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox1.width = 10\n$PictureBox1.height = 10\n$PictureBox1.location = New-Object System.Drawing.Point(235,32)\nif ((test-connection -Count 1 -computer 8.8.8.8 -quiet) -eq $True) {\n\t$PictureBox1.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox1.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$PictureBox2 = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox2.width = 10\n$PictureBox2.height = 10\n$PictureBox2.location = New-Object System.Drawing.Point(235,52)\nif ((test-connection -Count 1 -computer 192.168.x.x -quiet) -eq $True) {\n\t$PictureBox2.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox2.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox2.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$PictureBox3 = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox3.width = 10\n$PictureBox3.height = 10\n$PictureBox3.location = New-Object System.Drawing.Point(235,72)\nif ((test-connection -Count 1 -computer 192.168.x.x -quiet) -eq $True) {\n\t$PictureBox3.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox3.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox3.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$PictureBox4 = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox4.width = 10\n$PictureBox4.height = 10\n$PictureBox4.location = New-Object System.Drawing.Point(235,92)\nif ((test-connection -Count 1 -computer 10.0.x.x -quiet) -eq $True) {\n\t$PictureBox4.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\nElse {\n\t$PictureBox4.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n}\n$PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$PictureBox5 = New-Object system.Windows.Forms.PictureBox #\u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\n$PictureBox5.width = 10\n$PictureBox5.height = 10\n$PictureBox5.location = New-Object System.Drawing.Point(235,112)\nif ((test-connection -Count 1 -computer 162.102.x.x -quiet) -eq $True) {\n\t$PictureBox5.imageLocation = \"C:Testyes.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n\t}\nElse {\n\t$PictureBox5.imageLocation = \"C:Testno.png\" #\u041e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \n\t}\n$PictureBox5.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\n$Button = New-Object System.Windows.Forms.Button\n$Button.Location = New-Object System.Drawing.Size(100,150) \n$Button.Size = New-Object System.Drawing.Size(80,30)\n$Button.Text = \"Reload\"\n\n# \u0412\u0435\u0448\u0430\u0435\u043c \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e PictureBox \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0440\u0430\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435\n$Button.Add_Click({ \n\tif ((Test-Connection -Count 1 -computer ya.ru -quiet) -eq $True)\n\t\t{$PictureBox.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox.imageLocation\t= \"C:Testno.png\"}\n\t  \n\tif ((Test-Connection -Count 1 -computer 8.8.8.8 -quiet) -eq $True)\n\t\t{$PictureBox1.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox1.imageLocation\t= \"C:Testno.png\"}\n\n\tif ((Test-Connection -Count 1 -computer 192.168.x.x -quiet) -eq $True)\n\t\t{$PictureBox2.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox2.imageLocation\t= \"C:Testno.png\"}\n\n\tif ((Test-Connection -Count 1 -computer 192.168.x.x -quiet) -eq $True)\n\t\t{$PictureBox3.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox3.imageLocation\t= \"C:Testno.png\"}\n\n\tif ((Test-Connection -Count 1 -computer 10.0.x.x -quiet) -eq $True)\n\t\t{$PictureBox4.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox4.imageLocation\t= \"C:Testno.png\"}\n\n\tif ((Test-Connection -Count 1 -computer 162.102.x.x -quiet) -eq $True)\n\t\t{$PictureBox5.imageLocation\t= \"C:Testyes.png\"}\n\tElse {$PictureBox5.imageLocation\t= \"C:Testno.png\"}\n\t})\n\n$main_form.Controls.Add($Label) #\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a \u0444\u043e\u0440\u043c\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\n$main_form.Controls.Add($Label1)\n$main_form.Controls.Add($Label2)\n$main_form.Controls.Add($Label3)\n$main_form.Controls.Add($Label4)\n$main_form.Controls.Add($Label5)\n$main_form.Controls.Add($PictureBox)\n$main_form.Controls.Add($PictureBox1)\n$main_form.Controls.Add($PictureBox2)\n$main_form.Controls.Add($PictureBox3)\n$main_form.Controls.Add($PictureBox4)\n$main_form.Controls.Add($PictureBox5)\n$main_form.Controls.Add($Button)\n\n$main_form.ShowDialog() #\u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0441\u043a\u043e\u0440\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e\u0435 \u043e\u043a\u043d\u043e\n<\/code><\/pre>\n<p>\n\u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0447\u0438\u0441\u0442\u043e\u0442\u0443 \u0438 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0442\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043d\u043e\u0441\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 \u043f\u0443\u0442\u044c \u043a \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e:<\/p>\n<pre><code class=\"plaintext\">$script_path\t= \"C:TestPS ping\"\n\n#\u041f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u043c \u0432 \u0444\u0438\u043d\u043a\u0446\u0438\u044e \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 PictureBox \u0438 IP-\u0430\u0434\u0440\u0435\u0441\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c.\n#\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443.\nfunction get_status($PictureBox,$path_ip) {\n\tif ((Test-Connection -Count 1 -computer $path_ip -quiet) -eq $True)\n\t\t{$PictureBox.imageLocation\t= $script_path + \"yes.png\"}\n\tElse {$PictureBox.imageLocation\t= $script_path + \"no.png\"} \n\t}\n<\/code><\/pre>\n<p>\n\u0412\u044b\u043d\u0435\u0441\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0445\u043e\u0441\u0442\u0435 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0444\u0430\u0439\u043b path.txt, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0432 \u0432\u0438\u0434\u0435 \u00abip\/host-functional-name\/\u00bb, \u0430 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0438\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u044b. \u0422\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0430\u0441\u0447\u0435\u0442 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e Y \u0431\u043e\u043b\u0435\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c Label`\u044b \u0438 checkbox`\u044b \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/d38795200639578e503c88447efc3b45.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e, \u043d\u0430 \u0432\u0445\u043e\u0434 \u0438\u0434\u0443\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 Label, IP-\u0430\u0434\u0440\u0435\u0441\u0441, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043f\u043e \u043e\u0441\u0438 Y\nFunction Create_line($label,$path_ip,$caption, $top){ \n\t$label.Location = New-Object System.Drawing.Point(1, $top)\n\t$label.text = $path_ip+$caption\n\t$label.font = $font\n\t$Label.AutoSize = $true\n\t}\n#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u044e, \u043d\u0430 \u0432\u0445\u043e\u0434 \u0438\u0434\u0443\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 PictureBox, IP-\u0430\u0434\u0440\u0435\u0441\u0441 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043f\u043e \u043e\u0441\u0438 Y\nFunction Create_link($PictureBox,$path_ip, $top){ \n\t$PictureBox.width\t= 10\n\t$PictureBox.height\t= 10\n\t$PictureBox.location\t= New-Object System.Drawing.Point(210,$top)\n\tget_status -PictureBox $PictureBox -path_ip $path_ip\n\t$PictureBox.SizeMode\t= [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\t}\n\n$line = Get-content -LiteralPath $script_path\"path.txt\" #\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445\n$len = $line.Length\t#\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u0438\u043d \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438\n\n$i = 0\n\n#\u0434\u0430\u043b\u0435\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435\n$ip = @()\t#\u043c\u0430\u0441\u0441\u0438\u0432 ip\n$capt = @()\t#\u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n$Labels =@()\t#\u043c\u0430\u0441\u0441\u0438\u0432 Label\n$PictureBoxs =@()\t#\u043c\u0430\u0441\u0441\u0438\u0432 PictureBox\n\nwhile($i -lt $len){\n\t$f = $line[$i].IndexOf(\"\/\") #\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n\t$l = $line[$i].LastIndexOf(\"\/\")\t#\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u043e\u043d\u0446\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n\t$ip += $line[$i].Substring(0,$f)\t#\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c ip\n\t$capt += $line[$i].Substring($f+1,$l-$f-1)\t#\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\n\n\t#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u0435 Label\n\tCreate_line -label ($label_obj = New-Object System.Windows.Forms.Label) -path_ip $ip[$i] -caption $capt[$i] -top $label_from_top\n\t#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u0435 PictureBox\n\tCreate_link -PictureBox ($PictureBox_obj = New-Object system.Windows.Forms.PictureBox) -path_ip $ip[$i] -top $label_from_top\n\n\t$label_from_top += 15\t#\u0434\u0435\u043b\u0430\u0435\u043c \"\u0448\u0430\u0433\" \u043f\u043e \u043e\u0441\u0438 Y\n\n\t$Labels\t+= $label_obj\t#\u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 Label \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\n\t$PictureBoxs\t+= $PictureBox_obj\t#\u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 PictureBox \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\n\t$main_form.Controls.Add($Labels[$i])\n\t$main_form.Controls.Add($PictureBoxs[$i])\n\t$i\t+=1\n\t}\n<\/code><\/pre>\n<p>\n\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u0438 \u043d\u0435\u043c\u043e\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443.<\/p>\n<p><img decoding=\"async\" alt=\"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell\" src=\"\/wp-content\/uploads\/2019\/08\/f00c39dc3a543686f8b11b80078171a7.jpeg\" style=\"display:block;margin: 0 auto\" \/><\/p>\n<pre><code class=\"plaintext\">$Label0\t= New-Object System.Windows.Forms.Label\n$Label0.Text\t= Get-Date\n$Label0.Location\t= New-Object System.Drawing.Point(80,180)\n$Label0.AutoSize\t= $true\n$main_form.Controls.Add($Label0)\n$Button.Add_Click({ \n\twhile($i -lt $len){\n\t\tget_status -PictureBox $PictureBoxs[$i] -path_ip $ip[$i]\n\t\t$i +=1\n\t\t}\n\t$Label0.Text\t= Get-Date \n\t})\n<\/code><\/pre>\n<p>\n\u0410 \u0442\u0430\u043a \u0436\u0435 \u044f \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0438\u0442\u0447\u0443\u043d\u0435 \u0431\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0441\u043e\u043e\u0431\u0449\u0430\u043b\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430, \u043d\u043e \u0438 \u0432\u043e\u043f\u0438\u043b\u043e \u0438\u0437 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u043e\u0432.<\/p>\n<pre><code class=\"plaintext\">Add-Type -AssemblyName System.Speech\n$voice\t= New-Object System.Speech.Synthesis.SpeechSynthesizer\n$voice.Rate\t= 5\n$voice.Speak(\"\u0412\u043e\u0440\u043d\u0438\u043d\u0433! \u0412\u043e\u0440\u043d\u0438\u043d\u0433! \u0411\u0430\u0439\u0437 \u0438\u0437 \u0430\u043d\u0434\u0435\u0440 \u0430\u0442\u0442\u0430\u043a!\")\n<\/code><\/pre>\n<p>\n\u0422\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0443\u043a\u0440\u0430\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432 \u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043a \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u043c\u0443\u0443\u0434\u043e\u0431\u043d\u043e\u043c\u0443 \u043c\u043d\u0435 \u0432\u0438\u0434\u0443, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<p><b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430<\/b><\/p>\n<pre><code class=\"plaintext\">Add-Type -AssemblyName System.Speech\nAdd-Type -assembly System.Windows.Forms\n\n$script_path\t= \"C:PS ping\"\n$label_from_top\t= 10\n$voice\t= New-Object System.Speech.Synthesis.SpeechSynthesizer\n$voice.Rate\t= 5\n\n#\u041f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u043c \u0432 \u0444\u0438\u043d\u043a\u0446\u0438\u044e \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 PictureBox \u0438 IP-\u0430\u0434\u0440\u0435\u0441\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c.\n#\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043e\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443.\nfunction get_status($PictureBox,$path_ip) {\n\tif ((Test-Connection -Count 1 -computer $path_ip -quiet) -eq $True) {\n\t\t$PictureBox.imageLocation\t= $script_path + \"yes.png\"\n\t\t}\n\tElse {\n\t\t$PictureBox.imageLocation\t= $script_path + \"no.png\"\n\t\t$voice.Speak(\"\u041e\u0448\u0438\u0431\u043a\u0430! \u0425\u043e\u0441\u0442 \" + $path_ip + \", \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d!\")\n\t\t}\n\t}\n\n#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043b\u0438\u043d\u0438\u044e, \u043d\u0430 \u0432\u0445\u043e\u0434 \u0438\u0434\u0443\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 Label, IP-\u0430\u0434\u0440\u0435\u0441\u0441, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043f\u043e \u043e\u0441\u0438 Y\nFunction Create_line($label,$path_ip,$caption, $top){ \n\t$label.Location\t= New-Object System.Drawing.Point(1, $top)\n\t$label.text\t= $path_ip+$caption\n\t$label.font\t= $font\n\t$Label.AutoSize\t= $true\n\t}\n\n#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u044e, \u043d\u0430 \u0432\u0445\u043e\u0434 \u0438\u0434\u0443\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 PictureBox, IP-\u0430\u0434\u0440\u0435\u0441\u0441 \u0438 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043f\u043e \u043e\u0441\u0438 Y\nFunction Create_link($PictureBox,$path_ip, $top){ \n\t$PictureBox.width\t= 10\n\t$PictureBox.height\t= 10\n\t$PictureBox.location\t= New-Object System.Drawing.Point(210,$top)\n\tget_status -PictureBox $PictureBox -path_ip $path_ip\n\t$PictureBox.SizeMode\t= [System.Windows.Forms.PictureBoxSizeMode]::zoom\n\t}\n\n$main_form\t= New-Object System.Windows.Forms.Form\n$main_form.Text ='Links up' #\u0418\u043c\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435\n$main_form.Width = 300 #\u0428\u0438\u0440\u0438\u043d\u0430 \u043e\u043a\u043d\u0430\n$main_form.Height = 200 #\u0412\u044b\u0441\u043e\u0442\u0430 \u043e\u043a\u043d\u0430\n$main_form.AutoSize = $true #\u0414\u0430\u0435\u043c \u0435\u043c\u0443 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\n$main_form.TopMost\t= $true #\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u043e\u043d\u0430 \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u043e\u043a\u043d\u043e \u043f\u043e\u0432\u0435\u0440\u0445 \u0434\u0440\u0443\u0433\u0438\u0445\n\n$line = Get-content -LiteralPath $script_path\"path.txt\" #\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0445\u043e\u0441\u0442\u0430\u0445\n$len = $line.Length\t#\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0434\u043b\u0438\u043d\u0443, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u0438\u043d \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438\n\n$i = 0\n\n#\u0434\u0430\u043b\u0435\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435\n$ip\t= @()\t#\u043c\u0430\u0441\u0441\u0438\u0432 ip\n$capt\t= @()\t#\u043c\u0430\u0441\u0441\u0438\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n$Labels\t=@()\t#\u043c\u0430\u0441\u0441\u0438\u0432 Label\n$PictureBoxs\t=@()\t#\u043c\u0430\u0441\u0441\u0438\u0432 PictureBox\n\nwhile($i -lt $len){\n\t$f\t= $line[$i].IndexOf(\"\/\") #\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n\t$l\t= $line[$i].LastIndexOf(\"\/\")\t#\u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043a\u043e\u043d\u0446\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\n\t$ip\t+= $line[$i].Substring(0,$f)\t#\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c ip\n\t$capt\t+= $line[$i].Substring($f+1,$l-$f-1)\t#\u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\n\n\t#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u0435 Label\n\tCreate_line -label ($label_obj = New-Object System.Windows.Forms.Label) -path_ip $ip[$i] -caption $capt[$i] -top $label_from_top\n\t#\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u0435 PictureBox\n\tCreate_link -PictureBox ($PictureBox_obj = New-Object system.Windows.Forms.PictureBox) -path_ip $ip[$i] -top $label_from_top\n\n\t$label_from_top\t+= 15\t#\u0434\u0435\u043b\u0430\u0435\u043c \"\u0448\u0430\u0433\" \u043f\u043e \u043e\u0441\u0438 Y\n\n\t$Labels\t+= $label_obj\t#\u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 Label \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\n\t$PictureBoxs\t+= $PictureBox_obj\t#\u0432\u043d\u043e\u0441\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 PictureBox \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432\n\t$main_form.Controls.Add($Labels[$i])\n\t$main_form.Controls.Add($PictureBoxs[$i])\n\t$i\t+=1\n}\n\n#\u044d\u0442\u043e \u043f\u043e\u043b\u0435 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\n$Label0\t= New-Object System.Windows.Forms.Label\n$Label0.Text\t= Get-Date\n$Label0.Location\t= New-Object System.Drawing.Point(80,180)\n$Label0.AutoSize\t= $true\n\n\n# \u0412\u0435\u0448\u0430\u0435\u043c \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e PictureBox \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0440\u0430\u043d\u0435\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435\n$Button\t= New-Object System.Windows.Forms.Button\n$Button.Location\t= New-Object System.Drawing.Size(100,200)\n$Button.Size\t= New-Object System.Drawing.Size(80,30)\n$Button.Text\t= \"Reload\"\n\n$Button.Add_Click({ \n\twhile($i -lt $len){\n\t\tget_status -PictureBox $PictureBoxs[$i] -path_ip $ip[$i]\n\t\t$i\t+=1\n\t\t}\n\t$i\t= 0\n\t$Label0.Text\t= Get-Date \n})\n\n$main_form.Controls.Add($Button)\n$main_form.Controls.Add($Label0)\n\n$main_form.ShowDialog()\n<\/code><\/pre>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>\n\u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u044b \u0442\u0430\u043a\u043e\u0435 \u0447\u0443\u0442\u044c-\u043b\u0438 \u043d\u0435 \u0441 \u043f\u0435\u043b\u0435\u043d\u043e\u043a \u0434\u0435\u043b\u0430\u043b\u0438, \u0442\u043e \u043f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e, \u044f \u2014 \u043d\u0435 \u0434\u0435\u043b\u0430\u043b. \u041d\u043e \u044f \u0433\u043e\u0442\u043e\u0432 \u0432\u044b\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u0432\u0430\u0448\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0414\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u0443\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e, \u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0432 \u0431\u044b\u0442\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443. \u0412 \u043f\u043b\u0430\u043d\u0430\u0445 \u0435\u0449\u0435 \u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0443\u0437\u043b\u043e\u0432 \u0438\u0437 GUI, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u0438 \u0442\u043e \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u00ab\u0442\u044b\u043a\u0430\u0442\u044c\u00bb \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u043e \u043d\u0435 \u0432\u0435\u0448\u0430\u043b\u043e \u00abpowershell.exe\u00bb.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430 <a rel=\"nofollow\" href=\"https:\/\/github.com\/UlahinAlex\/PowerShell_ping\">GitHub<\/a><br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/463777\/\">habr.com<\/a><\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0445\u043e\u0441\u0442\u043e\u0432. \u0411\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0421\u041c\u0421!\u00bb. \u0421 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0412\u0430\u0436\u043d\u043e: \u044f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0438 \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u0412\u0441\u0435\u0445 \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27909,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-37220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0445\u043e\u0441\u0442\u043e\u0432. \u0411\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0421\u041c\u0421!\u00bb. \u0421 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0412\u0430\u0436\u043d\u043e: \u044f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0438 \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u0412\u0441\u0435\u0445 \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/monitoring-dostupnosti-hostov-na-powershell\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0445\u043e\u0441\u0442\u043e\u0432. \u0411\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0421\u041c\u0421!\u00bb. \u0421 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0412\u0430\u0436\u043d\u043e: \u044f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0438 \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u0412\u0441\u0435\u0445 \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/monitoring-dostupnosti-hostov-na-powershell\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:16:24+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:16:24+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47\u00dcberwachung der Verf\u00fcgbarkeit von Hosts mit Powershell | ProHoster","description":"Einen sch\u00f6nen guten Tag allerseits, ich m\u00f6chte eine einfache Anleitung teilen: \"Wie man das manuelle Pingen von Dutzenden von Hosts ohne Registrierung und SMS einstellen kann!\" Aus dem Internet. Wichtig: Ich bin kein Programmierer und kein Systemadministrator, aber ich arbeite gleichzeitig mit einer gro\u00dfen Anzahl von Servern und Diensten, und dieses Skript habe ich zu meinem eigenen Komfort geschrieben. Allen, die davon profitieren k\u00f6nnen,","canonical_url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/monitoring-dostupnosti-hostov-na-powershell","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"de_DE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0445\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 Powershell | ProHoster","og:description":"\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a, \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439 \u00ab\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0438\u043d\u0433\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0445\u043e\u0441\u0442\u043e\u0432. \u0411\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0421\u041c\u0421!\u00bb. \u0421 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0412\u0430\u0436\u043d\u043e: \u044f \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0438 \u043d\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u043d\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u0412\u0441\u0435\u0445 \u043a\u043e\u043c\u0443 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e","og:url":"https:\/\/prohoster.info\/de\/blog\/administrirovanie\/monitoring-dostupnosti-hostov-na-powershell","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:16:24+00:00","article:modified_time":"2019-10-31T19:16:24+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"37220","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 16:48:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:31:24","updated":"2026-01-23 16:48:19"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/comments?post=37220"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37220\/revisions"}],"predecessor-version":[{"id":165692,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/posts\/37220\/revisions\/165692"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media\/27909"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/media?parent=37220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/categories?post=37220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/de\/wp-json\/wp\/v2\/tags?post=37220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}