1.               Power shell – script run.
# Get Laptop Serial Number
$SerialNumber = (Get-WmiObject Win32_BIOS).SerialNumber
# Get MAC Address
$MacAddresses = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object
{ $_.IPEnabled -eq $true } | Select-Object MACAddress
# Get Windows OS Product Key
$DigitalProductID = (Get-WmiObject -Query 'SELECT * FROM
SoftwareLicensingService').OA3xOriginalProductKey
# Check Windows License Status
$WindowsLicenseStatus = (slmgr /dlv) | Out-String
# Get MS Office Product Key (if installed)
Function Get-OfficeKey {
     $OfficePaths = @(
         "HKLM:\SOFTWARE\Microsoft\Office\16.0\Registration",
         "HKLM:\SOFTWARE\Microsoft\Office\15.0\Registration",
         "HKLM:\SOFTWARE\Microsoft\Office\14.0\Registration"
     foreach ($Path in $OfficePaths) {
         if (Test-Path $Path) {
       $OfficeKey = Get-ItemProperty -Path "$Path\{*}" -Name "DigitalProductID" -ErrorAction
SilentlyContinue
             if ($OfficeKey -ne $null) {
                 return "Office Key Found (Partial): $($OfficeKey.DigitalProductID | Out-String)"
     }
     return "Office Key Not Found"
$OfficeKey = Get-OfficeKey
# Output Results
Write-Host "Laptop Serial Number: $SerialNumber" -ForegroundColor Green
Write-Host "MAC Address(es):" -ForegroundColor Green
$MacAddresses | ForEach-Object { Write-Host $_.MACAddress }
Write-Host "Windows Product Key: $DigitalProductID" -ForegroundColor Green
Write-Host "Windows License Status: $WindowsLicenseStatus" -ForegroundColor Green
Write-Host "MS Office Key: $OfficeKey" -ForegroundColor Green
# Verify if the MS Office key is genuine
if ($OfficeKey -match "Office Key Found") {
     Write-Host "Checking MS Office Key Genuineness..." -ForegroundColor Yellow
  Start-Process -NoNewWindow -FilePath "cscript.exe" -ArgumentList ""C:\Program Files\Microsoft
Office\Office16\ospp.vbs" /dstatus"
} else {
     Write-Host "No MS Office Key Found. Office may not be installed." -ForegroundColor Red
2.         Power shell –
ipconfig /all
3.         Cmd Prompt – MS Office Validation –
cscript "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" /dstatus
4.         MS OS Validation
Power shell
slmgr/dli