<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code for username&amp;amp;userdomain</title><link>https://www.infopathdev.com:443/forums/thread/14074.aspx</link><pubDate>Tue, 29 Nov 2005 17:25:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14074</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14074</wfw:commentRss><description>Thank u, I'll let you know :)</description></item><item><title>Re: Code for username&amp;amp;userdomain</title><link>https://www.infopathdev.com:443/forums/thread/14073.aspx</link><pubDate>Tue, 29 Nov 2005 17:22:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14073</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14073.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14073</wfw:commentRss><description>I once learned about this webservice called .../_vti_bin/UserProfileService.asmx - refer to this link to learn a little bit about it&lt;a target="_blank" href=http://weblogs.asp.net/wkriebel/archive/2005/01/24/359669.aspx&gt;http://weblogs.asp.net/wkriebel/archive/2005/01/24/359669.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Have not used it before but know it was out there.</description></item><item><title>Code for username&amp;userdomain</title><link>https://www.infopathdev.com:443/forums/thread/12701.aspx</link><pubDate>Tue, 29 Nov 2005 16:35:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12701</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12701.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12701</wfw:commentRss><description>Hi guys,&lt;br /&gt;here's my problem with my form library on a Sharepoint Site:&lt;br /&gt;I usually use this VBScript code to get username and userdomain:&lt;br /&gt;&lt;br /&gt;Set X = CreateObject("WScript.Network")&lt;br /&gt;user = X.UserName&lt;br /&gt;dom = X.UserDomain&lt;br /&gt;&lt;br /&gt;An user of mine in our subsidiary uses one account to log in the local computer (this is NOT in our domain) and another account (in our domain) to use Sharepoint (right-click on Explorer icon, then "Run As..."). The code above gives me the first account used to log in the computer and not that used to access sharepoint site. So, how can i get the second account used for sharepoint site?&lt;br /&gt;&lt;br /&gt;Thank u!</description></item></channel></rss>