OS Version Queries for WMI Filters

NOTE: Updated Feb 13, 2020 to include Windows Server 2019

More likely than not, if you’re using Group Policy to push out software installation or registry entries to client machines or servers on the domain, the particular policy settings may be different depending on the OS version or architecture.

Examples, Group Policy Objects may need to be filtered by:

  • Desktop OS / Server OS
  • Domain Controller / Non-Domain Controller
  • 32-bit / 64-bit

If you haven’t used Windows Management Instrumentation (WMI) filters before, they show up in Group Policy Management at the bottom, between Group Policy Objects and Starter GPOs.

Common OS WMI Filters

The WMI filters use a query to scope down the Group Policy Object applicability. Here’s what a typical WMI OS filter looks like:

WMI filter

select * from Win32_OperatingSystem WHERE Version like

WMI Win32_OperatingSystem ProductType Tips:

  • ProductType 1 = Desktop OS
  • ProductType 2 = Server OS – Domain Controller
  • ProductType 3 = Server OS – Not a Domain Controller

WMI Win32_OperatingSystem Version Number Tips:

  • 5.1 – Windows XP
  • 5.2 – Windows Server 2003
  • 5.2.3 – Windows Server 2003 R2
  • 6.0 – Windows Vista & Windows Server 2008
  • 6.1 – Windows 7 & Windows Server 2008 R2
  • 6.2 – Windows 8 & Windows Server 2012
  • 6.3 – Windows 8.1 & Windows Server 2012 R2
  • 10.0 – Windows 10 & Windows Server 2016 & 2019

To create your own WMI filters, here is an updated list of WMI filter queries from Window XP – Windows 10 and from Server 2003 to Server 2019.

IMPORTANT DISCLAIMER:
Always test your Group Policies and WMI filters before deploying.

DESKTOP WMI QUERIES

ANY WINDOWS DESKTOP OS

  • Any Windows Desktop OS – Version 1
    SELECT * FROM Win32_OperatingSystem WHERE ProductType = “1”
  • Any Windows Desktop OS – Version 2 (better for Win7 sometimes)
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType <> “2”) AND (ProductType <> “3”)
  • Any Windows Desktop OS – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE ProductType = “1” AND NOT OSArchitecture = “64-bit”
  • Any Windows Desktop OS – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE ProductType = “1” AND OSArchitecture = “64-bit”

WINDOWS XP

  • Windows XP
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “5.1%” or Version like “5.2%”) AND ProductType=”1″
  • Windows XP – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “5.1%” or Version like “5.2%”) AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows XP – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “5.1%” or Version like “5.2%”) AND ProductType=”1″ AND OSArchitecture = “64-bit”

WINDOWS VISTA

  • Windows Vista
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”1″
  • Windows Vista – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows Vista – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

WINDOWS 7

  • Windows 7
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType=”1″
  • Windows 7 – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows 7 – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

WINDOWS 8

  • Windows 8
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType=”1″
  • Windows 8 – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows 8 – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

WINDOWS 8.1

  • Windows 8.1
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType=”1″
  • Windows 8.1 – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows 8.1 – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

WINDOWS 10

  • Windows 10
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “10.0%” AND ProductType=”1″
  • Windows 10 – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “10.0%” AND ProductType=”1″ AND NOT OSArchitecture = “64-bit”
  • Windows 10 – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “10.0%” AND ProductType=”1″ AND OSArchitecture = “64-bit”

SERVER WMI QUERIES

ANY WINDOWS SERVER OS

  • Any Windows Server OS
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”) OR (ProductType = “3”)
  • Any Windows Server OS – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”) OR (ProductType = “3”) AND NOT OSArchitecture = “64-bit”
  • Any Windows Server OS – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”) OR (ProductType = “3”) AND OSArchitecture = “64-bit”
  • Any Windows Server – Domain Controller
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”)
  • Any Windows Server – Domain Controller – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”) AND NOT OSArchitecture = “64-bit”
  • Any Windows Server – Domain Controller – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “2”) AND OSArchitecture = “64-bit”
  • Any Windows Server – Non-Domain Controller
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “3”)
  • Any Windows Server – Non- Domain Controller – 32-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “3”) AND NOT OSArchitecture = “64-bit”
  • Any Windows Server – Non-Domain Controller – 64-bit
    SELECT * FROM Win32_OperatingSystem WHERE (ProductType = “3”) AND OSArchitecture = “64-bit”

