VB.Net - Local, Connexion WMI avec les informations d'identification utilisateur

Dans VB.Net je suis en train d'essayer de se connecter à WMI sur mon ordinateur local avec les informations d'identification différentes (l'utilisateur n'aura pas les droits d'admin) et je reçois cette exception :

« Identification de l'utilisateur ne peuvent pas être utilisés pour les connexions locales »

Voici le code :

    Dim path As ManagementPath = Nothing
    Dim options As ConnectionOptions = Nothing
    Dim scope As ManagementScope = Nothing

    path = New ManagementPath("\\" & vServerName & "\root\CIMV2")

    options = New ConnectionOptions
    options.Username = vUsername
    options.Password = vPassword

    Scope = New ManagementScope(path, options)

    Scope.Connect()
InformationsquelleAutor Mitchel | 2011-11-21