This short tutorial will show you how to create a shortcut to run machine in headless mode (on Windows).
Category: Windows
Show a popup message on remote computer
Use this method to show message to logged user on remote computer:
psexec64 -s /user:domain\user -i \\[remote_computer] cmd /c "msg * < \\[computer]\share\message.txt"
Message from shared text file will be outputted on remote computer.

Use Powershell to periodically cleanup temporary dirs
Simple code snippet to cleanup files older than n days.
Continue reading Use Powershell to periodically cleanup temporary dirsHow to use psexec to remotely change DNS server?
This tutorial will guide you through the commands to change DNS remotely.
Continue reading How to use psexec to remotely change DNS server?How to install network printer on remote Windows host?
And once again use psexec…
psexec64 -s /user:domain\user -i \\REMOTE_COMPUTER "rundll32 printui.dll,PrintUIEntry /in /n\\SERVER\PRINTER"
Voilà!
How to silently deploy Chrome on a remote host?
Here you’ll find complete instruction how to deploy Chrome on one remote host at once in Windows environment.
Continue reading How to silently deploy Chrome on a remote host?
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 😀
Check time
psexec64 -s /user:domain\user -i \\remote_ip cmd /c time /t
Will output:
11:18
And remember good IT specialist is lazy specialist! Do not go anywhere! Eat ya buritos.
How to change priority on Windows scheduled task using Powershell?
By default Windows setups task priority in scheduler to 7 (which is kinda low). The side effect of this is that for eg. backups are taking very long to take. In my case all databases were backed up in about 40-50 minutes…
Continue reading How to change priority on Windows scheduled task using Powershell?
How to force https on IIS webiste?
Edit web.config file in your website directory and carefully add this lines (remember to change domain name): Continue reading How to force https on IIS webiste?
Parse logs for Matomo (Piwik) on Windows [using Powershell]
Automatic log parsing on Windows machines fot Matomo (Piwik).
Once again, thanks to: Adrian Ligiewicz (aka the Master of Powershell)
Continue reading Parse logs for Matomo (Piwik) on Windows [using Powershell]