New-IscsiServerTarget : Unable to connect to the computer

Anonymous
2025-02-23T00:42:10+00:00

I am trying to create an iSCSI Target Server in Windows Server 2025 Core (no GUI) which in running as a VM on Hyper-V.

My VM has 10 disks attached which I will further want to use as target disks.

But I am stuck at this step

PS C:\Users\Administrator> New-IscsiServerTarget -TargetName "RACStorage" -InitiatorId @("IPAddress:192.168.100.3","IPAddress:192.168.100.4")

New-IscsiServerTarget : Unable to connect to the computer.

At line:1 char:1

  • New-IscsiServerTarget -TargetName "RACStorage" -InitiatorId @("IPAddr ...
  • 
        + CategoryInfo          : InvalidArgument: (Microsoft.Iscsi...rd errorRecord):IscsiCmdException) [New-IscsiServerTarget], IscsiCmdException 
    
        + FullyQualifiedErrorId : Utility\_ConnectionScopeInvalidComputerName,Microsoft.Iscsi.Target.Commands.NewIscsiServerTargetCommand
    
    

which is ran inside the VM.
How can I resolve this?

The role is installed

PS C:\Users\Administrator> Get-WindowsFeature fs-iscsitarget-server

Display Name Name Install State


    [X] iSCSI Target Server                         FS-iSCSITarget-Server          Installed
Windows Server High availability Virtualization and Hyper-V

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2025-02-23T01:11:40+00:00

    Figured it out: my computer name was larger than 15 characters. That is why

    Unable to connect to the computer

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-02-24T07:37:16+00:00

    Hi Octavian-Codrut Popescu,

    Windows Client for IT Pros and Windows Server forums are moving to Microsoft Q&A

    We’re transitioning to Microsoft Q&A for a more streamlined experience. Starting 24 February*, new questions can only be posted on* Microsoft Q&A. Existing discussions will remain accessible here.

    From the 26 Februarycustomers looking for support on Answers will be automatically redirected to Microsoft Q&A.

    0 comments No comments
  2. Anonymous
    2025-02-24T07:51:18+00:00

    I already answered my own question.

    0 comments No comments