WINDOWS SERVER 2003

  • Windows Server 2003     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType<>”1″
  • Windows Server 2003 – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”2″
  • Windows Server 2003 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”3″
  • Windows Server 2003 – 32-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2003 – 32-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2003 – 64-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
  • Windows Server 2003 – 64-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2%” AND ProductType=”3″ AND OSArchitecture = “64-bit”

WINDOWS SERVER 2003 R2

  • Windows Server 2003 R2     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType<>”1″
  • Windows Server 2003 R2 – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”2″
  • Windows Server 2003 R2 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”3″
  • Windows Server 2003 R2 – 32-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2003 R2 – 32-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2003 R2 – 64-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
  • Windows Server 2003 R2 – 64-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “5.2.3%” AND ProductType=”3″ AND OSArchitecture = “64-bit”

WINDOWS SERVER 2008

  • Windows Server 2008     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType<>”1″
  • Windows Server 2008DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”2″
  • Windows Server 2008 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”3″
  • Windows Server 2008 – 32-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”2″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2008 – 32-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”3″ AND NOT OSArchitecture = “64-bit”
  • Windows Server 2008 – 64-bit – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”2″ AND OSArchitecture = “64-bit”
  • Windows Server 2008 – 64-bit – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.0%” AND ProductType=”3″ AND OSArchitecture = “64-bit”

WINDOWS SERVER 2008 R2

  • Windows Server 2008 R2     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType<>”1″
  • Windows Server 2008 R2 – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType=”2″
  • Windows Server 2008 R2 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.1%” AND ProductType=”3″

WINDOWS SERVER 2012

  • Windows Server 2012     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType<>”1″
  • Windows Server 2012 – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType=”2″
  • Windows Server 2012 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.2%” AND ProductType=”3″

WINDOWS SERVER 2012 R2

  • Windows Server 2012R2     
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType<>”1″
  • Windows Server 2012 R2 – DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType=”2″
  • Windows Server 2012 R2 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE Version LIKE “6.3%” AND ProductType=”3″

WINDOWS SERVER 2016 *

  • Windows Server 2016     
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.14393%”) OR (Version LIKE “10.0.16299%”) OR (Version LIKE “10.0.17134%”) AND ProductType<>”1″
  • Windows Server 2016 – DC
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.14393%”) OR (Version LIKE “10.0.16299%”) OR (Version LIKE “10.0.17134%”) AND ProductType=”2″
  • Windows Server 2016 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.14393%”) OR (Version LIKE “10.0.16299%”) OR (Version LIKE “10.0.17134%”) AND ProductType=”3″

WINDOWS SERVER 2019 *

  • Windows Server 2019     
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.17763%”) OR (Version LIKE “10.0.18362%”) OR (Version LIKE “10.0.18363%”) AND ProductType<>”1″
  • Windows Server 2019 – DC
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.17763%”) OR (Version LIKE “10.0.18362%”) OR (Version LIKE “10.0.18363%”) AND ProductType=”2″
  • Windows Server 2019 – non-DC
    SELECT * FROM Win32_OperatingSystem WHERE (Version LIKE “10.0.17763%”) OR (Version LIKE “10.0.18362%”) OR (Version LIKE “10.0.18363%”) AND ProductType=”3″

* A few notes about the “OR” operator:

First – The reason for the “OR” statements in Server 2016 and Server 2019 WMI Query Filters is because there are multiple builds, as shown in the table below. These multiple builds are part of Microsoft’s Windows as a service (Waas) plan.

Second – “Or” combines two conditions. When more than one logical operator is used in a statement, the OR operators are evaluated after the AND operators. (Source)

Major Minor Version Build Info Released
10 0 1607 14393 2016 RTM LTSC 09/26/2016
10 0 1709 16299 2016 SAC 10/17/2017
10 0 1803 17134 2016 SAC 04/30/2018
10 0 1809 17763 2019 LTSC 11/13/2018
10 0 1903 18362 2019 SAC 5/21/2019
10 0 1909 18363 2019 SAC 11/12/2019

