AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Delphi-PRAXiS - Lounge Betriebssysteme [Zugriff verweigert] Problem mit Remote Registry
Thema durchsuchen
Ansicht
Themen-Optionen

[Zugriff verweigert] Problem mit Remote Registry

Ein Thema von Sunlight7 · begonnen am 10. Dez 2006 · letzter Beitrag vom 7. Jan 2007
 
Christian Seehase
(Co-Admin)

Registriert seit: 29. Mai 2002
Ort: Hamburg
11.123 Beiträge
 
Delphi 11 Alexandria
 
#18

Re: [Zugriff verweigert] Problem mit Remote Registry

  Alt 11. Dez 2006, 22:20
Moin Zusammen,

also mir sind noch folgende Dinge in der Dokumentation zu RegConnectRegistry aufgefallen:

Zitat von PSDK - RegConnectRegistry - Remarks:
If the computer is joined to a workgroup and the "Force network logons using local accounts to authenticate as Guest" policy is enabled, the function fails. Note that this policy is enabled by default if the computer is joined to a workgroup.
Leider weiss ich im Moment nicht, wo man diese Policy finden kann.

Zitat von PSDK - RegConnectRegistry - Remarks:
If the current user does not have proper access to the remote computer, the call to RegConnectRegistry fails. To connect to a remote registry, call LogonUser with LOGON32_LOGON_NEW_CREDENTIALS and ImpersonateLoggedOnUser before calling RegConnectRegistry.
Dafür gibt es hier Beispiele (bzw. mindestens eines )

Zitat von PSDK - RegConnectRegistry - Remarks:
Windows 2000: One possible workaround is to establish a session to an administrative share such as IPC$ using a different set of credentials. To specify credentials other than those of the current user, use the WNetAddConnection2 function to connect to the share. When you have finished accessing the registry, cancel the connection.
Auch wenn es sich auf 2000 bezieht:
IMHO müsste das auch unter XP-Pro funktionieren.
Die Fehlermeldung, die ihr da bekommt deutet ja schon darauf hin, dass schon eine Verbindung besteht.
Probiert es doch auch noch einmal mit der IP-Adresse des Rechners.
Tschüss Chris
Die drei Feinde des Programmierers: Sonne, Frischluft und dieses unerträgliche Gebrüll der Vögel.
Der Klügere gibt solange nach bis er der Dumme ist
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:12 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz