List Windows Product Activation Status

Returns product activation information for a computer. This script requires both Windows PowerShell and the corresponding version of the .NET Framework. For more information on d

 
 
 
 
 
(0)
Add to favorites
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • hello
    1 Posts | Last post March 19, 2013
    • $strComputer = "VMJumezuri"
       
      $colItems = get-wmiobject -class "Win32_WindowsProductActivation" -namespace "root\CIMV2" ` 
      -computername $strComputer 
       
      foreach ($objItem in $colItems) { 
            write-host "Activation Required: " $objItem.ActivationRequired 
            write-host "Caption: " $objItem.Caption 
            write-host "Description: " $objItem.Description 
            write-host "Is Notification On: " $objItem.IsNotificationOn 
            write-host "Product ID: " $objItem.ProductID 
            write-host "Remaining Evaluation Period: " $objItem.RemainingEvaluationPeriod 
            write-host "Remaining Grace Period: " $objItem.RemainingGracePeriod 
            write-host "Server Name: " $objItem.ServerName 
            write-host "Setting ID: " $objItem.SettingID 
            write-host 
      } 
      EERROORR
      
      Missing expression after unary operator '-'.
      At line:4 char:1