Add-GroupMembers 2.0.1 doesnt like VSA names

Issue #177 resolved
Anonymous created an issue
PS C:\TFS\Main\Shared\Carbon-2.0.1\Carbon> Add-GroupMember -Name "Administrators" -Member "NT SERVICE\fax"
New-Object : Exception calling ".ctor" with "2" argument(s): "Server names cannot contain a space character."
At C:\TFS\Main\Shared\Carbon-2.0.1\Carbon\Functions\Get-IdentityPrincipalContext.ps1:43 char:5
+     New-Object 'DirectoryServices.AccountManagement.PrincipalContext' $ctxType,$ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Comments (4)

  1. Log in to comment