<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>File System : GetRelated, Disk ID</title><link>http://powershell.com/cs/media/g/file-system/tags/GetRelated/Disk+ID/default.aspx</link><description>Tags: GetRelated, Disk ID</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Get Drive ID and Drive Letter</title><link>http://powershell.com/cs/media/p/7924.aspx</link><pubDate>Wed, 20 Oct 2010 21:36:44 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:7924</guid><dc:creator>Tobias</dc:creator><slash:comments>0</slash:comments><description>If you need to know which drive ID is linked to which logical disk drive letter, use this script. It shows a number of interesting techniques to get the information. First, it illustrates how to retrieve a WMI class and find its *related* classes. This way you can link Win32_DiskPartition and Win32_LogicalDisk. Next, it implements a function called Combine-Object which allows you to &amp;quot;melt together&amp;quot; two objects. As a result, Get-Drives returns objects that contain BOTH the properties from Win32_LogicalDisk and Win32_DiskPartition. This way, you can easily output disk ids and corresponding drive letters etc.</description><enclosure url="http://powershell.com/cs/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.79.24/b4r1r2uu.ps1" length="923" type="image/jpeg" /></item></channel></rss>