Tag: ad
How to use psexec to remotely update machines time (from domain)?
In my previous posts you can find info how to install psexec. When you’re already done with this process, you can start updating clock settings on remote machines. Set time psexec64 -s /user:domain\user -i \\remote_ip net time \\domain_controller /set /y Will output: Bieżąca godzina na \\domain_controller to 2018-08-28 09:55:00. At least in polish Windows 😀 […]
How to count computers and users in Active Directory?
This is really quick tip (cmd commands): dsquery user -limit 10000 | find /c /i “OU=” To count users. dsquery computer -limit 10000 | find /c /i “OU=” Here you can find how to create paths.