Carpe Diem: Flaphead.com 

Twitter Gplus LinkedIn RSS
 
 
Home » Posts tagged "#Powershell"

Posts Tagged ‘#Powershell’:


#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)…

Get-LyncServer v1.3

#Powershell, #Lync Wow feedback .. thanks mike for the observation on the vertical text.  Have updated it to do it a different way, so let me know what you think. You can download it here or cut and paste below <#   .NOTES   NAME: Get-LyncServer.ps1   AUTHOR: Paul Flaherty   Last Edit: "v1.3 [28

(More)…

comments  Comments Off

Get-LyncServer v1.2

#Powershell, #Lync Okay so made some updates to include Lync/OCS version, Lync Type, OS and Memory.  Also change the services from RTC* to *RTC* Downloadable from here or cut and paste below .. enjoy <# .NOTES NAME: Get-LyncServer.ps1 AUTHOR: Paul Flaherty Last Edit: "v1.2 [21 February 2012] .LINK blogs.flaphead.com .SYNOPSIS This Script gets connectes to

(More)…

comments  Comments Off

Get-LyncServer v1

#Powershell, #Lync So I just love Exchange 2010 and PowerShell, and a cmdlet that rocks is Get-ExchangeServer which is a cmdlet that get the attributes of some or all the servers in the Exchange organization. Lync however doesn’t have a similar cmdlet and that annoyed the hell out of me.  All I want is a

(More)…

comments  Comments Off

Dump-RBAC.ps1

#Exchange #Exchange2010 #Powershell So I have been meaning to post this for a while, so here it is.  I have a need to dump out the RBAC permissions for Exchange 2010 so I could see who had what.  So here is is.  The output is a HTML file.  You will need to create a folder

(More)…

Get-RegistryValue

Published on January 3rd, 2012 by in Powershell

#Powershell So I have been messing with Powershell for a while now, Jeff asked me to look at script he had that read remote registry values.  He was using PSRemoteRegistry but got some errors. So I knocked this function up for him function Get-RegistryValue([Switch]$Recurse=$false, [String]$ComputerName=(hostname), [String]$Hive="HKLM", [String]$key) {   $OutArray = @()   Switch($Hive){    

(More)…

Tags:
comments  Comments Off

Enumerate-Groups.ps1

Published on December 19th, 2011 by in Powershell

#Powershell #Exchange2010 I just wanted to share this cmdlet I created today.  I had a need to workout from Nested Groups including DDL’s the number of users a DL would reach, so I knocked this baby up. Its v1, so any feedback is very welcome.  Usage is basically Enumerate-Groups.ps1 –GroupName “Group” or Get-Group “Group” |

(More)…

Who locked me out?

Published on December 10th, 2011 by in Powershell

#powershell So following on from my last post, once and AD account is locked out, who or what the hell done it! Typically you start with the account lockout tool (http://www.microsoft.com/download/en/details.aspx?id=15201) which will tell you when and what DC locked the account. Next thing to do is to check the Security Event log out on

(More)…

Tags:
comments  Comments Off

AD Account Lockout

Published on December 10th, 2011 by in Powershell

#powershell So whose great idea was it to force a password change on service accounts every 60 days? Bunch of donkeys!?! Anyway, so if you AD account gets locked out, check this out.  On tried with Windows 2008R2 import-module activedirectory Unlock-ADAccount <account> –Server <DC> NB the DC needs to have the “Active Directory Web Service”

(More)…

Tags:
comments  Comments Off
 
© Origin Solutions IT Limited