Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

LastLogon using PowerShell

Get-ADUser -Filter {Enabled -eq $true} -Properties Name,Manager,LastLogon,DistinguishedName | Select-Object Name,samAccountName,DistinguishedName,@{n='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon).ToString('g')}} | Export-Csv -NoTypeInformation -Path...

Date time showing   instead of space

CSV opened in Excel is showing   instead of a space between the DateTime and the period (am / pm) That is because it is being opened in Excel using CP-1252 instead of UTF-8 and thus rendering the NARROW NO-BREAK SPACE incorrectly...

SYSVOL Stopped Syncing to the other Domain Controllers

I had 2 Domain controllers that stopped replicating their SYSVOL to each other. These are some of the commands used to understand what is happening and then to get it working again. Learnings Edit your Group Policies on the PDC / Operations Master (see the netdom...

Window XP – TimeZones – 1 Hour Out

Today I had to go old school. Problem: Windows XP time 1 hour out. The user changes it to the correct time but it keeps resetting to the wrong time. Cause: Operating System (Windows XP) is so old that it no longer gets Time Zone updates so it had the wrong Daylight...