Time to try and restart blogging

It has been some time since I have blogged anything. So what have I been doing for the last few years?

I went back to college part time and did a MSc in Networking and Security in Cork Institute of Technology. This course consumed pretty much all  my spare time which was far more than I thought it would.

Now that the course behind me I am hoping to take a closer look at the Technical Preview 4 of Windows Server 2016 and System Center 2016.

Posted in Uncategorized | Leave a comment

Use PowerShell to configure Cloud and Cost Center for all VM’s on a particular host

Earlier this morning I had to configure the cloud that some VM’s belonged too and I was having some problems getting it to work. I found the answer with a bit of searching the web. I had to use the Get-SCCloud cmdlet first.

$Cloud = get-sccloud -Name “CloudName”
$VMs = get-scvirtualmachine -VMHost “HostName”
$VMs | foreach Name | set-scvirtualmachine -CostCenter Cost1 -Cloud $Cloud

Posted in PowerShell | Leave a comment

Automatic Virtual Machine Activation

One of the many useful features that comes in Windows Server 2012 R2 is Automatic Virtual Machine Activation. This feature will allow Windows Server 2012 R2 virtual machines to be activated once the host which has to be running Windows Server 2012 R2 Datacenter edition has been activated using MAK, OEM or KMS activation mechanism.

There is a detailed blog on the Windows Server Core Team blog and I am not going to repeat the information in that blog. If you want to learn more follow the link.

http://blogs.technet.com/b/askcore/archive/2013/11/13/activating-virtual-machines-via-automatic-virtual-machine-activation-in-windows-server-2012-r2.aspx

To activate the VM in an elevated command prompt use the command

slmgr /ipk <AVMA Client Key>

The AVMA keys and the Windows Server editions that they apply to

Edition AVMA Key
Datacenter Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW
Standard DBGBW-NPF86-BJVTX-K3WKJ-MTB6V
Essentials K2XGM-NMBT3-2R6Q8-WF2FK-P36R2
Posted in Windows Server 2012 R2 | Leave a comment

Minimal Server Interface for Windows Server 2012

I have been looking at the Minimal Server Interface in Windows Server 2012, I currently think it is the obvious interface for servers that you do mostly remote management of and pretty much never log on to.

Microsoft recommend that you use the Server Core Interface for Hyper-V and Domain Controllers. I had evaluated the Server Core Interface in Windows Server 2008 and Windows Server 2008 R2. The improvements in Window Server 2012 certainly make it a real option this time but again I have to take time off and not all the team I work on are Windows Server experts. Of course this is where Minimal Server Interface comes in, they can log on and run Server Manager, PowerShell and the MMC snap-in.

An article on System Center Central by Pete Zerger on the Minimal Server Interface and another article by Pete on Control Panel Applet and Command Line launch options.

Posted in Windows Operating Systems, Windows Server 2012 | 1 Comment

Dell Management Pack for SCOM

I was installing the Dell Management pack v5.0.1 on SCOM 2012, and I was looking for some information on installing the management pack. I found a four part series on installing the management by Marnix Wolf who is a MVP in System Center Cloud and Datacenter Management.

Part 1

Part 2

Part 3

Part 4

One of the issues when installing the management pack is that it looks for Domain Admin privileges. A recent post on the Dell Techcenter explains that it is not necessary to use Domain Admin privileges to run Dell Connections License Manager, the article is here.

Here is a link to the Dell Server Management Pack wiki for some further reading.

Posted in System Center | Leave a comment

Infrastructure As A Service Guides

Here are the links to Infrastructure As A Service guides published by Microsoft. The deployment guide would be quiet useful if you are planning  to build out a System Center lab, I am sure some of this could be leveraged for a System Center 2012 R2 test lab.

Infrastructure-as-a-Service Technical Guidance for Hosting Service Providers

Infrastructure-as-a-Service Product Line Architecture Fabric Management Architecture Guide

Infrastructure-as-a-Service Product Line Architecture Fabric Architecture Guide

Infrastructure-as-a-Service Product Line Architecture Deployment Guide

Posted in Cloud, System Center, Virtualization | Leave a comment

Create a custom book of TechNet Library articles

I came across this article on the System Center Team blog which gives information on how to build, save and print your own custom book of TechNet Library articles.

http://blogs.technet.com/b/systemcenter/archive/2013/06/25/build-save-and-print-your-own-custom-book-of-technet-library-articles.aspx

Posted in Windows | Leave a comment

Microsoft Cloud OS Previews

There are now previews available for the following products which will RTM later this year

  • Windows Server 2012 R2
  • System Center 2012 R2
  • SQL Server 2014 CTP 1
  • Windows Azure Pack

http://technet.microsoft.com/en-ie/evalcenter/dn205292

Windows 8.1 should be released later this week (26th June) at the Build conference.

Posted in Cloud, Virtualization | Leave a comment

Free EBooks

Here is a link to a huge collection of Free Microsoft eBooks, including: Office, Office 365, SharePoint, SQL Server, System Center, Visual Studio, Web Development, Windows, Windows Azure, and Windows Server.

http://blogs.msdn.com/b/mssmallbiz/archive/2013/06/18/huge-collection-of-free-microsoft-ebooks-for-you-including-office-office-365-sharepoint-sql-server-system-center-visual-studio-web-development-windows-windows-azure-and-windows-server.aspx

Posted in Windows | Leave a comment

Active Directory Account Lockout

One of my colleagues has recently been on to me a few times about his account been locked out. I decided to do some research into the account lockout. I decided to put together a PowerShell script to check the Security event log of the domain controllers in the domain. I decided that rather than checking the whole Security event log I would only check for the previous 6 hours.

Research :

The first thing while started the research I came across was this link, this about using the Search-ADAccount cmdlet to find locked out accounts.

When an account is locked out it generates an event 4740 in the Security event log, I found in the comments of the article the lines of  PowerShell that I based the script off.

A PowerShell tip of the week on how to use the Get-Date cmdlet to manipulate times. The information in the article helped me figure out how to work out

Script :

$StartTime = (get-date).AddHours(-6)

$logName = “Security”

$dcList = “dc1″,”dc2″,”dc3”

$eventID = “4740”

foreach ($dcname in $dcList)
{

$Start_Time = get-date

write-host ” “
write-host “Starting to check logs on $dcname at $Start_Time”
write-host ” “

Get-EventLog -LogName $logName -ComputerName $dcName -after $StartTime | where {$_.eventID -eq $eventID} | format-list -Property timegenerated, replacementstrings, message

$Finish_Time = get-date

write-host ” “
write-host “Finished checking logs on $dcname at $Finish_Time”
write-host ” “
}

 

Issues :

So when the script runs it is pretty slow, after doing some research it appears that when using –After in  the Get-EventLog cmdlet the whole event log is read in before any of the filtering is done. So if the event log is large or over a slow link it is really going to be slow.

One suggestion for improving the performance is to use the –Newest option.

Another way to improve performance might be to use PowerShell Remoting but again if you have to read in the whole event log you are effected by the size of your event logs.

Posted in Windows | Leave a comment