Users

All Posts (6)

avatar

ana_rodrigues

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

Tkank You Maxime,

I was testing, how can I validate that you got isMember = $false?

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

Hello Maxime,

Thank you for the help.

To unlock it at this point, I saw that the Get-RDMLicense command returns the users object with all users assigned to a certain license. Will setting IsMember = false resolve the issue?

Another question is how can I get the user's last login date with RDM cmdlets. That is, replacing this part:

# Find inactive users

$now = Get-Date

$userResponse = Get-DSUser

$inactiveUsers = $userResponse.Data | Where -Property LastLoginDate -ne $null | Where { (New-TimeSpan -Start $_.LastLoginDate -End $now).Days -gt $inactiveDays }

$inactiveUserIDs = $inactiveUsers | Select -ExpandProperty ID

Best regards,

Ana

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

Hello Maxime,

Do you have news for me?

Best regards,

Ana

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

Hello Maxime,

Thank you for your help.

Can you give the same example using the RDM cmdlets?

Best regards,

Ana

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

Hello Maxime,

I using the Devolutions Server data source.

I tried using the Devolutions.PowerShell module but I was unsuccessful. I didn't understand from the documentation how to do it.

Best regards,

Ana

Remove user license by PowerShell script

avatar
avatar
avatar
avatar

How to check if the user has not had an active session for more than 90 days and remove the license for these users?

I need to do this by PowerShell script.

Thank you for your help!

1 - 6 of 6 items