<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Imtech Run PowerShell Script Deployment Step</title>
	<atom:link href="http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP &#124; ISSN 2210-9390</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:22:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-95868</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Mon, 10 Oct 2011 03:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-95868</guid>
		<description>@Nicole: I suggest you check out the code of CKS:DEV on CodePlex. We have built a custom extension that allows us to execute PowerShell scripts using the x64 PowerShell process.</description>
		<content:encoded><![CDATA[<p>@Nicole: I suggest you check out the code of CKS:DEV on CodePlex. We have built a custom extension that allows us to execute PowerShell scripts using the x64 PowerShell process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-94753</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Sat, 01 Oct 2011 09:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-94753</guid>
		<description>Hi, 

Great work! However, I have a question. I have a similar issue with Enric as I have read above. I want to execute Sharepoint powershell scripts such as creating new site, getting list of sites in a site collection, etc. from WCF in Visual Studio 2010. However, since VS is a 32 bit process it cannot execute 64bit powershell for Sharepoint cmdlets as you have said. Do you have any idea how to fix this? 

Thank you very much!</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Great work! However, I have a question. I have a similar issue with Enric as I have read above. I want to execute Sharepoint powershell scripts such as creating new site, getting list of sites in a site collection, etc. from WCF in Visual Studio 2010. However, since VS is a 32 bit process it cannot execute 64bit powershell for Sharepoint cmdlets as you have said. Do you have any idea how to fix this? </p>
<p>Thank you very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-89463</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Sun, 21 Aug 2011 08:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-89463</guid>
		<description>@Galiya: This extension has been merged with CKS:DEV where it&#039;s being developed further, so if you are interested in the newest version you should install CKS:DEV. As for the functionality you mentioned, it has been reported to us before (http://cksdev.codeplex.com/workitem/6251). One thing you could do to have implemented faster is to vote on the issue.

Thank you for your feedback.</description>
		<content:encoded><![CDATA[<p>@Galiya: This extension has been merged with CKS:DEV where it&#039;s being developed further, so if you are interested in the newest version you should install CKS:DEV. As for the functionality you mentioned, it has been reported to us before (<a href="http://cksdev.codeplex.com/workitem/6251" rel="nofollow">http://cksdev.codeplex.com/workitem/6251</a>). One thing you could do to have implemented faster is to vote on the issue.</p>
<p>Thank you for your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Galiya</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-89246</link>
		<dc:creator>Galiya</dc:creator>
		<pubDate>Fri, 19 Aug 2011 09:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-89246</guid>
		<description>Hi Waldek,

When you add file to &quot;powershell script #1&quot;, can you specify a relative path for the file? I have my ps1 file in the project folder itself, but on different dev machines it is located in the different location. At the moment, every developer has to change this property to deploy successfully. Do I miss something, or this is not yet available?

Thanks in advance,
Galiya</description>
		<content:encoded><![CDATA[<p>Hi Waldek,</p>
<p>When you add file to &#034;powershell script #1&#034;, can you specify a relative path for the file? I have my ps1 file in the project folder itself, but on different dev machines it is located in the different location. At the moment, every developer has to change this property to deploy successfully. Do I miss something, or this is not yet available?</p>
<p>Thanks in advance,<br />
Galiya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kostadin Markov</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-61964</link>
		<dc:creator>Kostadin Markov</dc:creator>
		<pubDate>Fri, 03 Dec 2010 00:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-61964</guid>
		<description>Ernic, I suggest setting $ErrorActionPreference = &#039;stop&#039; within the script - may not help though!</description>
		<content:encoded><![CDATA[<p>Ernic, I suggest setting $ErrorActionPreference = &#039;stop&#039; within the script &#8211; may not help though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-58153</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 19 Oct 2010 04:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-58153</guid>
		<description>@Michael: did you set the execution policy while running PowerShell as administrator or just like a plain user?</description>
		<content:encoded><![CDATA[<p>@Michael: did you set the execution policy while running PowerShell as administrator or just like a plain user?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Blumenthal</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-58103</link>
		<dc:creator>Michael Blumenthal</dc:creator>
		<pubDate>Mon, 18 Oct 2010 17:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-58103</guid>
		<description>I just posted an issue at http://cksdev.codeplex.com/workitem/5732 - POSH refuses to run my script because it is unsigned and I don&#039;t seem to have any way to set the execution policy.</description>
		<content:encoded><![CDATA[<p>I just posted an issue at <a href="http://cksdev.codeplex.com/workitem/5732" rel="nofollow">http://cksdev.codeplex.com/workitem/5732</a> &#8211; POSH refuses to run my script because it is unsigned and I don&#039;t seem to have any way to set the execution policy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enric</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-51638</link>
		<dc:creator>Enric</dc:creator>
		<pubDate>Tue, 20 Jul 2010 07:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-51638</guid>
		<description>You&#039;ve got it!

http://cksdev.codeplex.com/workitem/5214</description>
		<content:encoded><![CDATA[<p>You&#039;ve got it!</p>
<p><a href="http://cksdev.codeplex.com/workitem/5214" rel="nofollow">http://cksdev.codeplex.com/workitem/5214</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-51594</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Mon, 19 Jul 2010 17:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-51594</guid>
		<description>@Enric: sure. I would appreciate it if you could add it to the Issue Tracker @ http://cksdev.codeplex.com so that we can note that, discuss with the team and if there is no blocks for it, include it in the next release.

Thanks again for your feedback,

Waldek</description>
		<content:encoded><![CDATA[<p>@Enric: sure. I would appreciate it if you could add it to the Issue Tracker @ <a href="http://cksdev.codeplex.com" rel="nofollow">http://cksdev.codeplex.com</a> so that we can note that, discuss with the team and if there is no blocks for it, include it in the next release.</p>
<p>Thanks again for your feedback,</p>
<p>Waldek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enric</title>
		<link>http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/comment-page-1/#comment-51576</link>
		<dc:creator>Enric</dc:creator>
		<pubDate>Mon, 19 Jul 2010 11:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/imtech-run-powershell-script-deployment-step/#comment-51576</guid>
		<description>Just one thing, Waldek: after executing the PS1 script, the Process object returns ExitCode = 0 even if a command has failed, so the generated StandardError text is lost (in fact, I could only see it debugging the code). 

 if (cmd.ExitCode != 0)
 {
     logger.WriteLine(cmd.StandardError.ReadToEnd(), LogCategory.Error);
 }

Do you think that the Standard Error could be always logged, regardless of the ExitCode?</description>
		<content:encoded><![CDATA[<p>Just one thing, Waldek: after executing the PS1 script, the Process object returns ExitCode = 0 even if a command has failed, so the generated StandardError text is lost (in fact, I could only see it debugging the code). </p>
<p> if (cmd.ExitCode != 0)<br />
 {<br />
     logger.WriteLine(cmd.StandardError.ReadToEnd(), LogCategory.Error);<br />
 }</p>
<p>Do you think that the Standard Error could be always logged, regardless of the ExitCode?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

