<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" version="2.0">
<channel>
	<title>9to5IT Comments</title>
	<atom:link href="https://9to5it.com/comments/feed/" rel="self" type="application/rss+xml"/>
	<link>https://9to5it.com</link>
	<description>Here are the latest blog posts from 9to5IT. For more information or if you have any questions or comments visit 9to5IT.com and either send me an email or comment on any of the articles. I aim to help as much as I can. Thanks Luca</description>
	<lastBuildDate>Tue, 19 Mar 2024 17:17:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>
		Comment on PowerShell Logging v2 – Easily create log files by Paul Lee		</title>
		<link>https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-95084</link>

		<dc:creator><![CDATA[Paul Lee]]></dc:creator>
		<pubDate>Tue, 19 Mar 2024 17:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2426#comment-95084</guid>

					<description><![CDATA[Plus 1 for appending to an existing logfile. My script runs on a schedule and would like to maintain historical logs for each run. Do NOT want to have many separate logfiles.
]]></description>
			<content:encoded><![CDATA[<p>Plus 1 for appending to an existing logfile. My script runs on a schedule and would like to maintain historical logs for each run. Do NOT want to have many separate logfiles.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on PowerShell Logging v2 – Easily create log files by Zerge		</title>
		<link>https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-93762</link>

		<dc:creator><![CDATA[Zerge]]></dc:creator>
		<pubDate>Thu, 17 Aug 2023 00:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2426#comment-93762</guid>

					<description><![CDATA[Not Working with PowerShell 7

Start-Log -LogPath &quot;C:\Windows\Temp\Test_Script.log&quot; -LogName &quot;Test_Script.log&quot; -ScriptVersion &quot;2.0&quot;

Error&#062;
New-Item: A positional parameter cannot be found that accepts argument &#039;?ItemType&#039;.
]]></description>
			<content:encoded><![CDATA[<p>Not Working with PowerShell 7</p>
<p>Start-Log -LogPath &#8220;C:\Windows\Temp\Test_Script.log&#8221; -LogName &#8220;Test_Script.log&#8221; -ScriptVersion &#8220;2.0&#8221;</p>
<p>Error&gt;<br />
New-Item: A positional parameter cannot be found that accepts argument &#8216;?ItemType&#8217;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on PowerShell Logging v2 – Easily create log files by Kevin		</title>
		<link>https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-92797</link>

		<dc:creator><![CDATA[Kevin]]></dc:creator>
		<pubDate>Mon, 16 Jan 2023 21:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2426#comment-92797</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-69408&quot;&gt;Michiel&lt;/a&gt;.

Have you tried &lt;code&gt;$($Array[0].Name)&lt;/code&gt;?
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-69408">Michiel</a>.</p>
<p>Have you tried <code>$($Array[0].Name)</code>?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Removing ghost network adapters by VT		</title>
		<link>https://9to5it.com/removing-ghost-network-adapters/#comment-92418</link>

		<dc:creator><![CDATA[VT]]></dc:creator>
		<pubDate>Wed, 23 Nov 2022 04:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=424#comment-92418</guid>

					<description><![CDATA[WOW, best trick ever! Thank you for having this solution available, i refer to it from time to time!
]]></description>
			<content:encoded><![CDATA[<p>WOW, best trick ever! Thank you for having this solution available, i refer to it from time to time!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on PowerShell Logging v2 – Easily create log files by takethissitedown		</title>
		<link>https://9to5it.com/powershell-logging-v2-easily-create-log-files/#comment-92389</link>

		<dc:creator><![CDATA[takethissitedown]]></dc:creator>
		<pubDate>Fri, 18 Nov 2022 13:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2426#comment-92389</guid>

					<description><![CDATA[Who adds a timestamp to the end of the line?
I needed something quick and I found this hot pile of ....
]]></description>
			<content:encoded><![CDATA[<p>Who adds a timestamp to the end of the line?<br />
I needed something quick and I found this hot pile of &#8230;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Fix – Invalid Configuration for device ‘0’ by jg3		</title>
		<link>https://9to5it.com/fix-invalid-configuration-for-device-0/#comment-91918</link>

		<dc:creator><![CDATA[jg3]]></dc:creator>
		<pubDate>Thu, 04 Aug 2022 13:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=1784#comment-91918</guid>

					<description><![CDATA[Another quick-fix from https://kb.vmware.com/s/article/77134:
&quot;Select a different network portgroup, reconnect NIC (on that different network portgroup), then change back to original network portgroup.&quot;
]]></description>
			<content:encoded><![CDATA[<p>Another quick-fix from <a href="https://kb.vmware.com/s/article/77134" rel="nofollow ugc">https://kb.vmware.com/s/article/77134</a>:<br />
&#8220;Select a different network portgroup, reconnect NIC (on that different network portgroup), then change back to original network portgroup.&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Citrix PVS 7.6 Install – Part 13: Testing Published Applications by Palani		</title>
		<link>https://9to5it.com/citrix-pvs-7-6-install-part-13-testing-published-applications/#comment-91841</link>

		<dc:creator><![CDATA[Palani]]></dc:creator>
		<pubDate>Mon, 18 Jul 2022 06:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2078#comment-91841</guid>

					<description><![CDATA[Great Article and easy follow..nice effort. thanks.
]]></description>
			<content:encoded><![CDATA[<p>Great Article and easy follow..nice effort. thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on PowerShell: Find AD User by Full Name by Luca Sturlese		</title>
		<link>https://9to5it.com/powershell-find-ad-user-full-name/#comment-87564</link>

		<dc:creator><![CDATA[Luca Sturlese]]></dc:creator>
		<pubDate>Sat, 28 Aug 2021 01:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=1316#comment-87564</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://9to5it.com/powershell-find-ad-user-full-name/#comment-87541&quot;&gt;Joe Gwiazdowski&lt;/a&gt;.

&lt;p&gt;Hi Joe,&lt;/p&gt;

&lt;p&gt;This is a result of the &lt;code&gt;export-csv&lt;/code&gt; function. For some reason it does that, it puts in in a different order. It really annoyed me too. I usually just open in in Excel and then re-order from there if need to.&lt;/p&gt;

&lt;p&gt;Luca&lt;/p&gt;
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://9to5it.com/powershell-find-ad-user-full-name/#comment-87541">Joe Gwiazdowski</a>.</p>
<p>Hi Joe,</p>
<p>This is a result of the <code>export-csv</code> function. For some reason it does that, it puts in in a different order. It really annoyed me too. I usually just open in in Excel and then re-order from there if need to.</p>
<p>Luca</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on PowerShell: Find AD User by Full Name by Joe Gwiazdowski		</title>
		<link>https://9to5it.com/powershell-find-ad-user-full-name/#comment-87541</link>

		<dc:creator><![CDATA[Joe Gwiazdowski]]></dc:creator>
		<pubDate>Wed, 25 Aug 2021 21:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=1316#comment-87541</guid>

					<description><![CDATA[Does anyone else run the script then notice that the output does not show up in the order it is listed in the script?

I modified the various AD attributes I want to grab so I get the info I need, but regardless of the order I put the commands in the script, they always come out the same way (whether displayed on screen or exported to a file).

This is how I have the script configured:
Import-Module ActiveDirectory

$aResults = @()
$List = Get-Content &quot;c:\temp\names.txt&quot;

ForEach($Item in $List){
      $User = Get-ADUser -Filter{displayName -like $Item} -Properties employeenumber, sn, GivenName, samaccountname, mail

$hItemDetails = New-Object -TypeName psobject -Property @{
     EmployeeNumber = $User.employeenumber
     LastName = $User.sn
     FirstName = $User.givenname
     UserName = $User.SamAccountName
     Email = $User.mail}

Add data to array

&lt;code&gt;  $aResults += $hItemDetails
&lt;/code&gt;

}

$aResults &#124; Export-csv -Path c:\Temp\EmpUpdate.csv -notypeinformation

You can see in the script that I have the data ordered as employeenumber, lastname, firstname, samaccountname, email.

However, the output always comes out samaccountname, email, employeenumber, firstname, lastname.
]]></description>
			<content:encoded><![CDATA[<p>Does anyone else run the script then notice that the output does not show up in the order it is listed in the script?</p>
<p>I modified the various AD attributes I want to grab so I get the info I need, but regardless of the order I put the commands in the script, they always come out the same way (whether displayed on screen or exported to a file).</p>
<p>This is how I have the script configured:<br />
Import-Module ActiveDirectory</p>
<p>$aResults = @()<br />
$List = Get-Content &#8220;c:\temp\names.txt&#8221;</p>
<p>ForEach($Item in $List){<br />
      $User = Get-ADUser -Filter{displayName -like $Item} -Properties employeenumber, sn, GivenName, samaccountname, mail</p>
<p>$hItemDetails = New-Object -TypeName psobject -Property @{<br />
     EmployeeNumber = $User.employeenumber<br />
     LastName = $User.sn<br />
     FirstName = $User.givenname<br />
     UserName = $User.SamAccountName<br />
     Email = $User.mail}</p>
<p>Add data to array</p>
<p><code>  $aResults += $hItemDetails<br />
</code></p>
<p>}</p>
<p>$aResults | Export-csv -Path c:\Temp\EmpUpdate.csv -notypeinformation</p>
<p>You can see in the script that I have the data ordered as employeenumber, lastname, firstname, samaccountname, email.</p>
<p>However, the output always comes out samaccountname, email, employeenumber, firstname, lastname.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Using PSObject to store data in PowerShell by Russ Niebolt		</title>
		<link>https://9to5it.com/using-psobject-store-data-powershell/#comment-86114</link>

		<dc:creator><![CDATA[Russ Niebolt]]></dc:creator>
		<pubDate>Thu, 13 May 2021 20:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://energetic-vacation.flywheelsites.com/?p=2583#comment-86114</guid>

					<description><![CDATA[Luca, this was excellent-O!  I have of late trying to do an EXPORT-CSV on a file that wasn&#039;t an object. I saw other articles saying my fields needed to be properties in a object, etc.  Very confusing, I was just getting the length property of each record in the .csv files.  All said, this cleared everything up, excellent code example at the end.  Thanks again!
]]></description>
			<content:encoded><![CDATA[<p>Luca, this was excellent-O!  I have of late trying to do an EXPORT-CSV on a file that wasn&#8217;t an object. I saw other articles saying my fields needed to be properties in a object, etc.  Very confusing, I was just getting the length property of each record in the .csv files.  All said, this cleared everything up, excellent code example at the end.  Thanks again!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>