I’m building a fleet of distributed Raspberry multimedia players and I’ve decided to start with a few terminal commands to manage them.
Let’s begin with a screenshot of current screen contents.
Continue reading Screenshot from console on Raspberry Pi
This tutorial will guide you through the commands to change DNS remotely.
Continue reading How to use psexec to remotely change DNS server?
This article will provide instructions for anyone interested in using headless Debian (or any derivatives).
Continue reading Easiest way to headless Debian
And once again use psexec…
psexec64 -s /user:domain\user -i \\REMOTE_COMPUTER "rundll32 printui.dll,PrintUIEntry /in /n\\SERVER\PRINTER"
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?
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.
psexec64 -s /user:domain\user -i \\remote_ip net time \\domain_controller /set /y
Bieżąca godzina na \\domain_controller to 2018-08-28 09:55:00.
At least in polish Windows 😀
psexec64 -s /user:domain\user -i \\remote_ip cmd /c time /t
And remember good IT specialist is lazy specialist! Do not go anywhere! Eat ya buritos.
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?
Version 2 of PostgreSQL backup script. It uses PowerShell and json file for database settings declaration.
This post was created in cooperation with Adrian Ligiewicz.
Continue reading Backup script for PostgreSQL with zip support 2.0 [using PowerShell]
Simplest solution for backing up PostgreSQL databases. With this bat file you can dump one database to a file and compress it using 7-zip.
PS. If you want a date in your filename simply add %date% var to it’s string.
PS2. Of course check your paths before complaining it does not work 😛
:: Global config
SET PG_BIN="C:\Program Files\PostgreSQL\9.6\bin\pg_dump.exe"
SET ZIP_BIN="C:\Program Files\7-Zip\7z.exe"
:: Database config for
%PG_BIN% -h %PG_HOST% -p %PG_PORT% -U %PG_USER% %PG_DATABASE% > "%PG_FILENAME%"
%ZIP_BIN% a "%PG_FILENAME:~0,-4%.zip" "%PG_FILENAME%" &DEL "%PG_FILENAME%"
@echo Backup Taken Complete %PG_PATH%%PG_FILENAME%