Carpe Diem: Flaphead.com 

Twitter Gplus LinkedIn RSS
 
 
Home » Archive for category "Powershell"

Archive for the ‘Powershell’ Category:


PortQry ALL Domain Controllers using #Powershell

Published on March 13th, 2013 by in Powershell

So I don’t trust my network guys (sorry) as they say all ports are open but think they is not telling me the trust. So knocked this up to test. You need to download PortQry from here: http://www.microsoft.com/en-us/download/details.aspx?id=17148 Change $PortQryExe to the location of the .exe $matrix = @() $PortQryExe = “Y:\Tools\PortQryV2\PortQry.exe” $Ports2Scan = “udp-389″,

(More)…

comments  Comments Off

Get a List of InSite DCs from Eventlog

#MsExchange #Powershell So I have been having a bit of fun (well not really). The company I am working for has multiple AD domains in a single forest and the users are spread over the domains. To start with, with almost every Exchange Management Shell cmdlet I run I need to also run the following:

(More)…

comments  Comments Off

PowerShell ASP: Get-TransportQueue.ps1x [Update]

Published on February 12th, 2013 by in Powershell

#Powershell #Exchange2010 #PowerShellInside Forgot to upload the file, as copy and paste seems to something strange.. So here it is Get-TransportQueue.ps1x

comments  Comments Off

NetApp sdcli disk list to CSV with Powershell

#NetApp #sdcli #Powershell So I have been breaking playing around with Jetstress, NetApp filers and Cisco UCS.  Not have much fun or luck, as I just cant get the damn thing to pass even a simple test.  But that is another story! I have been looking at sdcli and getting some powershell automation going, and

(More)…

comments  Comments Off

PowerShell ASP: Get-TransportQueue.ps1x

comments  Comments Off

Powershell: Import CSV files to Excel

#Powershell So Ari asked if I could knock up a script that would import csv files in to Excel .. and here it is.  It uses the Excel object model, so excel and powershell need to be on the box you this from Basically copy the csv files you want to your “rootfolder” of choice

(More)…

comments  Comments Off

#PowerShell Flip-Array Function

Published on November 23rd, 2012 by in Powershell

# UPDATE # The more I played around, it noticed an undocumented feature where the Property value from Get-Member could be a NoteProperty .. so updated the function to reflect this. So I use Windows Powershell every day, and I have quite a few scripts that use ConvertTo-Html Now this is cool, except when the

(More)…

comments  Comments Off

Exchange 2010 Scripting Agent

#MSExchange So SteveM showed me this a while back, and yeah I know I am at the back of the queue, but boy is this a pain in the butt! So I want to set some standard stuff when you run New-MailboxDatabase.  Standard properties are kinda simple, but i discovered that AD Replication, even in

(More)…

#Powershell Service Uptime

So i wanted to see how long a couple of BlackBerry servers had been up, but I wanted to know how long the services has been running.  So i knocked this up.  Its dead simple to change for other services! $Servers = "BES01", "BES02" $Matrix = @() ForEach($Server in $Servers){   Write-Host $Server -Foregroundcolor Green

(More)…

comments  Comments Off

Get-DatabaseDistribution.ps1

#msexchange #powershell How cr@p am I? I totally forgot about this baby.  So this is rough and ready not had a chance to sort the help out at the beginning, but I’m sure you will get the idea.  Basically run this with one of the switches ByMailboxSize or ByMailboxCount and it will look at your

(More)…

 
© Origin Solutions IT Limited