Examples/Sample_ciSCSIInitiator.ps1
configuration Sample_ciSCSIInitiator { Param ( [String] $NodeName = 'LocalHost' ) Import-DscResource -Module ciSCSI Node $NodeName { Service iSCSIService { Name = 'MSiSCSI' StartupType = 'Automatic' State = 'Running' } ciSCSIInitiator iSCSIInitiator { Ensure = 'Present' NodeAddress = 'iqn.1991-05.com.microsoft:fileserver01-cluster-target' TargetPortalAddress = '192.168.128.10' InitiatorPortalAddress = '192.168.128.20' IsPersistent = $true iSNSServer = 'isns.contoso.com' DependsOn = "[Service]iSCSIService" } # End of ciSCSIInitiator Resource } # End of Node } # End of Configuration |