This section shows how to connect iSCSI Target Server to Server 2022. Windows Server includes a built-in tool iSCSI initiator that we can connect to an iSCSI target server. In order to attach an iSCSI target, however, you want to enable and configure the initiator.
To read more about please click here iSCSI Target Server Overview
Connect iSCSI Target Server
To get started, launch the Server Manager and then select the iSCSI Initiator option from the Tools menu.

Now you can see, Microsoft iSCSI indicates that the Microsoft iSCSI service is not running. The iSCSI service must be started if the iSCSI initiator is to function correctly. Click the Yes button to enable the service, and will ensure that it starts automatically every time Windows is restarted.

The iSCSI Service Must be Enabled
The iSCSI service is running now, we will have to collect a little information before we can finish configuring the iSCSI initiator.
The first thing in establishing connectivity to the iSCSI target server is to select the Discovery tab on the iSCSI Initiator Properties window. Click on the discover portal button.

In the discovery target portal, type the IP address, (the default port is 3260). Click on the Advanced button.

Make sure the Local Adapter settings are Microsoft iSCSI Initiator and the Initiator is Target IPs. Click ok twice

Select the iSCSI initiator and then select the Connect button.

The iSCSI Initiator should discover the iSCSI target, and then click ok.

Now the iSCSI target is connected.

How to Enable iSCSI Initiator using PowerShell
We can also enable the iSCSI initiator by using the PowerShell command to start the Microsoft iSCSI Service and then change the service startup type to Automatic by running the below commands:
Start-Service msiscsi
Set-Service msiscsi -startuptype “automatic”
Now, open the Computer Management console by clicking on tools and then computer management.
Or you can type the compmgmt.msc in the run command to open it.

Click on Disk Management from the left panel. Right-click on the disk whose size equals that of your LUN and then select Online.

Again right-click on the disk and then select Initialize Disk.

Click OK and the disk status will become Online.

Right-click on the volume and choose New Simple Volume.

Click next

Click next

Assign the drive letter and then click next.

Type a volume label and click next.

Click Finish

Now Windows has an additional volume with the drive letter as extra storage.



