Jump to content

Recommended Posts

Hi All,

I'm asked to detect the difference between MSSQL Express Edition (free) and payed versions. So after a long search I found how to detect the difference. A powershell query like: 

"Get-WmiObject -Namespace root\Microsoft\SqlServer\ComputerManagement11 -Class SqlServiceAdvancedProperty | Where-Object {$_.PropertyName -eq 'SKUNAME'} | select PropertyStrValue | format-list"

will return Express Edition (or another editions).

This is the one for SQL Server 2012... other versions need to look at another version of ComputerManagement but in the end it will return the version.

So I had a good idea, lets make it a role detection rule! But there's something I can't get to work. So who can tell me what i'm doing wrong?

image.thumb.png.d8dd02a0d1c0683764c019a0866ccb0a.png

It simply will not detect the express editions... Why?!

Role Detection MSSQL Server 2012 Express.sql

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×