<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Petri IT Knowledgebase Forums - Powershell</title>
		<link>http://www.petri.co.il/forums/</link>
		<description>For issues related to Powershell on Windows Server 2008/R2, and for products using PS.</description>
		<language>en</language>
		<lastBuildDate>Sun, 26 May 2013 06:34:54 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.petri.co.il/forums/images/steelblue/misc/rss.jpg</url>
			<title>Petri IT Knowledgebase Forums - Powershell</title>
			<link>http://www.petri.co.il/forums/</link>
		</image>
		<item>
			<title>PSDrives, UNCs, expanding variables!</title>
			<link>http://www.petri.co.il/forums/showthread.php?t=63369&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 15:25:45 GMT</pubDate>
			<description><![CDATA[Hi Guys! 
 
What I'm trying to achieve seems very simple. I'm trying to use a PSDrive to plop the contents of a variable into a remote file on a server (obviously this will expand out to many servers once I have it tested). The file path is expanded from the Server Name which is in the variable...]]></description>
			<content:encoded><![CDATA[<div>Hi Guys!<br />
<br />
What I'm trying to achieve seems very simple. I'm trying to use a PSDrive to plop the contents of a variable into a remote file on a server (obviously this will expand out to many servers once I have it tested). The file path is expanded from the Server Name which is in the variable $SName - and the filename is &quot;servername.ini&quot;. A credential for a known Domain Admin user has been placed in $A.<br />
<br />
I created and used the drive using the following: <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><br />
New-PSDrive -Name U -Path &quot;\\$SName\C$&quot; -Credential $A<br />
<br />
Set-Location U:<br />
$IniFile | Set-Content -Path &quot;$SName.ini&quot;</code><hr />
</div>The issue I have is that in the &quot;Set-Content&quot; command, the path of &quot;U&quot; is expanded three times so that I get the following error message:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><br />
Set-Content : Could not find a part of the path <br />
'\\servername\C$\servername\C$\servername\C$\servername.ini'.</code><hr />
</div>Can anyone tell me what I'm doing wrong in creating and/or referencing this PSDrive?<br />
<br />
Sorry for being a n00b... TIA.<br />
<br />
p.s. I have also tried the obvious 'set-Content -Path &quot;U:\$SName.ini&quot; ' instead of using &quot;Set-Location&quot;.</div>

]]></content:encoded>
			<category domain="http://www.petri.co.il/forums/forumdisplay.php?f=70">Powershell</category>
			<dc:creator>Stonelaughter</dc:creator>
			<guid isPermaLink="true">http://www.petri.co.il/forums/showthread.php?t=63369</guid>
		</item>
		<item>
			<title>Disabling users in AD with powershell script</title>
			<link>http://www.petri.co.il/forums/showthread.php?t=62856&amp;goto=newpost</link>
			<pubDate>Mon, 04 Mar 2013 21:13:40 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am looking for a script that will disable users (from a csv file) and at the same time write "User disabled, contact John Doe" in the description field. 
 
My csv file looks like this: 
 
Username 
Warren Buffet 
Bill Gates 
Bruce Willis]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am looking for a script that will disable users (from a csv file) and at the same time write &quot;User disabled, contact John Doe&quot; in the description field.<br />
<br />
My csv file looks like this:<br />
<br />
Username<br />
Warren Buffet<br />
Bill Gates<br />
Bruce Willis<br />
Sylvester Stallone<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.petri.co.il/forums/forumdisplay.php?f=70">Powershell</category>
			<dc:creator>Epid</dc:creator>
			<guid isPermaLink="true">http://www.petri.co.il/forums/showthread.php?t=62856</guid>
		</item>
		<item>
			<title>PowerShell 3.0: how to use the set-ACL cmdlet to modify and check permissions</title>
			<link>http://www.petri.co.il/forums/showthread.php?t=62621&amp;goto=newpost</link>
			<pubDate>Tue, 05 Feb 2013 20:42:16 GMT</pubDate>
			<description><![CDATA[Hello all, 
I've been searching the internet for this, and I can't find anything that makes things clear.  I'm curious about how to use the set-ACL cmdlet to either check existing permissions for a group or user on an object, or to modify permissions.  Could someone please explain to me the easiest...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
I've been searching the internet for this, and I can't find anything that makes things clear.  I'm curious about how to use the set-ACL cmdlet to either check existing permissions for a group or user on an object, or to modify permissions.  Could someone please explain to me the easiest way to do this?  Thanks.</div>

]]></content:encoded>
			<category domain="http://www.petri.co.il/forums/forumdisplay.php?f=70">Powershell</category>
			<dc:creator>Chromebuster</dc:creator>
			<guid isPermaLink="true">http://www.petri.co.il/forums/showthread.php?t=62621</guid>
		</item>
		<item>
			<title>The memberOf attribute returns DN names, I want simple group names</title>
			<link>http://www.petri.co.il/forums/showthread.php?t=62596&amp;goto=newpost</link>
			<pubDate>Fri, 01 Feb 2013 22:19:16 GMT</pubDate>
			<description>Hi guys was wondering if there a simple way to format my result of a command i ran. see below 
GET-ADUSER -Identity NAME -Properties MemberOf | Select-Object MemberOf 
 
the result i get is the full DN of the groups but what i want is the results just to show the simple name and not the full DN. ...</description>
			<content:encoded><![CDATA[<div>Hi guys was wondering if there a simple way to format my result of a command i ran. see below<br />
GET-ADUSER -Identity NAME -Properties MemberOf | Select-Object MemberOf<br />
<br />
the result i get is the full DN of the groups but what i want is the results just to show the simple name and not the full DN.  Can you assist and recommend a good starter book for learning powershell?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.petri.co.il/forums/forumdisplay.php?f=70">Powershell</category>
			<dc:creator>joeyg2391</dc:creator>
			<guid isPermaLink="true">http://www.petri.co.il/forums/showthread.php?t=62596</guid>
		</item>
	</channel>
</rss>
