Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.
#Set Error Action to Silently Continue $ErrorActionPreference = "SilentlyContinue" #Log File Info $sLogPath = "C:\Windows\Temp" $sLogName = "Write_PA_PasswordPolicy.log" $sLogFile = Join-Path -Path $sLogPath -ChildPath $sLogName $Error.Clear() Import-Module ActiveDirectory $OU1 = 'OU=SecTest,OU=Priviledged_Access,OU=_Users,DC=test,DC=org' $SecGroup = (Get-ADGroup -Identity 'PrivilegedUserPasswordPolicy').DistinguishedName Get-ADUser –SearchBase $OU1 –LDAPFilter "(&(objectCategory=person)(objectClass=user)(!(memberOf=$SecGroup)))" | Add-ADPrincipalGroupMembership –MemberOf $SecGroup #Log Error $Error | Out-file $sLogFile -Append
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.