is it possible to set scsitargetid value from 0 to 1?

Devon_Springs 1 Reputation point
2021-09-27T23:04:18.51+00:00

I have a simple application that need to look for a specific drive that has a value of 1 for scsitargetid.

When I use the command below to get all the scsi information for all of the PHYSICAL drives on my development PC I get the following output.

Get-WmiObject Win32_DiskDrive | select-object DeviceID,{$_.size/1024/1024/1024},scsiport,scsibus,scsitargetid,scsilogicalunit | out-file -FilePath c:\Users\Tester\Desktop\OutputPhysicalDrives.txt

"OutputPhysicalDrives text file output's"

DeviceID : \.\PHYSICALDRIVE1
$_.size/1024/1024/1024 : 931.510956287384
scsiport : 0
scsibus : 1
scsitargetid : 0
scsilogicalunit : 0

DeviceID : \.\PHYSICALDRIVE2
$_.size/1024/1024/1024 : 465.759308338165
scsiport : 0
scsibus : 2
scsitargetid : 0
scsilogicalunit : 0

DeviceID : \.\PHYSICALDRIVE0
$_.size/1024/1024/1024 : 447.129242420197
scsiport : 0
scsibus : 0
scsitargetid : 0
scsilogicalunit : 0

Question is, how would I set PHYSICALDRIVE2's scsitargetid value from 0 to 1 so I can use this to identify PHYSICALDRIVE2 as the drive I want to use on my application.

Other Information
OS : Windows 10 Pro 20H2 64 bit

Windows for business | Windows Client for IT Pros | Devices and deployment | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. PMT 86 Reputation points
    2021-09-28T09:24:43.253+00:00

  2. Devon_Springs 1 Reputation point
    2021-09-30T00:31:57.073+00:00

    I still need help with this.


  3. Devon_Springs 1 Reputation point
    2021-10-04T14:11:11.343+00:00

    I still need help with this issue, it has been described in more detail on another post.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.