Hey,
In addition to mentioned above, you can use powershell to work with the iSCSI targets. The following guide should help: https://www.starwindsoftware.com/blog/dont-break-your-fingers-with-hundreds-of-clicks-automate-windows-iscsi-connections
Cheers,
Alex Bykovskyi
StarWind Software
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.