<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Martin Zugec blog : Monad</title><link>http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx</link><description>Tags: Monad</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Security issue with PowerShell</title><link>http://msmvps.com/blogs/martinzugec/archive/2007/01/25/security-issue-with-powershell.aspx</link><pubDate>Thu, 25 Jan 2007 08:47:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:518156</guid><dc:creator>martin</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/rsscomments.aspx?PostID=518156</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/commentapi.aspx?PostID=518156</wfw:comment><comments>http://msmvps.com/blogs/martinzugec/archive/2007/01/25/security-issue-with-powershell.aspx#comments</comments><description>&lt;p&gt;Hi guys, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;after (too) long time I can finally return to Powershell (I spend few months creating batch framework to manage citrix servers, right now it is about 980 scripts). &lt;/p&gt;
&lt;p&gt;I was playing with Get-Credential:&lt;/p&gt;
&lt;p&gt;$Operator = get-credential&lt;/p&gt;
&lt;p&gt;I provided my username/password. If I have a look at object, I can see Password property and GetPassword() method. I tried this, Output is in System.Security.SecureString.&lt;/p&gt;
&lt;p&gt;I was just thinking how PowerShell is handling explicit authentication, so I had a look at available properties and methods - GetNetworkCredential grab my eye, so I tried it. And I was really surprised by output:&lt;/p&gt;
&lt;p&gt;mzugec&amp;gt;$operator.GetNetworkCredential()&lt;/p&gt;
&lt;p&gt;UserName&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;&amp;nbsp; Password&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;&amp;nbsp; Domain&lt;br /&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;&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;&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; ------&lt;br /&gt;mzugec&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YouPwdInPlainText&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyDomain&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Replace YouPwdInPlainText with your actual password! So be aware, if you are using get-credentials, it is very easy to retrieve your actual password!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=518156" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Scripting/default.aspx">Scripting</category><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx">Monad</category><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Security/default.aspx">Security</category></item><item><title>How to create GUI in Monad?</title><link>http://msmvps.com/blogs/martinzugec/archive/2005/10/17/71318.aspx</link><pubDate>Mon, 17 Oct 2005 20:37:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:71318</guid><dc:creator>martin</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/rsscomments.aspx?PostID=71318</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/commentapi.aspx?PostID=71318</wfw:comment><comments>http://msmvps.com/blogs/martinzugec/archive/2005/10/17/71318.aspx#comments</comments><description>&lt;P&gt;Hey guys! Sometimes you need to create some GUI - msgbox, inputbox etc... Till now it was really problem if you needed something more advanced - for example checkboxes etc. With Monad it is quite easy! And thats because you can use .net... In fact it is similar to creating normal program!&lt;/P&gt;
&lt;P&gt;[Reflection.Assembly]::LoadWithPartialName(&amp;#8221;System.Windows.Forms&amp;#8221;)&lt;/P&gt;
&lt;P&gt;$Form = New-Object System.Windows.Forms.Form&lt;/P&gt;
&lt;P&gt;$Button = New-Object System.Windows.Forms.Button&lt;/P&gt;
&lt;P&gt;$Form.Text = &amp;#8220;You didnt clicked yet&amp;#8221;&lt;/P&gt;
&lt;P&gt;$Button.Text = &amp;#8220;Click here!&amp;#8221;&lt;/P&gt;
&lt;P&gt;$Button.Add_Click({$Form.Text = &amp;#8220;You clicked!})&lt;/P&gt;
&lt;P&gt;$Form.Controls.Add($Button)&lt;/P&gt;
&lt;P&gt;$Form.ShowDialog()&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=71318" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx">Monad</category></item><item><title>Monad documentation</title><link>http://msmvps.com/blogs/martinzugec/archive/2005/10/05/69014.aspx</link><pubDate>Wed, 05 Oct 2005 18:09:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:69014</guid><dc:creator>martin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/rsscomments.aspx?PostID=69014</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/commentapi.aspx?PostID=69014</wfw:comment><comments>http://msmvps.com/blogs/martinzugec/archive/2005/10/05/69014.aspx#comments</comments><description>&lt;P&gt;I noticed this information on Lee`s blog - Monad documentation from PDC is available! &lt;/P&gt;
&lt;P&gt;And it is great, I noticed few things I didnt know you could do, for example&lt;/P&gt;
&lt;P&gt;Filter get-company {$_.Company}&lt;/P&gt;
&lt;P&gt;Get-Process | Get-Company&lt;/P&gt;
&lt;P&gt;Download it today! :)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8a3c71d1-18e5-49d7-952a-c55d694ecee3&amp;amp;DisplayLang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=8a3c71d1-18e5-49d7-952a-c55d694ecee3&amp;amp;DisplayLang=en&lt;/A&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=69014" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Scripting/default.aspx">Scripting</category><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx">Monad</category></item><item><title>First alternative shell for Monad!</title><link>http://msmvps.com/blogs/martinzugec/archive/2005/10/03/68755.aspx</link><pubDate>Mon, 03 Oct 2005 17:20:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:68755</guid><dc:creator>martin</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/rsscomments.aspx?PostID=68755</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/commentapi.aspx?PostID=68755</wfw:comment><comments>http://msmvps.com/blogs/martinzugec/archive/2005/10/03/68755.aspx#comments</comments><description>&lt;P&gt;Heh, I was waiting for this moment, however I didnt know it will happen before first release :)&lt;/P&gt;
&lt;P&gt;We have alternative shell for monad - it is called jaMSH (Jeff`s Alternative Monad SHell)... It includes few nice features - greater autocomplete, emacs/vi editing etc... &lt;/P&gt;
&lt;P&gt;However it was really unstable on my machine and really slow :( I will wait for next release... &lt;/P&gt;
&lt;P&gt;Link: &lt;A href="http://www.coldie.net/project/jamsh"&gt;http://www.coldie.net/project/jamsh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=68755" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Scripting/default.aspx">Scripting</category><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx">Monad</category></item><item><title>Monad = use structures from System namespace</title><link>http://msmvps.com/blogs/martinzugec/archive/2005/09/16/66630.aspx</link><pubDate>Fri, 16 Sep 2005 14:58:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:66630</guid><dc:creator>martin</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/rsscomments.aspx?PostID=66630</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/martinzugec/commentapi.aspx?PostID=66630</wfw:comment><comments>http://msmvps.com/blogs/martinzugec/archive/2005/09/16/66630.aspx#comments</comments><description>&lt;P&gt;Hey, did you know how to use structures from System namespace? Like DateTime for example?&lt;/P&gt;
&lt;P&gt;It is quite easy - [structure]::StaticMethod.&lt;/P&gt;
&lt;P&gt;For example to insert current date to variable $Today, you just need this line of code:&lt;/P&gt;
&lt;P&gt;MSH&amp;gt; $Today = [DateTime]::Now()&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;MSH&amp;gt; $test = ([Guid]::NewGuid()).ToString()&lt;BR&gt;MSH&amp;gt; $Test&lt;BR&gt;16c40e94-05d2-4e4b-8a93-f1f832556aa2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=66630" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/martinzugec/archive/tags/Monad/default.aspx">Monad</category></item></channel></rss>