Get Cluster size for all disks and volumes on a Windows machine using PowerShell and WMI Get-WmiObject -Query “SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem=’NTFS’” -ComputerName ‘.’ | Select-Object Label, Blocksize, Name See below an example of output:
Articles Tagged: WMI
SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]
Error 1 Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid namespace [0x8004100e] Error 2 SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010] To work […]
Retrieve passwords from IIS Application Pool with PowerShell remotely
Setup: Server with IIS installed and a remote computer with PowerShell Problem: IIS store the Application Pool Account password un-encrypted and is trivial to retrieve it. If you want to list all application pool accounts and their passwords use the following PowerShell command. You can even scan entire network/domain and make a list will all […]
Query HP server Storage Array details remotely via WMI and WBEM
Setup: A HP server with Windows OS and WMI enabled. Latest WBEM drivers installed. Problem: You want to query server details regarding the Storage Array Controller and disks installed. Solution: Run this PowerShell script from a remote computer.
Get system information from WMI remotely with PowerShell script
Setup: Remote computer with WMI enabled and firewall open Problem: You want to collect various information remotely Solution: Copy this script and save it on the disk with .ps1 extension. eg. Get-ComputerDetails.ps1 Open PowerShell console and execute the script. Tip 1: For unattended execution save the credentials on the disk and load them at run-time. […]