<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx</link><description>Summary : Learn how to use Windows PowerShell and still leverage your existing VBScript scripts.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx#3434921</link><pubDate>Sat, 11 Jun 2011 17:02:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434921</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;Active Directory from VB.NET&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx"&gt;blogs.technet.com/.../use-powershell-to-leverage-existing-vbscript-scripts.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PowerSHell from VB/C# etc.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms714469(v=vs.85).aspx"&gt;msdn.microsoft.com/.../ms714469(v=vs.85).aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434921" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx#3434901</link><pubDate>Sat, 11 Jun 2011 09:15:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434901</guid><dc:creator>Logan</dc:creator><description>&lt;p&gt;I have two different programs that I&amp;#39;m trying to program now. &amp;nbsp;One of them is trying to unlock the account through vb.net exclusively, and the second is trying to call a Powershell script that unlocks the account. &amp;nbsp;Good thing is I got my program to read the script and try to execute what&amp;#39;s in there, bad thing is the Import-ActiveDirectory module isn&amp;#39;t working because I&amp;#39;m running it from an XP machine that doesn&amp;#39;t have AD installed. &amp;nbsp;I&amp;#39;ve been looking at what you had suggested and it sounds promising. &amp;nbsp;Thanks for the info.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434901" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx#3434784</link><pubDate>Fri, 10 Jun 2011 12:48:11 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434784</guid><dc:creator>Sean Kearney</dc:creator><description>&lt;p&gt;Logan&lt;/p&gt;
&lt;p&gt;Cool and interesting solution. &amp;nbsp;But believe it or not this is a bit like re-inventing the wheel. &amp;nbsp;I believe there are ways to leverage this via DotNet already. &amp;nbsp; Using Powershell is a cool thing but I would (not being a Dev, but knowing 1% of DotNet) just leverage whatever libraries are available to unlock the A/D account. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you were in a newer setup I would play with Powershell remoting but that still might be overkill. &amp;nbsp; The other thing is be careful if you&amp;#39;re enabling users with the ability to SelfUnlock. &amp;nbsp;You want to make sure there is an appropriate set of challenges to ensure identity. &amp;nbsp;(No having them running a 200 meter relay wouldn&amp;#39;t count) ;)&lt;/p&gt;
&lt;p&gt;Also look into I think a project an MVP was working on called &amp;quot;Portable Powershell&amp;quot; I believe.&lt;/p&gt;
&lt;p&gt;Cheers !&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434784" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx#3434759</link><pubDate>Fri, 10 Jun 2011 09:55:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434759</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Hey Sean,&lt;/p&gt;
&lt;p&gt;at least you did mention Mr.Trouble again :-)&lt;/p&gt;
&lt;p&gt;Well, an interesting point to notice: We don&amp;#39;t ( and maybe shouldn&amp;#39;t ) throw away our old storm prooved working horses if there is no very good reason to do so!&lt;/p&gt;
&lt;p&gt;They may work together well!&lt;/p&gt;
&lt;p&gt;But openly speaking; I&amp;#39;d prefer to so ... sometimes!&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434759" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Leverage Existing VBScript Scripts</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/10/use-powershell-to-leverage-existing-vbscript-scripts.aspx#3434738</link><pubDate>Fri, 10 Jun 2011 08:23:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3434738</guid><dc:creator>Logan</dc:creator><description>&lt;p&gt;Hey Scripting Guy. &amp;nbsp;Could really use your Powershell knowledge to help me out in a vb.net project. &amp;nbsp;With Powershell v1.0, is it possible to run a .ps1 file in vb.net code without it just opening up in notepad? &amp;nbsp;I know about doing the whole powershell.exe &amp;quot;filepath&amp;quot; in the Run box, but here&amp;#39;s the curveball. &amp;nbsp;The machines that I need running my program...don&amp;#39;t have Powershell installed. &amp;nbsp;Powershell is actually installed on a domain controller server. &amp;nbsp;With that said, how do I call this .ps1 file and get it to execute the script inside?&lt;/p&gt;
&lt;p&gt;The program is to unlock AD accounts. &amp;nbsp;Basically you type a username in a text box, the code writes this information into a CSV file, and then calls the Powershell script. &amp;nbsp;The Powershell script reads the CSV file and unlocks the account. &amp;nbsp;Round-about away of doing things, but I figured it works and doesn&amp;#39;t grant the user access to AD, just the program. &amp;nbsp;Thanks in advance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3434738" width="1" height="1"&gt;</description></item></channel></rss>