title: VBscript to retrieve current user data from outlook
body: <p>I need to retrieve few fields from outlook like Fullname, jobtitle from outlook server using VBscript.</p>
  
  <pre><code>Set oNetwork = CreateObject("WScript.Network")
  sDomain = oNetwork.UserDomain
  sADSPath= sDomain &amp; "/" &amp; sUser
  Set oUser = GetObject("WinNT://" &amp; sADSPath &amp; ",user")
  if err.number &lt;&gt; 0 then
  objTextFile.WriteLine (sUser)
  else
  objTextFile.WriteLine (oUser.FullName)
  End If
  </code></pre>
  
  <p>The above script works to get the fullname if id is given in sUser. But the line </p>
  
  <pre><code>objTextFile.WriteLine (oUser.JobTitle)
  </code></pre>
  
  <p>is not working in the same way to retrieve the title field. 
  Please let me know what property to use to retrieve fields such as Manager Name and Jobtitle and location details from outlook.</p>
  
  <p>Note : I'm using outlook 2010.</p>