{"id":397,"date":"2022-06-11T19:10:02","date_gmt":"2022-06-11T17:10:02","guid":{"rendered":"https:\/\/schoppe.it\/wiki\/?p=397"},"modified":"2024-09-03T08:50:58","modified_gmt":"2024-09-03T06:50:58","slug":"bginfo","status":"publish","type":"post","link":"https:\/\/schoppe.it\/wiki\/bginfo\/","title":{"rendered":"BGInfo"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Skripte<\/h2>\n\n\n\n<p>VB-Skripte k\u00f6nnen in BGInfo importiert werden zur Ermittlung und Anzeige weiterer Daten.<\/p>\n\n\n\n<p>Die folgenden Skripte in eine txt-Datei einf\u00fcgen und dann die Dateiendung \u00e4ndern in <strong>.vbs<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Skript zum Ermitteln der DNS Eintr\u00e4ge<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nstrMsg = &quot;&quot;\nstrComputer = &quot;.&quot;\n\nSet objWMIService = GetObject(&quot;winmgmts:&quot; &amp;amp; &quot;{impersonationLevel=impersonate}!\\\\&quot; &amp;amp; strComputer &amp;amp; &quot;\\root\\cimv2&quot;)\nSet IPConfigSet = objWMIService.ExecQuery(&quot;Select DNSServerSearchOrder from Win32_NetworkAdapterConfiguration WHERE IPEnabled = &#039;True&#039;&quot;)\n\nFor Each IPConfig in IPConfigSet\n  If Not IsNull(IPConfig.DNSServerSearchOrder) Then\n    For i = LBound(IPConfig.DNSServerSearchOrder) to UBound(IPConfig.DNSServerSearchOrder)\n      If i = 0 Then\n        strMsg = strMsg &amp;amp; IPConfig.DNSServerSearchOrder(i)\n      ElseIf i &gt; 0 Then\n        strMsg = strMsg &amp;amp; vbcrlf &amp;amp; vbtab &amp;amp; IPConfig.DNSServerSearchOrder(i)\n      End If\n    Next\n  End If\nNext\n\nEcho strMsg\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">Skript zum Ermitteln der IPv4 Adresse<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nstrComputer = &quot;.&quot;\nOn Error Resume Next\nSet objWMIService = GetObject(&quot;winmgmts:&quot; &amp;amp; &quot;{impersonationLevel=impersonate}!\\\\&quot; &amp;amp; strComputer &amp;amp; &quot;\\root\\cimv2&quot;)\nSet IPSettings = objWMIService.ExecQuery (&quot;SELECT * FROM Win32_NetworkAdapterConfiguration where IPEnabled = &#039;True&#039;&quot;)\n\nFor Each objIPv4 in IPSettings\n      For i=LBound(objIPv4.IPAddress) to UBound(objIPv4.IPAddress)\n      If InStr(objIPv4.IPAddress(i),&quot;:&quot;) = 0 Then Echo objIPv4.IPAddress(i)\nNEXT\nNEXT\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Skripte VB-Skripte k\u00f6nnen in BGInfo importiert werden zur Ermittlung und Anzeige weiterer Daten. Die folgenden Skripte in eine txt-Datei einf\u00fcgen und dann die Dateiendung \u00e4ndern in .vbs. Skript zum Ermitteln der DNS Eintr\u00e4ge Skript zum Ermitteln der IPv4 Adresse<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147],"tags":[],"powershell":[],"wordpress":[],"exchange":[],"linux":[],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-bginfo","entry"],"_links":{"self":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":1,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/posts\/397\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/tags?post=397"},{"taxonomy":"powershell","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/powershell?post=397"},{"taxonomy":"wordpress","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/wordpress?post=397"},{"taxonomy":"exchange","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/exchange?post=397"},{"taxonomy":"linux","embeddable":true,"href":"https:\/\/schoppe.it\/wiki\/wp-json\/wp\/v2\/linux?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}