<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Powershell: Working with Passwords</title>
	<link>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/</link>
	<description>ls /usr/lolcat</description>
	<pubDate>Thu, 20 Nov 2008 16:08:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Robert</title>
		<link>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-10332</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 20 Aug 2008 21:06:49 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-10332</guid>
		<description>Using this '$newUser.psbase.Invoke("SetPassword","$password")'

I get an error
Method invocation failed because [System.Management.Automation.PSMemberset doesn't contain a method names 'Invoke'

Any ideas?</description>
		<content:encoded><![CDATA[<p>Using this '$newUser.psbase.Invoke("SetPassword","$password")'</p>
<p>I get an error<br />
Method invocation failed because [System.Management.Automation.PSMemberset doesn't contain a method names 'Invoke'</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bene</title>
		<link>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-9980</link>
		<dc:creator>bene</dc:creator>
		<pubDate>Mon, 10 Mar 2008 12:01:58 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-9980</guid>
		<description>Hi,

make the $password with " around and it works create.
$newUser.psbase.Invoke("SetPassword","$password")

You could also make $password.tostring():
$newUser.psbase.Invoke("SetPassword",$password.ToString())</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>make the $password with " around and it works create.<br />
$newUser.psbase.Invoke("SetPassword","$password")</p>
<p>You could also make $password.tostring():<br />
$newUser.psbase.Invoke("SetPassword",$password.ToString())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: povlhp</title>
		<link>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-1099</link>
		<dc:creator>povlhp</dc:creator>
		<pubDate>Fri, 30 Nov 2007 08:49:30 +0000</pubDate>
		<guid>http://blog.netnerds.net/2007/07/powershell-exception-has-been-thrown-by-the-target-of-an-invocation/#comment-1099</guid>
		<description>I have no luck converting a string into a securestring:

0
PS C:\scripts&#62; $x = New-Object System.Management.Automation.PsCredential "None", "abekat"
New-Object : Cannot convert argument "1", with value: "abekat", for ".ctor" to type "System.Security.SecureString": "Cannot convert value "abekat" to type "System.Security.SecureString". Error: "Invalid cast from 'System.String' to 'System.Security.SecureString'.""
At line:1 char:16
+ $x = New-Object  &#60;&#60;&#60;&#60; System.Management.Automation.PsCredential "None", "abekat"</description>
		<content:encoded><![CDATA[<p>I have no luck converting a string into a securestring:</p>
<p>0<br />
PS C:\scripts&gt; $x = New-Object System.Management.Automation.PsCredential "None", "abekat"<br />
New-Object : Cannot convert argument "1", with value: "abekat", for ".ctor" to type "System.Security.SecureString": "Cannot convert value "abekat" to type "System.Security.SecureString". Error: "Invalid cast from 'System.String' to 'System.Security.SecureString'.""<br />
At line:1 char:16<br />
+ $x = New-Object  &lt;&lt;&lt;&lt; System.Management.Automation.PsCredential "None", "abekat"</p>
]]></content:encoded>
	</item>
</channel>
</rss>
