netsh dhcp server export c:\dhcp.txt all
netsh dhcp server import c:\dhcp.txt all
Unauthorizing a DHCP Server:
Thursday, 20 December 2018
How to Use PowerShell ISE to Trigger a Full Password Sync in Azure AD Sync
$adConnector =
"xxx.com"
$aadConnector =
"xxx.com.my - AAD"
Import-Module adsync
$c =
Get-ADSyncConnector -Name
$adConnector
$p =
New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter
"Microsoft.Synchronize.ForceFullPasswordSync", String, ConnectorGlobal, $null, $null, $null
$p.Value = 1
$c.GlobalParameters.Remove($p.Name)
$c.GlobalParameters.Add($p)
$c =
Add-ADSyncConnector -Connector
$c
Set-ADSyncAADPasswordSyncConfiguration -SourceConnector
$adConnector -TargetConnector
$aadConnector -Enable
$false
Set-ADSyncAADPasswordSyncConfiguration -SourceConnector
$adConnector -TargetConnector
$aadConnector -Enable
$true
Wednesday, 19 December 2018
Azure AD Connect
Connect with the Microsoft Azure Active Directory Module for Windows PowerShell:
Windows PowerShell Version Check:
$psversiontable
Install required software:
Install-Module MSOnline
Creates a credential
object:
$cred = Get-Credential
$cred = Get-Credential
Connect to all Office
365 services:
Connect-MsolService -Credential $cred
Connect-MsolService -Credential $cred
Gets company-level information:
Get-MsolCompanyInformation
Stop the scheduler:
Stop-ADSyncSyncCycle
Turn off directory synchronization:
Set-MsolDirSyncEnabled -EnableDirsync $false
See Scheduler configuration:
Get-ADSyncScheduler
Start the scheduler:
The scheduler is by default run every 30 minutes, It could be that you have an urgent change that must be synchronized immediately.
Delta sync cycle:
Start-ADSyncSyncCycle -PolicyType Delta
Full sync cycle:
Start-ADSyncSyncCycle -PolicyType Initial
Turn on directory
synchronization:
Set-MsolDirSyncEnabled -EnableDirSync $true
Set-MsolDirSyncEnabled -EnableDirSync $true
Gets the directory synchronization settings:
When installing Azure AD Connect, prevent accidental deletes is enabled by default and configured to not allow an export with more than 500 deletes.
Get-MsolDirSyncConfiguration
Gets the status of identity synchronization features for a tenant:
Get-MsolDirSyncFeature
Azure AD Connect: Automatic upgrade:
Making sure your Azure AD Connect installation is always up to date.
Set-ADSyncAutoUpgrade
-AutoUpgradeState Enabled
Thursday, 29 November 2018
Subnet Mask Cheat Sheet
|
Addresses
|
Hosts
|
Netmask
|
Amount of a Class C
|
/30
|
4
|
2
|
255.255.255.252
|
1/64
|
/29
|
8
|
6
|
255.255.255.248
|
1/32
|
/28
|
16
|
14
|
255.255.255.240
|
1/16
|
/27
|
32
|
30
|
255.255.255.224
|
1/8
|
/26
|
64
|
62
|
255.255.255.192
|
1/4
|
/25
|
128
|
126
|
255.255.255.128
|
1/2
|
/24
|
256
|
254
|
255.255.255.0
|
1
|
/23
|
512
|
510
|
255.255.254.0
|
2
|
/22
|
1024
|
1022
|
255.255.252.0
|
4
|
/21
|
2048
|
2046
|
255.255.248.0
|
8
|
/20
|
4096
|
4094
|
255.255.240.0
|
16
|
/19
|
8192
|
8190
|
255.255.224.0
|
32
|
/18
|
16384
|
16382
|
255.255.192.0
|
64
|
/17
|
32768
|
32766
|
255.255.128.0
|
128
|
/16
|
65536
|
65534
|
255.255.0.0
|
256
|
Subscribe to:
Posts (Atom)