Page 1 of 1
PowerShell cmdlets for StarWind
Posted: Tue Jun 06, 2017 5:42 pm
by miguel_
Hi,
I have StarWind free edition and not have management console.
Need I install some package for admin the StarWind with PowerShell?
Which are the ps basic cmdlets for StarWind?.
Best Regards,
Re: PowerShell cmdlets for StarWind
Posted: Fri Jun 09, 2017 8:06 pm
by Ivan (staff)
Hello miguel_,
Thanks for your interest in StarWind solution
All available information you can find in StarWindX folder C:\Program Files\StarWind Software\StarWind\StarWindX\Help
Yes, you need to install StarWindX Integration Component Library (PowerShell Management Library) in StarWind Installation Wizard to manage StarWind via PowerShell.
Re: PowerShell cmdlets for StarWind
Posted: Wed Jul 26, 2017 12:15 am
by miguel_
I can“t find the cmdlets in that help.

- Starwind-ServsNotConnected
- Starwind-ServsNotConnected.png (7.12 KiB) Viewed 21427 times
How I can connect the server with powershell?.
Re: PowerShell cmdlets for StarWind
Posted: Wed Jul 26, 2017 2:48 pm
by Ivan (staff)
Hello Miguel,
Thanks for your reply.
If your StarWind management console still exists it is enough to click "Connect" in the console.
In PowerShell scripts you can see strings below:
Code: Select all
Import-Module StarWindX
$server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
try
{
#Connection
$server.Connect()
}
catch
{
Write-Host "Exception $($_.Exception.Message)" -foreground red
}
finally
{
if ( $server.Connected )
{
$server.Disconnect()
}
}
That's means to perform the script we need to connect to StarWind service via loopback (local) or to the partner node performing any commands (which is supported in StarWindX) and disconnect from service.
StarWind management console is connecting to StarWind vSAN service via the different way. It means StarWind console and StarWindX is independent of each other.
Re: PowerShell cmdlets for StarWind
Posted: Thu Sep 14, 2017 12:18 pm
by diego
Hi,
I have the free version and my licence is expired
and my both server was disconnected
the managment consol is present but if try to click to connect one of my server i have this message " "the trial priod has expired you can continue managing starwind with powershell"
How I can connect again the server with powershell? witch cmdlet ?
thank you
Re: PowerShell cmdlets for StarWind
Posted: Thu Sep 14, 2017 4:08 pm
by Sergey (staff)
Hello, Diego! You can connect to the server with the following commands:
Code: Select all
Import-Module StarWindX
$server = New-SWServer 127.0.0.1 3261 root starwind
$server.Connect()
StarWindX module is part of StarWind installation package.