Skip to content

Commit 5423bcf

Browse files
committed
Simple example to get started
1 parent d72f5f5 commit 5423bcf

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,18 @@
22

33
# NetScaler
44
PowerShell module for interacting with Citrix NetScaler via the Nitro API
5+
6+
# Getting started
7+
8+
This script establishes a session with the Netscaler instance and sets its hostname:
9+
10+
$Nsip, $Username, $Password = "1.2.3.4", "nsroot", "nsroot"
11+
12+
$SecurePassword = ConvertTo-SecureString $Password -AsPlainText -Force
13+
$Credential = New-Object System.Management.Automation.PSCredential ($Username, $SecurePassword)
14+
15+
$Session = Connect-Netscaler -Hostname $Nsip -Credential $Credential -PassThru
16+
17+
Set-NSHostname -Hostname ns01 -Force -Session $Session
18+
19+
# ...

0 commit comments

Comments
 (0)