About 1,020,000 results
Open links in new tab
  1. shell script - How to get info on disk drives with powershell

    Jan 23, 2020 · In order for you to get the cmdlet Get-Disk to work you would need to import the storage powershell module. Once you have imported it you will be able to see the module with …

  2. List all devices, partitions and volumes in Powershell

    Nov 2, 2009 · To get all of the file system drives, you can use the following command: gdr -PSProvider 'FileSystem' gdr is an alias for Get-PSDrive, which includes all of the "virtual …

  3. Get-PSDrive Cheat Sheet - Get-PSDrive Command Line Guide

    Mar 1, 2025 · Get-PSDrive is a cmdlet that retrieves information about the drives available in your PowerShell session. In PowerShell, drives are not limited to traditional file system drives; they …

  4. How to Use the Get-PSDrive Cmdlet in PowerShell - TheLinuxCode

    Dec 27, 2023 · Get-PSDrive retrieves available drives from PowerShell providers; Drives provide access to diverse data stores through consistent mappings; Drive letters represent everything …

  5. Run Linux commands from PowerShell - Stack Overflow

    Sep 8, 2017 · Use a here-string for your script: $script = @' alldisks=`/sbin/sfdisk -s | grep -v 'total' | awk -F ':' '{print $1}'` unmounted_disks="" echo $unmounted_disks for disk in $alldisks do …

  6. How to List Drives in PowerShell?

    Nov 21, 2024 · The primary cmdlet for listing drives in PowerShell is Get-PSDrive. This cmdlet displays information about all the drives available in your session, including file system drives, …

  7. PowerShell Get Disk Information - ShellGeek

    Aug 18, 2023 · Get Hard Drive Information using the Get-PhysicalDisk. Use the Get-PhysicalDisk cmdlet in PowerShell to retrieve the disk information about physical disks and device …

  8. Help with script to pull HDD info : r/PowerShell - Reddit

    Feb 14, 2020 · I'm trying to write a script that gathers a bunch of information from servers across the network and I've hit a snag when it comes to gathering physical hard drive info. I can get a …

  9. How to remotely pull hard drive details and export to CSV

    Mar 11, 2019 · Let's start with a PowerShell command to pull disk information. Looking around I found the get-psdrive command . It has everything the requestor wants Used and Free space …

  10. powershell - Script to locate all remote local drives and then …

    I'm trying to figure out how to locate, on remote servers, ONLY local disks and then look at their top level directories. This is what I have so far: foreach ($i in Get-Content "U:\Powershell\Lists\

  11. Some results have been removed
Refresh