<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Developer Support ADSI, WMI, Powershell Team Blog - All Comments</title><link>http://blogs.msdn.com/b/dsadsi/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Using PowerShell History ( Part 2 )</title><link>http://blogs.msdn.com/b/dsadsi/archive/2012/01/09/it-s-all-history-part-2.aspx#10421871</link><pubDate>Tue, 28 May 2013 19:41:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10421871</guid><dc:creator>Todd S.</dc:creator><description>&lt;p&gt;Excellent tip, thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10421871" width="1" height="1"&gt;</description></item><item><title>re: Working with Group Policy Objects Programmatically – Locating a GPO using the GPMC ( Group Policy Management Console ) object model in C++</title><link>http://blogs.msdn.com/b/dsadsi/archive/2009/08/04/working-with-group-policy-objects-programmatically-locating-a-gpo-using-the-gpmc-group-policy-management-console-object-model-in-c.aspx#10415821</link><pubDate>Fri, 03 May 2013 05:49:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10415821</guid><dc:creator>vipin kumar beniwal</dc:creator><description>&lt;p&gt;hi code is running well on windows server but &amp;nbsp;when i run it on my xp machine then &lt;/p&gt;
&lt;p&gt;in following step i got error &lt;/p&gt;
&lt;p&gt;Class not Register &lt;/p&gt;
&lt;p&gt; hr = CoCreateInstance(CLSID_GPM, NULL,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CLSCTX_INPROC_SERVER,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IID_IGPM , (LPVOID*)&amp;amp;pGPM);&lt;/p&gt;
&lt;p&gt;even i register dll gpmgmt.dll on this machine &amp;nbsp;please tell me how can i run this from aremote xp machine &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10415821" width="1" height="1"&gt;</description></item><item><title>re: Title: COMException error 0x5011 (S_ADS_ERRORSOCCURRED) while enumerating the PrincipalSearchResult collection returned from System.DirectoryServices.AccountManagetment  UserPrincipal:: GetGroups  method</title><link>http://blogs.msdn.com/b/dsadsi/archive/2010/12/14/title-system-directoryservices-accountmanagetment-userprincipal-getgroups-will-throws-comexception-error-0x5011-s-ads-errorsoccurred-while-enumerating-the-principalsearchresult-collection.aspx#10399830</link><pubDate>Wed, 06 Mar 2013 09:43:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10399830</guid><dc:creator>Konrad Neitzel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for the blog entry. But I just want to add that there is also a hotfix from Microsoft that is fixing such an issue when you use .Net Framwork 3.5:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/969166/en-us"&gt;support.microsoft.com/.../en-us&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I just ran into such an issue when integrating our solution in the network of our customer and had these issues there, too.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10399830" width="1" height="1"&gt;</description></item><item><title>re: Retrieving product installation information using WMI via Powershell on a remote machine </title><link>http://blogs.msdn.com/b/dsadsi/archive/2010/04/09/retrieving-product-installation-information-using-powershell-on-a-remote-machine.aspx#10387969</link><pubDate>Thu, 24 Jan 2013 15:30:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10387969</guid><dc:creator>Chad</dc:creator><description>&lt;p&gt;Andy, &lt;/p&gt;
&lt;p&gt;You could always use &amp;quot;Impersonate&amp;quot; &lt;/p&gt;
&lt;p&gt;Ex:&lt;/p&gt;
&lt;p&gt; strComputer = &amp;quot;atl-dc-01&amp;quot;&lt;/p&gt;
&lt;p&gt;Set objSWbemLocator = CreateObject(&amp;quot;WbemScripting.SWbemLocator&amp;quot;)&lt;/p&gt;
&lt;p&gt;Set objSWbemServices = objSWbemLocator.ConnectServer _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;(strComputer, &amp;quot;root\cimv2&amp;quot;, &amp;quot;fabrikam\administrator&amp;quot;, &amp;quot;password&amp;quot;)&lt;/p&gt;
&lt;p&gt;objSWbemServices.Security_.ImpersonationLevel = 3&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10387969" width="1" height="1"&gt;</description></item><item><title>re: Reading all  WINS IP addresses on a computer using Windows Scripting Host ( VBScript )</title><link>http://blogs.msdn.com/b/dsadsi/archive/2012/03/07/shashi-s-post.aspx#10382956</link><pubDate>Mon, 07 Jan 2013 20:12:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10382956</guid><dc:creator>joe</dc:creator><description>&lt;p&gt;hi.. the code is kind of not displaying properly in your webpage. &amp;nbsp;Can you attach or repost your VBscript code?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10382956" width="1" height="1"&gt;</description></item><item><title>re: WScript.Quit( Value ) does not always match the error code environment variable %errorlevel% in the command processor ( batch file processing ) environment.</title><link>http://blogs.msdn.com/b/dsadsi/archive/2012/01/16/wscript-quit-value-does-not-always-return-the-value-to-the-script-host.aspx#10381031</link><pubDate>Thu, 27 Dec 2012 21:20:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10381031</guid><dc:creator>Jeff Spindler</dc:creator><description>&lt;p&gt;It looks like this may have been a McAfee issue:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.symantec.com/connect/forums/intermittent-failure-vbscript-returns-1073741819-w2k8-r2"&gt;www.symantec.com/.../intermittent-failure-vbscript-returns-1073741819-w2k8-r2&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://kc.mcafee.com/corporate/index?page=content&amp;amp;id=KB71660&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1313422826655"&gt;kc.mcafee.com/.../index&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10381031" width="1" height="1"&gt;</description></item><item><title>re: Retrieving product installation information using WMI via Powershell on a remote machine </title><link>http://blogs.msdn.com/b/dsadsi/archive/2010/04/09/retrieving-product-installation-information-using-powershell-on-a-remote-machine.aspx#10321959</link><pubDate>Tue, 19 Jun 2012 22:06:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10321959</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;This is wrong - first: the variable ComputerName (presumanbly a remote machine?) is not being used. The variable Computer is the one in the registry command. Second: this doesn&amp;#39;t work for remote connections - which for me is the whole point. When I execute this code (even with the ComputerName set properly) I still get the registry data FROM MY LOCAL MACHINE. :(&lt;/p&gt;
&lt;p&gt;Is there no way to use credentials and get software info from Windows 2003 servers?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10321959" width="1" height="1"&gt;</description></item><item><title>re: Create Proxy user in ADAM/AD LDS programmatically</title><link>http://blogs.msdn.com/b/dsadsi/archive/2010/05/04/create-proxy-user-in-adam-ad-lds-programmatically.aspx#10306817</link><pubDate>Fri, 18 May 2012 14:56:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10306817</guid><dc:creator>B3NT_0</dc:creator><description>&lt;p&gt;The only attributes that are needed to successfully create a &amp;#39;userProxyFull&amp;#39; are &amp;#39;CN&amp;#39; and &amp;#39;objectSid&amp;#39;. After setting those attributes call commitchanges(). Then you can safely set other attribtues. That seems to work 100% of the time. There are certain sets of attributes that can&amp;#39;t be set initially for different object types with ADSI...which is what S.DS surfaces. It&amp;#39;s the same for ADDS object types. &lt;/p&gt;
&lt;p&gt;BTW this is one of maybe 2 articles on the entire internet with this code listing...&amp;#39;userProxyFull&amp;#39; specific. Cheers.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10306817" width="1" height="1"&gt;</description></item><item><title>re: Using a customer application event log to debug a Powershell Script</title><link>http://blogs.msdn.com/b/dsadsi/archive/2012/01/05/it-s-how-the-cookie-crumbles.aspx#10297564</link><pubDate>Wed, 25 Apr 2012 11:55:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10297564</guid><dc:creator>pamarths</dc:creator><description>&lt;p&gt;Before writing to the event log, we can first check if the event source exists and create one if not found. The [system.diagnostics.EventLog] namespace helps in this case. &lt;a rel="nofollow" target="_new" href="http://techibee.com/powershell/powershell-write-eventlog-error-write-eventlog-the-source-name-xxx-does-not-exist-on-computer/1621"&gt;techibee.com/.../1621&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10297564" width="1" height="1"&gt;</description></item><item><title>re: Working with Group Policy Objects Programmatically - simple C++ example illustrating how to modify a registry based policy</title><link>http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry-based-policy.aspx#10271485</link><pubDate>Thu, 23 Feb 2012 15:21:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10271485</guid><dc:creator>ADiL</dc:creator><description>&lt;p&gt;Max Vaughn , Where&amp;#39;re you ?&lt;/p&gt;
&lt;p&gt;bGPOPath : what is it ? how can i get it?&lt;/p&gt;
&lt;p&gt;I tried to use GetDSPath to get bGPOPath &amp;nbsp;but it didnt work&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10271485" width="1" height="1"&gt;</description></item></channel></rss>