Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Get-GPPGroupMember returns Deserialize-GPPSectionGroups.ps1 errors in 0.3.0 #34

Closed
Borgquite opened this issue Apr 26, 2022 · 2 comments

Comments

@Borgquite
Copy link
Contributor

Having installed 0.3.0:

New-GPO "Test GPO"
$newmember = New-GPPGroupMember -Name "NETBIOSNAME\Domain Admins" -Action ADD
New-GPPGroup -GPOName "Test GPO" -Update -Name "Administrators" -Members $newmember
Get-GPPGroupMember -GPOName "Test GPO" -GroupName "Administrators" -Name "NETBIOSNAME\Domain Admins"

Cannot find an overload for "new" and the argument count: "4".
At C:\Program Files\WindowsPowerShell\Modules\PSGPPreferences\0.3.0\Serialization\Groups\Deserialize-GPPSectionGroups.ps1:57 char:17

  • ... $GroupsMembers.Add([GPPItemGroup]::new($GPPItemProperties ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodCountCouldNotFindBest

Same error also occurs if you run New-GPPGroup again after that:

New-GPPGroup -GPOName "Test GPO" -Update -Name "Administrators" -Members $newmember

Cannot find an overload for "new" and the argument count: "4".
At C:\Program Files\WindowsPowerShell\Modules\PSGPPreferences\0.3.0\Serialization\Groups\Deserialize-GPPSectionGroups.ps1:57 char:17

  • ... $GroupsMembers.Add([GPPItemGroup]::new($GPPItemProperties ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodException
    • FullyQualifiedErrorId : MethodCountCouldNotFindBest

Can you fix? :)

@exchange12rocks
Copy link
Owner

Oops, not all changes for #29 got into that commit 🤦‍♂️
I am sorry. Should be all right with v.0.3.1 - already in the gallery

@Borgquite
Copy link
Contributor Author

Seems to be working :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants