Applies To:
GroupID 9 and above – GroupID Management Shell
Business Scenario:
In our organization, users manage their groups via GroupID Management Shell. For this, users need access to the GroupID server; however, this is something we want to avoid. Is there a way to create a remote connection to GroupID Management Shell via PowerShell?
Solution:
It is possible to create a remote session to GroupID Management Shell via PowerShell.
Steps:
Follow these steps to make GroupID Management Shell remotely available to perform different tasks.
-
Open Windows PowerShell ISE.
-
Click File > New to open a new scriptwriter.
- Type the following script and provide the necessary credentials.
$username = "DOMAIN\USERNAME"
$pass = ConvertTo-SecureString "PASSWORD" -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential ($username, $pass)
$scriptBlock = [Scriptblock]::Create("add-pssnapin -Name
Imanami.groups.management.powershell.admin10")
$s = New-PSSession -ComputerName "YOUR MACHINE NAME HERE" -Credential $Cred
Invoke-Command -Session $s -ScriptBlock $scriptBlock
Invoke-Command -Session $s -ScriptBlock { Add-Type -LiteralPath 'C:\Program
Files\Imanami\GroupID 10.0\Nest.dll'}
Import-PSSession -Session $s -Type cmdlet -AllowClobber
Connect-IdentityStore -mode "2" -IdentityStoreID "1" -Credential $Cred -
Run the script.
- Once the script has run, a remote session will be created. Now, all the GroupID cmdlets will be available to be executed through Windows PowerShell without the need of signing in to the GroupID server.
Note: | In case you run into problems, contact support@imanami.com. |