Latest Event Updates

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 ).

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 :

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.

Certification Authority Web Enrollment Configuration Failed 0x80070057

Posted on

Yesterday i want install CA Web Enrollment after migrating or restoring CA, but i got error when configuring process like this :

Certification Authority Web Enrollment: Configuration Failed
Active Directory Certificate Services setup failed with the following error: The parameter is incorrect. 0x80070057 (WIN32: 87)


Root Cause :
The likely issue is that the value of SetupStatus at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration is configured to hexidecimal 6003, but should be configured to hexidecimal 6001. This is because 6003 indicates that CA Web Enrollment is already installed and 6001 indicates that it is not yet installed.

Solution :

Modify the registry SetupStatus to read 6001 and then install CA Web Enrollment. You can modify that registry setting with the following certutil command from Windows PowerShell or a command prompt run as Administrator:
certutil -setreg config\setupstatus 0x6001


Reference :

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 : .


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 -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 $ -DisplayName $_.DisplayName -Alias $_.Alias -PrimarySMTPAddress $_.PrimarySMTPAddress -Type $_.Type}