Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Following 2 variable request IP address and port of target server.
- $targetPortalIP = read-host -Prompt "Please enter the IP address for the iSCSI target portal"
- $chapSecret = read-host -Prompt "Please enter the CHAP secret"
- #This line creates a new iSCSI target portal at the specified IP address.
- new-iscsitargetportal -TargetPortalAddress $targetPortalIP -TargetPortalPortNumber 3260 -ChapSecret $chapSecret
- #These are just making life easier- they list the available IQNs
- Write-Host ""
- Write-Host ""
- Write-Host "...and here's a list of the iSCSI targets on that machine"
- Write-Host ""
- Get-IscsiTarget | Format-List
Advertisement
Add Comment
Please, Sign In to add comment