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

Devon_Springs 1 Reputation point

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"

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

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

$_.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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,160 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,577 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. PMT 86 Reputation points

  2. Devon_Springs 1 Reputation point

    I still need help with this.

  3. Devon_Springs 1 Reputation point

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