<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" >
   <channel>
    <atom:link href="http://a2alpha.webnode.com/rss/powershell.xml" rel="self" type="application/rss+xml" />
      <title><![CDATA[PowerShell - ]]></title>
      <link>http://a2alpha.webnode.com</link>
      <language>en</language>
      <pubDate>Thu, 06 Jan 2011 10:00:00 +0200</pubDate>
      <lastBuildDate>Thu, 06 Jan 2011 10:00:00 +0200</lastBuildDate>
      <category><![CDATA[PowerShell]]></category>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs>
      <generator>Rubicus v2.0</generator>
      <managingEditor><![CDATA[dan@a2-alpha.co.uk (dan@a2-alpha.co.uk)]]></managingEditor>
      <webMaster><![CDATA[dan@a2-alpha.co.uk (dan@a2-alpha.co.uk)]]></webMaster>
      <item>
         <title><![CDATA[Initial ESXi Setup Script]]></title>
         <link>http://a2alpha.webnode.com/news/initial-esxi-setup-script/</link>
         <description><![CDATA[Automates the initial setup of an ESXi host after first installation and IP addressing.
&#160;
First connects to ESXi host
&#160;
NETWORKING:
Adds second vmnic to vSwitch0
Creates a second vSwitch (vSwitch1) with port group LAN and assigns 4 vmnics to it
Moves all VirtualMachines if exist to LAN portgroup and removes default VM Network portgroup
Renames Management Network portgroup to MGMT
Creates third vSwitch (vSwitch2) with an ISOLATED portgroup and no vmnics assigned
&#160;
TIME...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Thu, 06 Jan 2011 10:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/initial-esxi-setup-script/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[Script to list local and removable disk usage]]></title>
         <link>http://a2alpha.webnode.com/news/script-to-list-local-and-removable-disk-usage/</link>
         <description><![CDATA[This script uses the wmi object of win32_logicaldisk and outputs to a table that displays free space on both local and removable disks and percent free. The output is shown next and script below:
&#160;

&#160;
SCRIPT:
&#160;
$diskarray = gwmi win32_logicaldisk | where {$_.Size -gt 0}
$diskobject = @()
foreach($disk in $diskarray)
{
&#160;&#160;&#160; If($disk.DriveType -eq 2)
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Type = "Removable"
&#160;&#160;&#160;...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Sat, 09 Oct 2010 23:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/script-to-list-local-and-removable-disk-usage/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[Script to identify Inactive Active Directory User Accounts for an AD 2003 domain]]></title>
         <link>http://a2alpha.webnode.com/news/script-to-identify-inactive-active-directory-user-accounts-for-an-ad-2003-domain/</link>
         <description><![CDATA[Get all Active Directory users in the domain, pick out firstly User accounts which have never logged in and second get the last logged in time for each account which have logged in and report back any accounts which haven't logged in within the last 31 days.
Couldn't find PowerShell cmdlets for Active Directory 2003 and didn't want to install anything more than PowerShell on the servers, so I used a combination of standard tools 'dsget', 'dsquery' and also a VB script...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Tue, 06 Jul 2010 21:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/script-to-identify-inactive-active-directory-user-accounts-for-an-ad-2003-domain/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[NetApp change Snapmirror replication throttling script]]></title>
         <link>http://a2alpha.webnode.com/news/netapp-change-snapmirror-replication-throttling-script/</link>
         <description><![CDATA[Wrote this script to get round an issue at a customers site with the Snapmirror replication taking too much of the bandwidth across a LES link. Because I wanted to enable and disable as well as report on the status of replication throttling I put all variants into the one script.
There are 4 main switches to the script: ON, OFF, STATUS, HELP and STATUS EMAIL. The script should be preconfigured with incoming and outgoing throttle speeds in KB/s and an email recipient and SMTP server to allow for...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Mon, 21 Jun 2010 00:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/netapp-change-snapmirror-replication-throttling-script/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[NetApp filer Aggregate space used by Volumes report]]></title>
         <link>http://a2alpha.webnode.com/news/netapp-filer-aggregate-space-used-by-volumes-report/</link>
         <description><![CDATA[To avoid over-committing storage it is essential to know how much space you have assigned to volumes on your aggregates. If you just run an aggregate list, the amount of space shown as used and free doesn't equal the actual amount used.
The script below creates a table showing Filer, the aggregate name, the total aggregate size and then the total of all the volumes on the aggregate, then a calculation of free space and percent free. An example is shown below:
Script is&#160;shown&#160;after...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Sat, 19 Jun 2010 12:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/netapp-filer-aggregate-space-used-by-volumes-report/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[NetApp Snapmirror Status - Email Report]]></title>
         <link>http://a2alpha.webnode.com/news/netapp-snapmirror-status-email-report/</link>
         <description><![CDATA[PowerShell Script to Email a report of the status of Snapmirror Replication on your NetApp filers.
The Script uses the PoSh OnTap Module downloadable from&#160;http://poshontap.codeplex.com/ which gives masses of NetApp PowerShell commands.
&#160;
Download script HERE&#160;is also below the screenshot.
&#160;

&#160;
# Dans NetApp Snapmirror Status Emailer
# 20100611
# Version 1.2
&#160;
# Import PoSh Ontap Module
import-module poshontap
&#160;
# Configure Variables
$filers = @()
$filers +=...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Tue, 08 Jun 2010 22:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/netapp-snapmirror-status-email-report/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[Datastore Information script showing ESX and datastore name paths and multipathing settings]]></title>
         <link>http://a2alpha.webnode.com/news/datastore-information-script-showing-esx-and-datastore-name-paths-and-multipathing-settings/</link>
         <description><![CDATA[A great script by LucD on the VMware community forums:&#160;http://communities.vmware.com/thread/269695
Download HERE
&#160;

- - - - - - - - - - - - - - - - - - - -
# Script to Show Datastore Info (Multipathing etc.)
# LucD
$report = @()
Get-VMHost&#160; | Get-View | %{
&#160;$esx = $_
&#160;$esx.Datastore | %{Get-View $_} | where {$_.SUmmary.Type -eq "VMFS"} | %{
&#160;&#160;&#160;$ds = $_
&#160;&#160;&#160;$ds.Info.Vmfs.Extent | %{
&#160;&#160;&#160;&#160;$ext =...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Tue, 25 May 2010 12:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/datastore-information-script-showing-esx-and-datastore-name-paths-and-multipathing-settings/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[Display memory allocated and memory available across environment]]></title>
         <link>http://a2alpha.webnode.com/news/display-memory-allocated-and-memory-available-across-environment/</link>
         <description><![CDATA[Script displays total memory available in each cluster, total memory allocated to VMs in each cluster and a percentage allocated. If over 100% message stating over-commitment is present. Then a table for each host in the cluster and same items as above is displayed.
&#160;
The script can be run from a standard PowerShell window, as it checks for the VMware snapin and loads if necessary. If no connection exists to vCenter server it will prompt for name and credentials.
&#160;

&#160;
The script...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Thu, 20 May 2010 12:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/display-memory-allocated-and-memory-available-across-environment/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[Display number of vCPUs assigned and vCPU to Core ratio]]></title>
         <link>http://a2alpha.webnode.com/news/display-number-of-vcpus-assigned-and-vcpu-to-core-ratio/</link>
         <description><![CDATA[Script displays Overall number of Cores available over all hosts, then the number of Virtual CPUs assigned and then the ratio.
&#160;
The script can be run from a standard PowerShell window, as it checks for the VMware snapin and loads if necessary. If no connection exists to vCenter server it will prompt for connection details.
&#160;
Following that a table showing the individual assignments for individual hosts.
&#160;
&#160;
Script can be downloaded HERE and is shown below:
&#160;
# List CPU...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Mon, 17 May 2010 12:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/display-number-of-vcpus-assigned-and-vcpu-to-core-ratio/</guid>
         <category>PowerShell</category>
      </item>
      <item>
         <title><![CDATA[List Emails through your Exchange Server between two dates]]></title>
         <link>http://a2alpha.webnode.com/news/list-emails-through-your-exchange-server-between-two-dates/</link>
         <description><![CDATA[List Emails through your Exchange Server between two dates
&#160;
I was troubleshooting an Email issue on an Exchange server and had sent emails with the subject 'Test'. I wanted to see all messages that matched this subject line in the last two days but thought it would be useful to script it so I could change the amount of days to check back from but also enter a different subject line to check.
&#160;
The script can be downloaded HERE and is attached below:
&#160;
&#160;# Gets all Emails...<br />
http://www.a2-alpha.co.uk]]></description>
         <pubDate>Thu, 15 Apr 2010 12:00:00 +0200</pubDate>
         <guid isPermaLink="true">http://a2alpha.webnode.com/news/list-emails-through-your-exchange-server-between-two-dates/</guid>
         <category>PowerShell</category>
      </item>
   </channel>
</rss>
