General

Highly important information for the world to know on my life...
Powershell: Get-Framework-Versions.
This function will use the test-key function posted earlier. It will check which .NET frameworks are installed (currently only checking for .NET 4.0) but can be easily adapted and/or expanded. function Get-Framework-Versions(){ $installedFrameworks = @() if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Client" "Install") { $installedFrameworks += "4.0c" } if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full" "Install") { $installedFrameworks += "4.0" } return $installedFrameworks} ......

Posted On Wednesday, December 5, 2012 8:17 AM | Comments (0)

Powershell Test Reg Key function
Disclaimer: Code is not mine but forgot where I got it. Ping me if this is yours and you will receive full kudos to it :)

function Test-Key([string]$path, [string]$key)
{
    if(!(Test-Path $path)) { return $false }
    if ((Get-ItemProperty $path).$key -eq $null) { return $false }
    return $true
}

Posted On Wednesday, December 5, 2012 8:14 AM | Comments (0)

Powershell Run-As Script
Disclaimer: This script is not of my own making. I found it on a share somewhere and it is so handy I started using in a bunch of scripts. To the writer: If you're out there, somewhere, when you see this, thank you! Check if script is running as Adminstrator and if not use RunAs # Use Check Switch to check if admin param([Switch]$Check) $IsAdmin = ([Security.Principal.Window... [Security.Principal.Windows... ).IsInRole([Security.Princi... "Administrator") ......

Posted On Wednesday, December 5, 2012 7:59 AM | Comments (0)

Veeam giveaway
Hey everybody! As you might have noticed an extra banned has showed up on this site from veeam. Since they have decided to sponsor this blog (thank you very much all! Would not have happened without all of you!) I’ll periodically share some news from them with all of you. They are doing a big give away if you register on there site, one of them being a surface tablet, which you all know is brilliant! Veeam is now featuring monthly prize drawings with some very exciting prizes. Entering is easy—just ......

Posted On Friday, October 19, 2012 4:02 PM | Comments (0)

Enabling Circular logging in Exchange 2013

Enabling circular logging in Exchange 2013

Posted On Friday, August 9, 2013 5:27 PM | Comments (1)

Office 365 support issues?
This article was written by Tony Redmond and outlines some of the problems he encountered with his office 365 upgrade to wave 15 (exchange 2013). Unfortunately he got a bad support experience on top of that! I know that at Microsoft there are a lot of outsourced positions for support. I know, I was in one of them! Whilst one of the comments on this blogpost mentions “guys from the fast food chain” it seems a little harsh… I have to admit that I am not aware of how the O365 department works but in ......

Posted On Friday, May 3, 2013 8:57 AM | Comments (0)

Creating an automated OS deployment
To create a deployment environment we are going to use ADDS, DHCP, WDS, WSUS, MDT2012 and good old fashioned hard work! Note that a number of prerequisites need to be met to install certain services. I used 2 servers, but it is possible to do it with only one server, do note that you will need to research on how to set the WDS entries in DHCP as this will not be done automatically… There are a number of binaries you will need to download: MDT 2012: http://www.microsoft.com/en... ......

Posted On Friday, December 14, 2012 8:39 AM | Comments (0)

Installing and configuring Windows Server Update Services (WSUS)
Deploying images is one thing but actually having to run the update gauntlet on every deploy is terrifying to me. It often results in no updates being installed (cause I just could not be bothered) and this can cause discrepancies between test systems or even you missing out on cool new features! So let's install the WSUS component to handle that. Later on we'll see how to configure WSUS and set an automatic "Approve All" rule. What we will be doing as, albeit not in this part, is leveraging the ......

Posted On Friday, December 14, 2012 8:36 AM | Comments (6)

Powershell: If statements dependent on installed exchange role
Something I need to keep for usage in the future:$hostname=hostnameIf (get-exchangeserver $hostname | where {$_.isClientAccessServer -eq $true}) { } else { } If (get-exchangeserver $hostname | where {$_.isHubTransportServer -eq $true}) { } else { }If (get-exchangeserver $hostname | where {$_.isMailboxServer -eq $true}) { } else { }If (get-exchangeserver $hostname | where {$_.isUnifiedMessagingServer -eq $true}) { } else { }If (get-exchangeserver $hostname | where {$_.isEdgeServer -eq $true}) { } ......

Posted On Wednesday, December 5, 2012 12:59 PM | Comments (0)

Powershell: Connect to Exchange server powershell
Connecting to Exchange powershell is, for normal operations, as simple as opening the shortcut on you start menu :).However, if you have the need to have some scripts perform actions against your Exchange you can use the below code to make that happen!$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://YourCASServerFQDN/Po... -Authentication Kerberos Import-PSSession $s Add-PSSnapin Microsoft.Exchange.Manageme... . $env:ExchangeInstallPath\bi... ......

Posted On Wednesday, December 5, 2012 12:35 PM | Comments (0)

Full General Archive