Office 365 : Turn Off Directory Synchronization

Posted on Updated on

You can use powershell to turn off directory synchronization between AD-Onpremises and Office 365.

To turn off directory synchronization :

Open Windows Azure Active Directory Module for Windows Powershell ( first, you need to install, you can download it, refer to this following link https://technet.microsoft.com/en-us/library/dn975125.aspx ).

Connect to Office 365 Powershell, Type Credential user & password Office 365 :

$UserCredential = Get-Credential

Import session Msolservice and type credential user & password office 365 :


And run this command to turn off dirsync :

Set-MsolDirSyncEnabled -EnableDirSync $false


Reference : https://support.office.com/en-us/article/Turn-off-directory-synchronization-for-Office-365-ee5f861e-bd48-4267-83d1-a4ead4b4a00d


Azure AD Connect Sync : Change Default Configuration Sync Interval Time

Posted on

By default sync interval time between ad-onpremises & office 365 is 30 minutes.

you can custome sync interval time use this command :

Set-ADSyncScheduler -CustomizedSyncCycleInterval 00:00:01

note : in this case i want sync interval time 1 second

now you can check use this command Get-ADSyncScheduler

Use Powershell to Add Multiple DHCP Scope

Posted on

This article will describe how to create multiple dhcp scope on dhcp server using powershell with csv.

Create CSV file, example :


after you created csv file, for example my csv file name is scope.csv.

run this command :

Import-Csv –Path C:\scope.csv | Add-DhcpServerv4Scope -ComputerName SERVERDHCP -State Active

Good luck




How to Know The Name and IP Address for Domain Controller on Your Organization

Posted on

Actually this article very easy, but sometime someone need this to know list of domain controller on his organization.

You can use nslookup in command-line, let’s do this :

Type Windows + R

Type cmd

Type nslookup, and than press Enter

Type set type=all, and than press Enter

Type _ldap._tcp.dc._msdcs.Domainname, where Domainname is the name of your domain, and than press Enter.

Enable Self Service Password Reset in Office 365

Posted on

By default user in office 365 can not change password, change password can execute by administrator.

This article will describe how to enable change password for user in office 365.

Go to Office 365 admin center, choose Azure Active Directory, klik your organization name klik configure.

Then enable for password reset like this picture.


How to Add Multiple Distribution List with Bulk Import in Office 365

Posted on

In office 365 admin not provided to add multiple group like add multiple user using csv.

But if you required to do it you can use Windows Azure Active Directory Module for Windows PowerShell. First you need to download it. refer to this following link : https://technet.microsoft.com/en-us/library/dn975125.aspx .


after download windows azure active directory module for windows powershell run this command :

Type Credential user & password Office 365 :

$UserCredential = Get-Credential

Type for session Exchange Online :
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import Session exchange online :
Import-PSSession $Session

Run this command to create multiple group :

Import-Csv “D:\DistributionList.csv” | Foreach {New-DistributionGroup -Name $_.name -DisplayName $_.DisplayName -Alias $_.Alias -PrimarySMTPAddress $_.PrimarySMTPAddress -Type $_.Type}

Windows 10 computers showing on WSUS Server 2012 R2 as Windows Vista

Posted on Updated on

two weeks ago i implemented WSUS windows server 2012 R2 at my customer.

after finish process installation, windows 10 on WSUS server show as windows vista.

then i research and after read this article https://support.microsoft.com/en-us/kb/3095113 i can solve this problem.

“This update also fixes an issue in which Windows 10-based computers are displayed as “Windows Vista” on Windows Server 2012 R2 or Windows Server 2012″

you need to install update from microsoft.


after install update, you can solve the problem.