Find a User with certain SID.

Hi, Powershell is the way. Open powershell and type: import-module activedirectory  Then. $strSID=”Enter SID Here” $uSid = [ADSI]”LDAP://<SID=$strSID>” echo $uSid Have a nice one,

Continue Reading Find a User with certain SID.

How to find computers with a name starting with something and add them to a security group.

Dou, that was a long sentence πŸ™‚ But here is how. $computers = get-adcomputer -ldapfilter “(name=name*)” $computers | foreach {Add-ADGroupMember -id name_of_the_group -MEMBERS $computers.samaccountname} Happy powershelling!

Continue Reading How to find computers with a name starting with something and add them to a security group.

Get all user lisences from Office 365 to csv.

Hi, Today I had to get a list from Office 365 with UserPrincipalName and MsolAccountSku. So here is the trick-script. $ReportPath = “c:userlist.csv” Add-Content -value (“UserPrincipalName”+”,”+”IsLicensed”+”,”+ “Licenses”) -Path $ReportPath $AllUsers = Get-MsolUser -All foreach ($User in $AllUsers) {  $UserPrincipalName =…

Continue Reading Get all user lisences from Office 365 to csv.

Enable or Disable Trace Logging in Dirsync and Azure AD Connect.

 The following page has all is needed. Steps to Enable Debug Tracing for Microsoft Online Services Sign-In Assistant Steps to Disable Debug Tracing for Microsoft Online Services Sign-In Assistant   http://social.technet.microsoft.com/wiki/contents/articles/18103.microsoft-online-services-sign-in-assistant-how-to-enable-debug-tracing.aspx

Continue Reading Enable or Disable Trace Logging in Dirsync and Azure AD Connect.

Missed calls not showing in conversation history.

Today I figured out why Outlook 2010 and 2013 doesn’t display this information anymore. Missed conversations and pstn-calls that the user calls out still work fine. To get it working again uninstall these updates: KB3101496 KB3114502 KB3114351 And it’s working again….

Continue Reading Missed calls not showing in conversation history.

Add all licensed users to a Mail Enabled Security Group and then assign permissions to RecipientType.

Yesterday I had to add all licensed users to a Mail Enabled Security Group and then add that group to Room, Equipment and user mailboxes with desired permissions. To add all Licensed users to a group: $users = Get-MsolUser |…

Continue Reading Add all licensed users to a Mail Enabled Security Group and then assign permissions to RecipientType.

Add a Forest Level Trust.

It has been a long time since I had to configure forest level trusts. But thank you Google. Here’s an excellent article: http://blogs.interfacett.com/how-to-configure-forest-level-trust-in-windows-server Cheers,

Continue Reading Add a Forest Level Trust.

Force Full Password Sync with AAD Connect.

I think this was easier with Dirsync, but that product is history. Open Powershell as Administrator and modify this Powershell script: $Local = “Domain.local” $Remote = “tenant.onmicrosoft.com – AAD” #Import Azure Directory Sync Module to Powershell Import-Module AdSync $OnPremConnector =…

Continue Reading Force Full Password Sync with AAD Connect.

Remove SMTP address for a specific domain from all mailboxes.

Here is a handy script to remove obsolete proxyaddresses from all mailboxes. foreach($i in Get-Mailbox -ResultSize Unlimited) { γ€€ $i.EmailAddresses | γ€€γ€€γ€€ ?{$_.AddressString -like ‘*@domain.com’} | %{ γ€€γ€€γ€€γ€€γ€€ Set-Mailbox $i -EmailAddresses @{remove=$_} γ€€γ€€γ€€ } } Just replace the domain.com with…

Continue Reading Remove SMTP address for a specific domain from all mailboxes.