Skip to content

Microsoft Windows PowerShell – Get Host Architecture

You may use the following Microsoft Windows PowerShell script below to get the architecture, physical or virtual, of a Windows host on a network.

<#
.SYNOPSIS
This script will provide the architure (physical of virtual) of a host.
.DESCRIPTION
This script will provide the architure (physical of virtual) of a host.
.EXAMPLE
systeminfo /s $HOSTNAME | findstr /c:”Model:” /c:”Host Name”
.AUTHOR
Written by Noel Enrique Alvarez on Tuesday, April 23, 2019.
#>

#Requst the hostname of the host
$HOSTNAME = Read-Host “What is the hostname of the server?”

#Provide the architure of the host
systeminfo /s $HOSTNAME | findstr /c:”Model:” /c:”Host Name”

Published inArchitectureHardwareMicrosoft Windows 10Microsoft Windows 7Microsoft Windows 8Microsoft Windows 8.1Microsoft Windows PowerShellMicrosoft Windows Server 2003Microsoft Windows Server 2008Microsoft Windows Server 2008 R2Microsoft Windows Server 2012Microsoft Windows Server 2012 R2Microsoft Windows Server 2012 R2 CoreMicrosoft Windows Server 2016ScriptingVMware ESXi 5.5VMware ESXi 6.0VMware ESXi 6.5VMware vCenter Server 5.0VMware vCenter Server 6.5VMware vSphere 5.0VMware vSphere 6.0VMware vSphere 6.5

Comments are closed.