Compare cert salaries and plan your next career move
DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 0 Online 233 GB 0 B Disk 1 No Media 0 B 0 B Disk 2 No Media 0 B 0 B DISKPART> select disk 0 Disk 0 is now the selected disk. DISKPART> detail disk Areca ARC-1200-VOL#00 SCSI Disk Device Disk ID: AF0BA1F9 Type : RAID Bus : 0 Target : 0 LUN ID : 0 Read-only : No Boot Disk : Yes Pagefile Disk : Yes Hibernation File Disk : No Crashdump Disk : Yes Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 1 C NTFS Partition 233 GB Healthy System
Lee H wrote: » I was hoping to maybe send out a script and have it return a TXT file with all the host names Or is that like waving a magic wand, lol
Lee H wrote: » Thanks Hero, just googled it and found thisNT-Bugtraq: WMI Filtering for Windows 2000
HeroPsycho wrote: » Claymoore, You don't have to have quite the complexity of the script. You don't need a loop or conditional logic for this. Just set your $computers variable to be a collection and reference the collection in the script in the -computer parameter You can also built a CSV file instead of writing out to a txt file. This would allow sorting, etc., on top of it simplifying the script. This would do it all while prompting for an account with the proper rights to the computers. $cred = get-credential $computers = get-content listfile.txt get-wmiobject -Query "SELECT * FROM Win32_LogicalDisk WHERE FileSystem = 'FAT32' " -Computer $computers -credential $cred | select systemname,drivetype,filesystem | export-csv report.csv Done! Edit: Claymoore, your script wouldn't get the non-FAT32 drives since you only queried for FAT32 from the get go.
Compare salaries for top cybersecurity certifications. Free download for TechExams community.