Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WSH in VBScript (auf Rechnern einloggen)

Empfohlene Antworten

Hallöchen.

Wie kann ich mich auf einem entfernten System per Nutzerauthentifizierung einloggen um zB abzufragen ob bestimmte Dienste laufen?


dim Machine

dim oWMI

dim dienste


Machine = "//localhost"

set oWMI = getObject("winmgmts:{impersonationLevel=impersonate}!" & Machine).InstancesOf("Win32_Service")


FOR EACH oPro IN oWMI

    WScript.echo oPro.name & " x "  & oPro.DisplayName & "  " & oPro.State

NEXT

Lokal funktioniert das auch super. Aber, wenn ich für Machine einen entfernten Rechner angebe, dann kann das Script keine Verbindung aufbauen und bricht folgendermaßen ab.
Laufzeitfehler in Microsoft VBScript: Erlaubnis verweigert.: 'getObject'

Er findet also den Rechner, hat aber keine Berechtigung. Wie kann ich mich da einloggen?

Danke für eure Antworten

Schau mal direkt bei Microsoft: Connecting to WMI on a Remote Computer

strComputer = "atl-dc-01"

strDomain = "Fabrikam"

Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")

Set objSWbemServices = objSWbemLocator.ConnectServer _

    (strComputer, _         ' Computer name

     "root\cimv2", _        ' Namespace

      "login", _            ' User

      "password",, _       ' Password

      strDomain)            ' Domain

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.