Bhargav's IT Playground

How to find .NET Framework version using PowerShell

Posted by in PowerShell

Often times when I am getting ready to install Exchange 2016 or Exchange 2013, I look at pre-requisites and wonder if correct version of .NET Framework is already installed on the server or not. It certainly saves me time if it is already installed and depending on status of latest OS patch installation, it is highly likely that the required framework is already installed. I think I have written a script in past but never published it. And can’t find anymore. So I just searched and found a script from…read more

Print Friendly, PDF & Email
0

Ignoring SSL Trust in PowerShell using System.Net.WebClient

Posted by in PowerShell

This article was originally posted on my PFE blog here: http://blogs.technet.com/b/bshukla/archive/2012/08/22/3324650.aspx. I noticed a few inaccuracies with the article and since I am not a PFE anymore, I can’t edit original article but posting updated article here for everyone to benefit from. The Problem We all at one point or another have come across a coding issue where we are trying to connect to a website using a script and the website is secure with either self-signed or untrusted SSL certificate. This poses a challenge. A challenge to tell code…read more

Print Friendly, PDF & Email
4

Book Review – PowerShell 3.0 Advanced Administration Handbook

Posted by in Book Review, PowerShell, Technology

Automation of mundane daily chores of any IT establishment is essential in today’s world. I would rather spend a day to automate a task that takes only 5 minutes to complete because when automated, it now can be completed in fraction of that time, repeatedly, all while removing possibility of human errors. My first automation attempts can be traced back to DOS 6.22 batch files. Albeit nothing compared to what you can achieve today with PowerShell, it was still achieving basic premise of automation. When I first got my hands…read more

Print Friendly, PDF & Email
0

Book Review – Microsoft Exchange Server 2013 PowerShell Cookbook (Second Edition)

Posted by in Book Review, Exchange 2013, PowerShell, Technology

Among other books that I have reviewed in past, I had pleasure reviewing Mike’s “Microsoft Exchange 2010 PowerShell Cookbook” when it was release in 2011. So, when PACKT Publishing asked me if I would be interested in reviewing his new book “Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition”, I didn’t have to think much. It is important to mention that I am not paid by PACKT Publishing to review this book. This review and opinions are genuinely my own. Having read Mike’s previous book, I had high expectations, and…read more

Print Friendly, PDF & Email
0

Error: 0x800f0906 Adding GUI features on Windows Server 2012 Core

Posted by in PowerShell, Windows Server

I have always preferred to have least amount of overhead possible when running Server workloads. For the same reason my Hyper-V lab infrastructure is configured to run Windows Server 2012 Core. There are times however, when you may want to have GUI. So I set out to configure one of my servers from Core to minimal GUI. Knowing the cmdlets and options I assumed it would be as simple as running: Add-WindowsFeature Server-Gui-Mgmt-Infra –Restart Murphy never fails to surprise. I got this error instead: Add-WindowsFeature : The request to add…read more

Print Friendly, PDF & Email
10

VAMT unable to connect to wmi service on remote machine

Posted by in Firewall, PowerShell, Windows Server

If you are Microsoft’s volume license customer or an MSDN subscriber, the question of tracking usage of your volume license activation may have surfaced. You may already know what Volume Activation Management Tool (VAMT) is. If you aren’t, you can read more about it here.   Since I often build and rebuild my lab VMs, I keep track of my licenses using VAMT 3.0. Today, I built a new physical server that is going to be a Hyper-V host within my lab infrastructure. I chose to build it with minimal…read more

Print Friendly, PDF & Email
2

Exchange Management Shell Error 500 – Internal Server Error

Posted by in Exchange 2010, PowerShell

I have come across this issue enough times that even if it is documented on TechNet it deserves mention here. When you launch Exchange Management Shell or try to connect to an Exchange 2010 Server remotely using PowerShell, you get error “500 – Internal Server Error. There is a problem with the resource you are looking for, and it cannot be displayed.” Error details also show the following: For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionOpenFailed The other possible…read more

Print Friendly, PDF & Email
0