title: Error 2147463168 when trying to bind to an AD User Object
body: <p>I'm working on a Windows 2012 (NOT R2 and can't upgrade) AD environment. When I run the following piece of code from vbscript with an admin (not administrator) account, it runs perfectly. However when I run it with a normal user, I get a -2147463168 which seems to be a binding error.</p>
  
  <pre><code>On error Resume next
  UsuariosLDAP = "LDAP://" &amp; objSysInfo.UserNameSet
  ObjUser = GetObject(UsuariosLDAP)
  If err.number &lt;&gt; 0 then
      strTipoError = "Error buscando objeto en LDAP " &amp; CStr(Err.Number) &amp; " Usuario:" &amp;    objSysInfo.UserName
      shell.logevent 1, strTipoError 
      Wscript.Quit
  end if    
  </code></pre>
  
  <p>As it runs correctly with an admin account, I'll assume (looking for other options), that this is a permissions issue. The thing is that this a login script to be executed by all users, so I'm a bit leery of modifying permissions on all AD objects unless I really have to. The other thing is I've done something similar to this several times before (query a UserObject with a normal user) and it's always worked correctly. I'm not sure what has changed in 2012 to break this.</p>
  
  <p>Thx a lot in advance</p>