rstolpe / DeleteUserProfile

This module will let you show all of the user profiles that are saved on a local or remote computer, you can also delete one specific user profile or all of the profiles. You can also return the user profiles from multiple computers at the same time.
https://www.powershellgallery.com/packages/DeleteUserProfile
MIT License
8 stars 2 forks source link

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

Open resolve-apm opened 4 months ago

resolve-apm commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

Hi, still the same error message, no difference when using the preview.

rstolpe commented 4 months ago

@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 commented 4 months ago

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 https://github.com/rstolpe/DeleteUserProfile/issues/39#issuecomment-2110421604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUTQX22RCMEDUBVMRH3WDW3ZCIO23AVCNFSM6AAAAABHVM73WWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGQZDCNRQGQ . You are receiving this because you were mentioned.Message ID: @.***>

rstolpe commented 4 months ago

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

https://github.com/rstolpe/DeleteUserProfile/issues/39#issuecomment-2110421604,

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 commented 4 months ago

Any progress?