Helpful OS Term Abbreviations



    VN:F [1.9.20_1166]
    Rating: 9.9/10 (45 votes cast)

    Download – Windows Security Audit Events Spreadsheet

    Title: Windows Security Audit Events Spreadsheet
    Published: 12/02/2015
    Publisher: Microsoft Corporation
    Version: November 2015
    File name: WindowsSecurityAuditEvents.xlsx
    Size: 70 KB
    Download URL: Click here for download

    Pop Quiz:

    1) What’s the Event ID for an Account Lockout?

    2) What about the Event ID denoting that permissions were changed on an object?

    3) Or the Event ID for locking or unlocking a workstation?

    Don’t worry, I can’t remember those off the top of my head either. And that usually means sifting through bookmarked links, PDFs or hitting Google to look it up.

    Fortunately, Microsoft has an Excel spreadsheet detailing 412 different Event IDs related to Windows Security Audit Events. Those 400+ Event IDs are broken up into the following nine categories:

    • Account Logon
    • Account Management
    • Detailed Tracking
    • DS Access
    • Logon/Logoff
    • Object Access
    • Policy Change
    • Privilege Use
    • System

    Another example but in this case physical casino security personnel will be on top of the barricades and they will be patrolling the building, like hvad er et pund i danske kroner.

    In an unprecedented move, officials in the city of Valencia launched a national protest. The protest, attended by more than 30,000 people, was organized on social media across the country in support of the new law.

    The protesters included representatives from local government districts, the local media, social media and religious institutions including faith clubs.

    The spreadsheet also contains a tab with a complete description of the event message. This is a great tool for creating event monitors. Download and enjoy!

    VN:F [1.9.20_1166]
    Rating: 10.0/10 (2 votes cast)

    Windows Server 2012 and R2 Locks and Limits Hosting

    The question came up today about using Windows Server Essentials as a RADIUS server. Part of the consideration involves the arbitrary restrictions placed on the OS. Microsoft differentiates the server products with what are affectionately know as “Locks and Limits”.

    Most folks in IT are aware of OS  hosting limits like the number of users in Windows Server or not being able to RDP into Windows 7 Home Edition. But there are other less-obvious limits like RAM or IAS, RRAS & SMB connection limits is probably the most important thing because of the new limitations on the platforms and OS. Hosting is an integral part of what users are doing on the os due to the increase in web services connecting to them.

    Fortunately there are two handy spreadsheets that detail the Limits, Roles & Features that are (or are not) available in Windows Server 2012 & R2 Editions.

    Windows Server 2012 R2 Locks and Limits

    Windows Server 2012 R2 Locks & Limits
    File: Windows Server 2012 R2 Products and Editions Comparison.pdf (222 KB)
    URL: http://www.microsoft.com/en-us/download/details.aspx?id=41703

    • Windows Server 2012 R2 Datacenter
    • Windows Server 2012 R2 Standard
    • Windows Server 2012 R2 Essentials
    • Windows Server 2012 R2 Foundation
    • Microsoft Hyper-V Server 2012 R2
    • Windows Storage Server 2012 R2 Standard
    • Windows Storage Server 2012 R2 Workgroup

    Windows Server 2012 Locks & Limits
    File: Windows Server 2012 Products and Editions Comparison.pdf (226 KB)
    URL: http://www.microsoft.com/en-us/download/details.aspx?id=38809

    • Windows Server 2012 Datacenter
    • Windows Server 2012 Standard
    • Windows Server 2012 Essentials
    • Windows Server 2012 Foundation
    • Microsoft Hyper-V Server 2012
    • Windows Storage Server 2012 Standard
    • Windows Storage Server 2012 Workgroup
    • Windows MultiPoint Server 2012 Premium
    • Windows MultiPoint Server 2012 Standard

    Currently, there is no word yet on Windows Server 2016 since it’s still in Technical Preview at this time. However, once the licensing folks figure out how to squeeze every penny out of Server 2016 (I’m very interested to see what they do with Nano Edition) there should be an updated spreadsheet released.

    VN:F [1.9.20_1166]
    Rating: 10.0/10 (1 vote cast)

    Remote Desktop Connection Tips

    OK, so I’m probably the last person on the planet to learn of this feature, but on the left side of Remote Desktop Connection (MSTSC.exe) there’s a drop-down that exposes features for Windows 8, 8.1, Server 2012 and Server 2012 R2.

    Drop-down for Windows 8 in latest RDP client

    This is helpful when you’re on a Win8.x or 2012/R2 machine, RDPed into another machine and you’re not sure if (when you mouse up to the top-right or bottom-right) if you’re popping up the charms menu for your machine or the remote machine.

    Also, speaking of Remote Desktop, there are 2 pieces to the puzzle:

    • Remote Desktop Protocol (RDP) – server
    • Remote Desktop Connection (RDC) – client

    Below are the current versions and key features.

    RDP 8.0 update (10/23/2012)
    Windows 7 and Server 2008 R2
    http://support.microsoft.com/kb/2592687 

    • RemoteFX for WAN
    • RemoteFX Network Auto Detect
    • RemoteFX Adaptive Graphics
    • RemoteFX Media Streaming
    • RemoteFX USB Redirection for non-RemoteFX vGPU virtual desktops
    • Support for nested sessions
    • Performance counters for monitoring user experience

    RDC 8.1 update (2/10/2014)
    Windows 7 and Server 2008 R2
    http://support.microsoft.com/KB/2830477

    • Full support of transparent windows
    • Moves and resizes of RemoteApp windows
    • Thumbnails, aero peek, and live taskbar
    • Dynamic monitor and resolution changes
    • Support for session shadowing
    VN:F [1.9.20_1166]
    Rating: 9.5/10 (2 votes cast)

    Windows Storage Spaces 2012 R2 Resources

    Tonight (Wed 12/18/2013) I had the privilege of giving my talk on
    Performance Benchmarking in Storage Spaces 2012 R2” for the
    Cincinnati Networking Professionals Association (CiNPA).

    For those who attended, and those interested in Storage Spaces, here are the resource links mentioned during the presentation:

    Video – Storage Spaces: What’s New in Windows Server 2012 R2
    http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/MDC-B218
    Video - Storage Spaces: What’s New in Windows Server 2012 R2

    Blog – Step-By-Step: Deploy Hyper-V on SMB 3.0
    http://blogs.technet.com/b/canitpro/archive/2013/12/18/step-by-step-deploy-hyper-v-on-smb-3-0.aspx
    Blog - Step-By-Step: Deploy Hyper-V on SMB 3.0

    Download – Iometer
    http://iometer.org/doc/downloads.html
    Iometer

    eBay – Dell PowerEdge C1100 (2 proc, quad core, 24 GB, 1U) for $335
    http://www.ebay.com/itm/Dell-Poweredge-C1100-1U-2X-XEON-QC-L5520-2-26GHZ-NO-HDD-24GB-DDR3-Tested-/261199263261
    Dell PowerEdge C1100

    Blog – Step-by-step for Storage Spaces Tiering in Server 2012 R2
    http://blogs.technet.com/b/josebda/archive/2013/08/28/step-by-step-for-storage-spaces-tiering-in-windows-server-2012-r2.aspx
    Blog – Step-by-step for Storage Spaces Tiering in Server 2012 R2

    Training – Free MVA Networking Fundamentals course
    http://www.microsoftvirtualacademy.com/training-courses/networking-fundamentals
    Training – Free MVA Networking Fundamentals course

    Training – Free MVA Windows Server 2012: Storage
    http://www.microsoftvirtualacademy.com/training-courses/windows-server-2012-storage
    Training – Free MVA Windows Server 2012: Storage

    Training – Free MVA Windows Server 2012 R2 Storage Jump Start: New Choices
    http://www.microsoftvirtualacademy.com/training-courses/windows-server2012-r2-storage-jump-start-new-choices
    Training – Free MVA Windows Server 2012 R2 Storage Jump Start: New Choices

    Video – Using Microsoft Visio 2013 for Network Documentation (Parts 1-3)

    1. http://www.youtube.com/watch?v=GHNEDoncMGU
    2. http://www.youtube.com/watch?v=XVGtlkcR71I
    3. http://www.youtube.com/watch?v=I-odeJEtQ-U

    Misc – My Pinterest #Bacon Collection
    http://www.pinterest.com/timbarrett/insane-bacon-stuff/
    Bacon

    VN:F [1.9.20_1166]
    Rating: 0.0/10 (0 votes cast)

    Seagate Dips Their Toe in the Storage Spaces Water

    Western Digital has been around for a while with their WD Sentinel SMB storage appliances, and now Seagate has joined the fray.

    Enter the Seagate Business Storage Windows Server 4-Bay NAS.

    Windows Storage Server 2012 Available with Seagate's New 4-Bay Business Storage NAS

    OK, so right about now you’re saying, “Hey, a NAS and Storage Spaces aren’t the same thing.” But, if you look closer at the specs you’ll notice that this little box includes Windows Storage Server 2012 Workgroup, which means (drumroll please) it includes Storage Spaces.

    Plus, it comes in four flavors:

    • 4TB ($1,005 ERP) #STDM4000100
    • 8 TB ($1,334 ERP) #STDM8000100
    • 12 TB ($,1539 ERP) #STDM12000100
    • 16 TB ($1,744 ERP) #STDM16000100

    With a posted speed of up to 200 MB/sec you’re not exactly in SSD territory speed-wise, but you do get a lot of storage for your money.

    Rather than listen to me re-hash all the specs, check out the blog post by Scott Johnson or cruise over to the official Seagate website for the NAS.

    Props: @supersquatchy

    VN:F [1.9.20_1166]
    Rating: 10.0/10 (1 vote cast)

    Stupid PowerShell Tricks – Getting Your PC to Talk

    WarGamesRemember the 80’s? (Too young?)

    One of my 80’s favorites was the movie WarGames.

    (Hint: You should really watch it on Netflix – it’s a classic.
    Here’s the WarGames movie trailer for you kids.)

    Anyway, for those of you who DO remember War Games, that speech synthesizer was pretty creepy back in the day.
    But it was equally cool because speech was pretty rare in those days unless you had a Texas Instruments TI-99/4A (which I did – woot!)

    It’s hard to believe that movie came out 30 years ago, and technology has changed a lot. Windows has had speech built in for quite some time, but did you know you can access the speech API with PowerShell?

    Who cares, right? WRONG! It’s pretty fun! And it’s a good bit of code to use to prank your IT co-workers. (Think login script or batch file that runs as a scheduled task…)

    Egypt Slots is one of the most popular online games, that is gaining a lot of popularity because of the amazing prizes that gives to the winners.

    Here is a video demo of Windows Server 2012 reading classic computer lines from the movie WarGames:

    “Joshua” from WarGames (1983) as played by Windows Server 2012 & PowerShell

     

    Not too shabby for a Windows Server, eh?

    So, shall we play a game? Visit 카지노 사이트 to check all the options that you have available.

    Below is the PowerShell code for you to play with and tweak.
    Have fun annoying people!

    WarGames.ps1

    Copy-and-paste code for WarGames.ps1

    <#
    .SYNOPSIS
    This script employs the Speech API for speaking
    and quotes lines from the movie “WarGames” (1983)
    .DESCRIPTION
    At the beginning load the Speech API, create a SpeechSynthesizer object.
    It uses this object’s Speak method to speak
    .NOTES
    File Name : WarGames.ps1
    Code From : DimiG | http://www.youtube.com/watch?v=Fg6icbeHWVY
    Requires  : PowerShell Version 2.0
    .EXAMPLE
    Just for tutorial
    #>

    # Add text for speaking here
    $text = @(`
    “Hello, my name is Joshua.”,`
    “Greetings Professor Falken.”,`
    “Shall we play a game?”,`
    “Of course. I should reach DEF CON 1”,`
    “and launch my missiles in 28 hours.”,`
    “Would you like to see some projected kill ratios?”,`
    “What’s the difference?”,`
    “You are a hard man to reach.”,`
    “Could not find you in Seattle”,`
    “and no terminal is in operation at your classified address.”,`
    “D O D pension files indicate current mailing as:”,`
    “Dr Robert Hume,”,`
    “AKA Stephen W Falken,”,`
    “5 Tall Cedar Road.”,`
    “Strange game.”,`
    “The only winning move is not to play.”,`
    “How about a nice game of chess?”`
    )

    # Load the dll
    [System.Reflection.Assembly]::LoadWithPartialName(“System.Speech”) | out-null

    # Create new object
    $spk = New-Object System.Speech.Synthesis.SpeechSynthesizer

    # Step Up Volume
    $spk.SetOutputToDefaultAudioDevice();
    $spk.Volume = 100

    # Check out voices installed on this computer…
    $spk.GetInstalledVoices() | %{$_.voiceinfo}

    # Now say…
    $spk.Speak($text)

    Props: DimiG for the PoSh code

    VN:F [1.9.20_1166]
    Rating: 7.7/10 (3 votes cast)

    Video – Windows Server 2012 Essentials

    Rick Claus and Cristian Molina from Microsoft talk about Windows Server 2012.

    Edge Show 63 - Windows Server 2012 Essentials

    Title: Edge Show 63 – Windows Server 2012 Essentials
    Run time: 23 minutes 23 seconds
    Format: Silverlight

    Can’t see the Silverlight video above?

    Click the link below to choose another video format or to download offline.

    • MP3
    • MP4
    • WMV

    Link: http://channel9.msdn.com/Shows/Edge/Edge-Show-63-Windows-Server-2012-Essentials

    VN:F [1.9.20_1166]
    Rating: 0.0/10 (0 votes cast)

    PowerShell – Move AD FSMO Roles in Server 2012

    Over the long weekend we worked on two projects:

    1. Upgrade the Hyper-V hosts on the cluster at the data center
    2. Finish prepping a new Hyper-V host and Domain Controller for a new branch office with a new subnet

    imageSince the cluster at the data center holds all of the Active Directory FSMO roles we needed to transfer the roles to an alternate location on the MPLS network so that project 1 didn’t slow down or stop project 2.

    PowerShell to the rescue!

    WHICH SERVER HOLDS THE FSMO ROLES?

    Open PowerShell as an Administrator and type:

    netdom query fsmo

    You’ll see each of the 5 FSMO roles and which domain controller holds them.

    Using PowerShell to transfer FSMO roles

    The 5 FSMO roles are numbered 0-4:

    0 – PDCEmulator
    1 – RIDMaster
    2 – InfrastructureMaster
    3 – SchemaMaster
    4 – DomainNamingMaster

    Why do we care what those numbers are? Because we can move the FSMO roles very quickly and save a lot of typing.

    For example, which PowerShell command is easier to type?

    Move-ADDirectoryServerOperationMasterRole -Identity “Target-DC” -OperationMasterRole SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator

    Or this one?

    Move-ADDirectoryServerOperationMasterRole -Identity "Target-DC" -OperationMasterRole 0,1,2,3,4

    Personally, if you’re moving all the roles at once to the same DC (like when doing some server maintenance) the 0,1,2,3,4 is easy.

    Once you type in either of those commands you are prompted with several options for confirmation.

    Y, A, N, L, S or ?

    Moving FSMO roles with PowerShell

    OPTIONS:

    If you choose “Y” for Yes, PowerShell will prompt you to move each role,
    then move to the next role, like this.

    PowerShell FSMO role transfer - individual confirmation

    If you choose “N” for No, PowerShell will skip transferring that role.

    If you choose “A” for All, PowerShell will try to transfer all 5 roles to Target-DC.

    If the transfer of a FSMO role fails PowerShell will let you know loud and clear.

    PowerShell FSMO role transfer message

    CONFIRMATION:

    Unfortunately, if the transfer is successful you basically don’t get any confirmation of the role transfer.

    You’ll need to run NETDOM QUERY FSMO to double-check who has the roles.
    NETDOM QUERY FSMO to double-check FSMO role location

    Side note – Once nice thing about using PowerShell to transfer the FSMO roles is that you can script the transfer to run at a scheduled time (so you don’t forget to put the roles back where they should be later).

    Also, I didn’t have to load the Active Directory PowerShell module – Windows Server 2012 does that for me automatically.

    VN:F [1.9.20_1166]
    Rating: 9.4/10 (84 votes cast)

    Download – Capacity Planner for Hyper-V Replica

    Title: Hyper-V Replica Capacity Planner
    Author: Microsoft Virtualization Team
    Publisher: Microsoft Corporation
    Published: 5/21/2013
    File #1: Capacity Planner for Hyper-V Replica.docx
    File size: 263 KB
    Pages: 12
    File #2: HVRCapacityPlanner.exe
    File size: 437 KB
    Price: FREE
    Download URL: Click here to download

    Description:
    When considering deploying Hyper-V Replica numerous questions come up:

    • How much network bandwidth is required between the primary and replica site?
    • How much storage is required on the primary and replica site?
    • What is the storage impact by enabling multiple recovery points?

    Microsoft released a new tool to help you answer those questions.

    Tip: READ THE DOCUMENTATION (seriously – it’s only 12 pages).

    Screenshot:

    image

    VN:F [1.9.20_1166]
    Rating: 0.0/10 (0 votes cast)