Browsed by
Tag: PowerShell

QuickTip: Azure Active Directory Connect – Re-enable Automatic Sync Schedule

QuickTip: Azure Active Directory Connect – Re-enable Automatic Sync Schedule

TwitterFacebook0LinkedinGoogle+0emailSometimes performing an upgrade of Azure Active Directory Connect (AADC) will disable the automatic synchronization schedule. Don’t get caught off guard! Running the following in PowerShell can save you some grief. To verify the existing sync settings, use this cmdlet- Get-ADSyncScheduler Note that SyncCycleEnabled is showing as False. 2. To enable the sync cycle schedule, use this cmdlet- Set-ADSyncScheduler -SyncCycleEnabled $true 3. Verify that your settings have taken effect by running the original cmdlet- Get-ADSyncScheduler Now the SyncCycleEnabled setting shows…

Read More Read More

QuickTip: PowerShell – Get the Last Boot Time for a Remote Computer

QuickTip: PowerShell – Get the Last Boot Time for a Remote Computer

TwitterFacebook0LinkedinGoogle+0emailLet’s say that you want to check the last boot time for a remote computer. Try using this PowerShell command. Get-WmiObject -class Win32_OperatingSystem -computer joe-7 | Select-Object __SERVER,@{label=’LastBootUpTime’;expression={$_.ConvertToDateTime($_.LastBootUpTime)}} TwitterFacebook0LinkedinGoogle+0email