Windows iSCSI Initiator Configuration: GUI and PowerShell

Connect Windows Server to a remote LUN with CHAP, restore the session after restart, and prepare the new disk for use.

Windows ServeriSCSIPowerShellCHAP
Windows iSCSI workflow: open, discover, select, authenticate, connect and initialize
Windows iSCSI Initiator cheat sheet: use this quick map before reading the detailed sections.

Before you connect

This lab uses target portal 192.168.50.10, target IQN iqn.2026-08.in.netest:storage.target01, TCP port 3260 and one-way CHAP.

  • Confirm that the Windows initiator IQN has a matching target ACL.
  • Confirm that the target maps a LUN to that ACL.
  • Test routing, VLANs and TCP 3260 before troubleshooting credentials.
  • Use a unique CHAP secret—not the example shown here.

Choose a method

Graphical interface

Best for a first connection, one-off administration and learning where portal, target and CHAP settings live.

PowerShell

Best for repeatability, remote administration, build documentation and automated server deployment.

Method 1: Use the graphical interface

  1. Open Start → Windows Tools → iSCSI Initiator. Allow Windows to start the Microsoft iSCSI service when prompted.
  2. On the Discovery tab, choose Discover Portal. Enter 192.168.50.10; the default port is 3260.
  3. Open the Targets tab. Select iqn.2026-08.in.netest:storage.target01, which should initially appear inactive.
  4. Choose Connect → Advanced, enable CHAP logon, and enter the configured username and target secret.
  5. Enable the option to add the connection to favourite targets so Windows reconnects after restart.
  6. Open Computer Management → Disk Management. Bring the new disk online, initialize it as GPT, create a New Simple Volume, assign a drive letter and format it with NTFS or ReFS.
Verify the correct disk. Match its size and target session before initializing it. Initializing or formatting the wrong disk can destroy existing data.

Method 2: Use PowerShell

Start the service and add the portal

Start-Service MSiSCSI Set-Service MSiSCSI -StartupType Automatic New-IscsiTargetPortal ` -TargetPortalAddress "192.168.50.10" Get-IscsiTarget

Connect without CHAP

Connect-IscsiTarget ` -NodeAddress "iqn.2026-08.in.netest:storage.target01" ` -TargetPortalAddress "192.168.50.10" ` -IsPersistent $true

Connect with one-way CHAP

Connect-IscsiTarget ` -NodeAddress "iqn.2026-08.in.netest:storage.target01" ` -TargetPortalAddress "192.168.50.10" ` -AuthenticationType "ONEWAYCHAP" ` -ChapUsername "iscsiuser" ` -ChapSecret "Use-A-Strong-Secret" ` -IsPersistent $true
PowerShell detail: authentication values such as NONE, ONEWAYCHAP and MUTUALCHAP are uppercase.

Verify the connection and disk

Get-IscsiTarget Get-IscsiSession Get-IscsiConnection Get-Disk
CommandWhat it confirms
Get-IscsiTargetTarget discovery and connection state
Get-IscsiSessionActive initiator-to-target session
Get-IscsiConnectionPortal address and connection details
Get-DiskThe operating system received the LUN as a disk

If the session exists but no disk appears, refresh storage discovery with Update-HostStorageCache and verify the target-side LUN mapping.

Persistent sessions and multipathing

A persistent connection restores the session after restart. Production designs commonly add two NICs, two storage switches and two target portals. Install and configure Windows Multipath I/O before enabling multiple iSCSI paths; adding duplicate sessions without an MPIO plan can cause disk-management problems.

One LUN, coordinated paths: multipathing must present redundant routes to the same storage device through MPIO. It is not the same as independently mounting one ordinary LUN from unrelated hosts.

Storage Safety Before You Connect

iSCSI configuration is a storage change, so network reachability is only the first checkpoint. Confirm the target IQN, authentication settings, intended initiator, LUN mapping and whether the target is allowed to be mounted by more than one host. A session can be technically established while the storage design is still unsafe.

Keep storage traffic predictable. Use the designated interfaces or VLANs, verify MTU and routing, and avoid mixing management and storage paths without a reason. When multipathing is required, each path should be independently reachable and should appear as a path to the same target rather than as an accidental duplicate disk.

After connecting, verify the session, disk identity, partition state and persistence across reboot. Never initialize or format a disk merely because Windows shows it as new. First confirm with the storage administrator that the disk is the expected resource.

Windows iSCSI Initiator Frequently Asked Questions

Is iSCSI Initiator built into Windows Server?

Yes. Windows Server includes Microsoft iSCSI Initiator and an iSCSI PowerShell module.

How do I make the connection persistent?

Set the MSiSCSI service to start automatically and connect with the persistent option enabled.

Why is the LUN not visible in File Explorer?

A new disk must be brought online, initialized, partitioned, formatted and assigned a drive letter before it appears in File Explorer.

Why does CHAP login fail?

Check the initiator IQN ACL, username, secret, authentication mode and LUN mapping. Remove accidental spaces and confirm both sides use identical credentials.

Microsoft references

See the Microsoft iSCSI PowerShell module and Connect-IscsiTarget reference for current parameters and examples.