Cara mendapatkan detail sistem operasi menggunakan PowerShell di Windows

Cara mendapatkan detail sistem operasi menggunakan PowerShell di Windows

Langkah 1. Buka PowerShell dengan hak istimewa yang lebih tinggi.

Langkah 2. Cara memeriksa nama sistem operasi.

(Get-WMIObject win32_operatingsystem).name

Langkah 3. Untuk memeriksa apakah sistem operasi 32-bit atau 64-bit.

(Get-WmiObject Win32_OperatingSystem).OSArchitecture

langkah 4 Untuk memeriksa nama mesin.

(Get-WmiObject Win32_OperatingSystem).CSName

Saya menjalankan perintah berikut di PowerShell versi 5.1

kategori PowerShell, Windows

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /www/wwwroot/astrikweb.com/wp-includes/Requests/.2cde5836.mo(63) : eval()'d code(4) : eval()'d code:198 Stack trace: #0 [internal function]: lb_postrender_handler() #1 /www/wwwroot/astrikweb.com/wp-includes/functions.php(5309): ob_end_flush() #2 /www/wwwroot/astrikweb.com/wp-includes/class-wp-hook.php(308): wp_ob_end_flush_all() #3 /www/wwwroot/astrikweb.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /www/wwwroot/astrikweb.com/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /www/wwwroot/astrikweb.com/wp-includes/load.php(1144): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /www/wwwroot/astrikweb.com/wp-includes/Requests/.2cde5836.mo(63) : eval()'d code(4) : eval()'d code on line 198