<?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 for theboywonder.co.uk</title>
	<atom:link href="http://theboywonder.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://theboywonder.co.uk</link>
	<description>... ok, well at least I&#039;m trying.</description>
	<lastBuildDate>Tue, 23 Apr 2013 12:08:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Yet Another Invoke-SSH PowerShell Function (thanks PS Fab) by poli</title>
		<link>http://theboywonder.co.uk/2013/03/07/yet-another-invoke-ssh-powershell-function/comment-page-1/#comment-93038</link>
		<dc:creator>poli</dc:creator>
		<pubDate>Tue, 23 Apr 2013 12:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=786#comment-93038</guid>
		<description><![CDATA[Hi, thanks for the post.
Is there a way to retrieve this information as properties with invoke-ssh?
It returns the correct info but it is impossible to to parse the text to get what you want..

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi, thanks for the post.<br />
Is there a way to retrieve this information as properties with invoke-ssh?<br />
It returns the correct info but it is impossible to to parse the text to get what you want..</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Speeding up Get-WinEvent in Powershell by using FilterHashTable by &#187; Importing Windows Forwarded Events into SQL Server using PowerShell</title>
		<link>http://theboywonder.co.uk/2012/03/15/speeding-up-get-winevent-in-powershell-by-using-filterhashtable/comment-page-1/#comment-93028</link>
		<dc:creator>&#187; Importing Windows Forwarded Events into SQL Server using PowerShell</dc:creator>
		<pubDate>Tue, 09 Apr 2013 09:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=659#comment-93028</guid>
		<description><![CDATA[[...] a tricky thing. For some reason, the way that one would usually filter Get-WinEvent results using FilterHasTable kept returning the result Get-WinEvent : No events were found that match the specified selection [...]]]></description>
		<content:encoded><![CDATA[<p>[...] a tricky thing. For some reason, the way that one would usually filter Get-WinEvent results using FilterHasTable kept returning the result Get-WinEvent : No events were found that match the specified selection [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Speeding up Get-WinEvent in Powershell by using FilterHashTable by Robin</title>
		<link>http://theboywonder.co.uk/2012/03/15/speeding-up-get-winevent-in-powershell-by-using-filterhashtable/comment-page-1/#comment-92943</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sun, 24 Mar 2013 20:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=659#comment-92943</guid>
		<description><![CDATA[Typically you would loop through an array of computers using a foreach loop, and with each iteration of the loop you query a single server. How you generate the array is up to you. It could be a list of computers in a text file, or from Get-ADComputer. I&#039;m not writing the code though. &lt;a href=&quot;https://www.google.co.uk/search?q=powershell+get-winevent+multiple+computers&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Google is a powerful tool :)&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>Typically you would loop through an array of computers using a foreach loop, and with each iteration of the loop you query a single server. How you generate the array is up to you. It could be a list of computers in a text file, or from Get-ADComputer. I&#8217;m not writing the code though. <a href="https://www.google.co.uk/search?q=powershell+get-winevent+multiple+computers&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a" target="_blank" rel="nofollow">Google is a powerful tool :)</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Speeding up Get-WinEvent in Powershell by using FilterHashTable by Ajit</title>
		<link>http://theboywonder.co.uk/2012/03/15/speeding-up-get-winevent-in-powershell-by-using-filterhashtable/comment-page-1/#comment-92942</link>
		<dc:creator>Ajit</dc:creator>
		<pubDate>Sun, 24 Mar 2013 20:26:16 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=659#comment-92942</guid>
		<description><![CDATA[how do i run  the script against against multiple servers]]></description>
		<content:encoded><![CDATA[<p>how do i run  the script against against multiple servers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Update Multiple Fix Script by Robin</title>
		<link>http://theboywonder.co.uk/2010/01/22/windows-update-multiple-fix-script/comment-page-1/#comment-92872</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Fri, 08 Mar 2013 23:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=387#comment-92872</guid>
		<description><![CDATA[Hi Rob, thanks for the feedback and your explanation makes sense of course! I&#039;ve updated the code to copy it to the user&#039;s home directory instead :)]]></description>
		<content:encoded><![CDATA[<p>Hi Rob, thanks for the feedback and your explanation makes sense of course! I&#8217;ve updated the code to copy it to the user&#8217;s home directory instead :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Windows Update Multiple Fix Script by Rob</title>
		<link>http://theboywonder.co.uk/2010/01/22/windows-update-multiple-fix-script/comment-page-1/#comment-92286</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 26 Feb 2013 19:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=387#comment-92286</guid>
		<description><![CDATA[This is a great script.  The procedures are captured in the script which is awesome.  The reason that you are not able to copy the file because the script is giving you access to the file by taking ownership and then granting permission on the resource.  The problem is you do not have rights to actually create an object inside that folder, so you can either copy it to another location or take ownership of the folder and add your account rights to modify whatever, not recommended administrators have read only access here for a reason, but that would provide the ability to create a new object in the folder.

Again great article.]]></description>
		<content:encoded><![CDATA[<p>This is a great script.  The procedures are captured in the script which is awesome.  The reason that you are not able to copy the file because the script is giving you access to the file by taking ownership and then granting permission on the resource.  The problem is you do not have rights to actually create an object inside that folder, so you can either copy it to another location or take ownership of the folder and add your account rights to modify whatever, not recommended administrators have read only access here for a reason, but that would provide the ability to create a new object in the folder.</p>
<p>Again great article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing Powershell using PHP and IIS by Ratty</title>
		<link>http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/comment-page-1/#comment-90880</link>
		<dc:creator>Ratty</dc:creator>
		<pubDate>Tue, 29 Jan 2013 20:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=603#comment-90880</guid>
		<description><![CDATA[Thanks for the great advice and information.

I&#039;ll will actually try all of these and report back on my success (hopefully !)]]></description>
		<content:encoded><![CDATA[<p>Thanks for the great advice and information.</p>
<p>I&#8217;ll will actually try all of these and report back on my success (hopefully !)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing Powershell using PHP and IIS by Robin</title>
		<link>http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/comment-page-1/#comment-90855</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Tue, 29 Jan 2013 11:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=603#comment-90855</guid>
		<description><![CDATA[From what you&#039;ve said I would create a HTML form with required generic fields and possibly two drop down menus. One for a list of your &quot;templates&quot; and one for a list of domains/sites. These would provide the identifiers for your PS script so it knows which domain/site/user account to &quot;target&quot; (copy and modify). I&#039;m not sure if this is what you had in mind.

You could make the drop down menus more dynamic in one of three ways:

1) Write a separate scheduled PS script to output a text list of a) domain/sites and b) types of user accounts in template OU. Have PHP read those text files in on page load to generate the drop down. This is one way to do it: http://stackoverflow.com/questions/3767076/load-text-file-list-into-option-tags. The benefit of this approach is that PHP is very fast to list results from a text file. The downside is that you have to set up and maintain a scheduled task, and keep the text files somewhere.

2) Have PHP run a PS script immediately on page load using shell_exec. For example I have a PHP page that when opened immediately runs the following PS script (which retrieves a list of AD groups and writes them out contained inside option tags): http://pastebin.com/pWtBHx4u
I use the following HTML/PHP to run that PS script inside a HTML select tag and echo it out, which results in the generation of the menu options: http://pastebin.com/kDkMvBFr
The PHP page will be slower to load because PS is run each time the page is visited, but the results in the drop down will be truly dynamic.

3) Do the above using LDAP queries in PHP. I do not know anything about this.

Good luck,

Robin]]></description>
		<content:encoded><![CDATA[<p>From what you&#8217;ve said I would create a HTML form with required generic fields and possibly two drop down menus. One for a list of your &#8220;templates&#8221; and one for a list of domains/sites. These would provide the identifiers for your PS script so it knows which domain/site/user account to &#8220;target&#8221; (copy and modify). I&#8217;m not sure if this is what you had in mind.</p>
<p>You could make the drop down menus more dynamic in one of three ways:</p>
<p>1) Write a separate scheduled PS script to output a text list of a) domain/sites and b) types of user accounts in template OU. Have PHP read those text files in on page load to generate the drop down. This is one way to do it: <a href="http://stackoverflow.com/questions/3767076/load-text-file-list-into-option-tags" rel="nofollow">http://stackoverflow.com/questions/3767076/load-text-file-list-into-option-tags</a>. The benefit of this approach is that PHP is very fast to list results from a text file. The downside is that you have to set up and maintain a scheduled task, and keep the text files somewhere.</p>
<p>2) Have PHP run a PS script immediately on page load using shell_exec. For example I have a PHP page that when opened immediately runs the following PS script (which retrieves a list of AD groups and writes them out contained inside option tags): <a href="http://pastebin.com/pWtBHx4u" rel="nofollow">http://pastebin.com/pWtBHx4u</a><br />
I use the following HTML/PHP to run that PS script inside a HTML select tag and echo it out, which results in the generation of the menu options: <a href="http://pastebin.com/kDkMvBFr" rel="nofollow">http://pastebin.com/kDkMvBFr</a><br />
The PHP page will be slower to load because PS is run each time the page is visited, but the results in the drop down will be truly dynamic.</p>
<p>3) Do the above using LDAP queries in PHP. I do not know anything about this.</p>
<p>Good luck,</p>
<p>Robin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing Powershell using PHP and IIS by Ratty</title>
		<link>http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/comment-page-1/#comment-90612</link>
		<dc:creator>Ratty</dc:creator>
		<pubDate>Fri, 25 Jan 2013 21:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=603#comment-90612</guid>
		<description><![CDATA[We have multiple domains with multiple sites. Plan to have an OU that contains &quot;templates&quot; for the base info for each site. By &#039;template&#039; I really just mean a user account with all the basic info - address, description, home drive path etc. My current script copies this account, modifies with specific user info, copies to correct ou, creates mailbox and home dir folder on filesystem on correct server.

Tried to make the script as generic as possible so if changes are made to AD, ie new site added, or different type of user required at a site, the script wouldn&#039;t need to be changed as it collects the info on the fly when run.]]></description>
		<content:encoded><![CDATA[<p>We have multiple domains with multiple sites. Plan to have an OU that contains &#8220;templates&#8221; for the base info for each site. By &#8216;template&#8217; I really just mean a user account with all the basic info &#8211; address, description, home drive path etc. My current script copies this account, modifies with specific user info, copies to correct ou, creates mailbox and home dir folder on filesystem on correct server.</p>
<p>Tried to make the script as generic as possible so if changes are made to AD, ie new site added, or different type of user required at a site, the script wouldn&#8217;t need to be changed as it collects the info on the fly when run.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Executing Powershell using PHP and IIS by Robin</title>
		<link>http://theboywonder.co.uk/2012/07/29/executing-powershell-using-php-and-iis/comment-page-1/#comment-90576</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Fri, 25 Jan 2013 13:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://theboywonder.co.uk/?p=603#comment-90576</guid>
		<description><![CDATA[Hi Ratty,

The documented setup is pretty basic as you suspect; a static HTML form is presented to the user, requires input from them, before being passed off to the PowerShell script to do the work. We have however modified a few pages to aim to be a bit more &quot;dynamic&quot; but unfortunately I don&#039;t think either of them are appropriate as your requirement sounds slightly different. 

I think what you&#039;re looking for is a mashup of PHP and JavaScript (AJAX) to do this nicely (i.e. user selects a domain from a drop down menu, and the options(?) below that change accordingly). It&#039;d look slick and &quot;web 2.0&quot;  but I don&#039;t know how to do this off the top of my head (I&#039;m sure I could figure it out but it would take some time).

You could bypass learning JavaScript and work around this though to achieve what you&#039;re after, but you&#039;d likely require the user to submit a few times rather than dynamically updating the page without them refreshing. Before I can advise further though could you explain what you mean by &quot;relevant templates&quot;. What is a template exactly? Another HTML drop down menu? What happens after this? The more details you can give the better I can help.

Thanks,

Robin]]></description>
		<content:encoded><![CDATA[<p>Hi Ratty,</p>
<p>The documented setup is pretty basic as you suspect; a static HTML form is presented to the user, requires input from them, before being passed off to the PowerShell script to do the work. We have however modified a few pages to aim to be a bit more &#8220;dynamic&#8221; but unfortunately I don&#8217;t think either of them are appropriate as your requirement sounds slightly different. </p>
<p>I think what you&#8217;re looking for is a mashup of PHP and JavaScript (AJAX) to do this nicely (i.e. user selects a domain from a drop down menu, and the options(?) below that change accordingly). It&#8217;d look slick and &#8220;web 2.0&#8243;  but I don&#8217;t know how to do this off the top of my head (I&#8217;m sure I could figure it out but it would take some time).</p>
<p>You could bypass learning JavaScript and work around this though to achieve what you&#8217;re after, but you&#8217;d likely require the user to submit a few times rather than dynamically updating the page without them refreshing. Before I can advise further though could you explain what you mean by &#8220;relevant templates&#8221;. What is a template exactly? Another HTML drop down menu? What happens after this? The more details you can give the better I can help.</p>
<p>Thanks,</p>
<p>Robin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
