Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Paramater cannot be found that matches parameter name 'Exclude' #39

Open
resolve-apm opened this issue May 14, 2024 · 6 comments
Open

Comments

@resolve-apm
Copy link

Recently deployed the module, functions fine during testing to get all profiles however receiving the error: A parameter cannot be found that matches parameter name 'Exclude'.

Get-RSUserProfile -Exclude "TestUser", -All

Known issue?

@rstolpe
Copy link
Owner

rstolpe commented May 14, 2024

@resolve-apm
Hi,
I have added a pre-release now that should work. Please try it out.

To install it uninstall the old module first.

Uninstall-Module -Name "DeleteUserProfile" -Force

Then install the dependency module, it's req for the new version.

Install-Module -Name "rsServiceModule" -Scope AllUsers -Force

Then install the pre-release module

Install-Module -Name "DeleteUserProfile" -Scope AllUsers -AllowPrerelease -Force

Please confirm if it's working for you or not, I did just fix it up quickly and did a run with it.

@resolve-apm
Copy link
Author

resolve-apm commented May 14, 2024 via email

@rstolpe
Copy link
Owner

rstolpe commented May 14, 2024

@resolve-apm have you restarted all of your PS windows after? To make sure that the old version are not cached or something in your PS session?

Also can you provide step by step how you doing it?
So I can try to reproduce it.

@resolve-apm
Copy link
Author

resolve-apm commented May 14, 2024 via email

@rstolpe
Copy link
Owner

rstolpe commented May 15, 2024

Win Server 2019 - Datacenter, with RDS Member role.

Run PS7 as admin

Uninstall-Module -Name "DeleteUserProfile" -Force

Uninstall-Module -Name "rsServiceModule" -Force

Get-PSSession | Disconnect-PSSession

Run PS7 as admin

Install-Module -Name "rsServiceModule" -Scope AllUsers -Force

Install-Module -Name "DeleteUserProfile" -Scope AllUsers -AllowPrerelease

-Force

Get-RSUserProfile -Exclude "USERNAME", -All

Get-RSUserProfile: A parameter cannot be found that matches parameter name

'Exclude'.

On Wed, 15 May 2024 at 02:39, Robin Stolpe @.***> wrote:

@resolve-apm https://github.com/resolve-apm have you restarted all of

your PS windows after? To make sure that the old version are not cached or

something in your PS session?

Also can you provide step by step how you doing it?

So I can try to reproduce it.

Reply to this email directly, view it on GitHub

#39 (comment),

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AUTQX22RCMEDUBVMRH3WDW3ZCIO23AVCNFSM6AAAAABHVM73WWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGQZDCNRQGQ

.

You are receiving this because you were mentioned.Message ID:

@.***>

I can reproduce it now, I'll take a look at it during the day.

@resolve-apm
Copy link
Author

Any progress?

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

No branches or pull requests

2 participants