Configurie using Powershell
Posted: Sat May 05, 2018 8:24 am
Hello!
I am new to VSAN Free, and I try simply to connect to serrver using PowerShell:
Import-Module StarWindX
$server = New-SWServer 127.0.0.1 3261 root starwind
$server.Connect()
Output is
StarWindX doesn't support current appartment. You need to run this script with
-STA switch to use StarWindX.
... and other errors
When I do PowerShell -NoExit -STA D:\Connect.ps1
Output is
The term ' New-SWServer' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At D:\Connect.ps1:3 char:26
+ $server = New-SWServer <<<< -host 127.0.0.1 -port 3261 -user root -passwo
rd starwind
+ CategoryInfo : ObjectNotFound: (New-SWServer) [], Com
mandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Exception You cannot call a method on a null-valued expression.
What I am doing wrong?
I am new to VSAN Free, and I try simply to connect to serrver using PowerShell:
Import-Module StarWindX
$server = New-SWServer 127.0.0.1 3261 root starwind
$server.Connect()
Output is
StarWindX doesn't support current appartment. You need to run this script with
-STA switch to use StarWindX.
... and other errors
When I do PowerShell -NoExit -STA D:\Connect.ps1
Output is
The term ' New-SWServer' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At D:\Connect.ps1:3 char:26
+ $server = New-SWServer <<<< -host 127.0.0.1 -port 3261 -user root -passwo
rd starwind
+ CategoryInfo : ObjectNotFound: (New-SWServer) [], Com
mandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Exception You cannot call a method on a null-valued expression.
What I am doing wrong?