Code: Select all
$org = Get-VBOOrganization -Id "00000000-0000-0000-0000-000000000000"
$licensedUser = Get-VBOLicensedUser -Organization $org -Name "Test User"
Remove-VBOLicensedUser -User $licensedUser
Code: Select all
$org = Get-VBOOrganization -Id "00000000-0000-0000-0000-000000000000"
$licensedUser = Get-VBOLicensedUser -Organization $org -Name "Test User"
Remove-VBOLicensedUser -User $licensedUser
Code: Select all
PS > Get-VBOOrganization -Id 'b23*'
Id Name Type IsBackedUp
-- ---- ---- ----------
b23* veeamse.onmicrosoft.com Office365 True
PS > $org = Get-VBOOrganization -Id 'b23*'
PS > Get-VBOLicensedUser -Organization $org
UserName LastBackupDate LicenseState OrganizationName
-------- -------------- ------------ ----------------
VEEAMSE0@veeamse.onmicrosoft.com 4/25/2019 6:02:48 AM Licensed veeamse.onmicrosoft.com
VEEAMSE1@veeamse.onmicrosoft.com 4/25/2019 6:02:48 AM Licensed veeamse.onmicrosoft.com
VEEAMSE2@veeamse.onmicrosoft.com 4/25/2019 6:02:48 AM Licensed veeamse.onmicrosoft.com
VEEAMSE3@veeamse.onmicrosoft.com 4/25/2019 6:02:48 AM Licensed veeamse.onmicrosoft.com
PS > Get-VBOLicensedUser -Organization $org -Name 'VEEAMSE0@veeamse.onmicrosoft.com'
UserName LastBackupDate LicenseState OrganizationName
-------- -------------- ------------ ----------------
VEEAMSE0@veeamse.onmicrosoft.com 4/25/2019 6:02:48 AM Licensed veeamse.onmicrosoft.com
PS > $licensedUser = Get-VBOLicensedUser -Organization $org -Name 'VEEAMSE0@veeamse.onmicrosoft.com'
Code: Select all
$org = Get-VBOOrganization -Name "Organization"
$licensedUser = Get-VBOLicensedUser -Organization $org -Name "JohnSmith@olddomain.com"
Remove-VBOLicensedUser -User $licensedUser
Code: Select all
$licensedUser = Get-VBOLicensedUser -Organization $org -Name "JohnSmith@olddomain.com"
Users browsing this forum: No registered users and 4 guests