Which approach is recommended to determine the status and model of disk drives on a remote Windows system and is considered more future-proof?

Prepare for the Penetration Testing and Vulnerability Analysis Test with a range of challenging questions. Study with multiple choice format, hints, and detailed explanations to ace your next exam!

Multiple Choice

Which approach is recommended to determine the status and model of disk drives on a remote Windows system and is considered more future-proof?

Explanation:
Using PowerShell with CIM to query the remote system is the best approach because CIM over PowerShell represents the modern, forward-compatible way to do remote management in Windows. The Win32_DiskDrive information is exposed through CIM (via the Win32_DiskDrive class), and Get-CimInstance lets you pull those properties—such as Status and Model—over the network in a secure, WS-Man-based session. This method scales well across machines and future Windows releases, and it aligns with current administration practices. To query a remote host, you’d connect with a CIM session or specify the remote computer name, for example: Get-CimInstance -ClassName Win32_DiskDrive -ComputerName RemotePC | Select-Object Status, Model. Using a CIM session (New-CimSession) is common in scripts, e.g., if you need to reuse credentials or run multiple queries. This approach is preferable to alternatives like WMIC, which is being deprecated, or SNMP, which often provides less detailed, less consistent disk data and isn’t as reliable for modern Windows management. A third-party inventory tool can work in practice, but it introduces vendor dependence and may not be as future-proof or consistent across environments.

Using PowerShell with CIM to query the remote system is the best approach because CIM over PowerShell represents the modern, forward-compatible way to do remote management in Windows. The Win32_DiskDrive information is exposed through CIM (via the Win32_DiskDrive class), and Get-CimInstance lets you pull those properties—such as Status and Model—over the network in a secure, WS-Man-based session. This method scales well across machines and future Windows releases, and it aligns with current administration practices.

To query a remote host, you’d connect with a CIM session or specify the remote computer name, for example: Get-CimInstance -ClassName Win32_DiskDrive -ComputerName RemotePC | Select-Object Status, Model. Using a CIM session (New-CimSession) is common in scripts, e.g., if you need to reuse credentials or run multiple queries.

This approach is preferable to alternatives like WMIC, which is being deprecated, or SNMP, which often provides less detailed, less consistent disk data and isn’t as reliable for modern Windows management. A third-party inventory tool can work in practice, but it introduces vendor dependence and may not be as future-proof or consistent across environments.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy