Set ParentObject = GetObject ("IIS://localhost/W3SVC/1/Root")
To access the metabase, ADSI needs certain entries from the HKEY_CURRENT_USERS registry key. If the code is running in the context of a user that has not logged on to the computer, this key is not loaded with the necessary information.
ID d'article : 243808 - Dernière mise à jour : 14 févr. 2017 - Révision : 1