Category: Administration
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…
Backup script for PostgreSQL with zip support 2.0 [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.
Backup script for PostgreSQL with zip support (Windows)
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 😛 @echo off […]
How to install fonts on Windows remotely
This guide will show you how to install fonts on remote machine using PsExec.
How to get rid of :Zone.Identifier files
Everyone who uses Windows inside Virtualbox on Linux machine (and shares host folders) knows this problem.
How to find network device using it’s manufacturer name?
I’ve previously posted a note about finding Raspberry Pi without knowing it’s ip address. Well, basically it’s the same… Only you need to change MAC prefix to find other manufacturer. To wrap this is up, this is a command to find device by MAC prefix: sudo nmap -sP 192.168.100.0/24 | awk ‘/^Nmap/{ip=$NF}/00:D0:23/{print ip}’ And here […]
PHP reading problem with files larger than 2 GB
If you’ll ever have problem with opening (fopen) and reading (fread) files larger than 2 GB in your PHP script. Check your version of scripting engine. In my case switching to 64 bit solved the problem. Please mind that this error is very hard to debug because PHP does not log anything (same as MS […]
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.
How to scan your network for WannaCry vulnerability (SMBv1 MS17-010)?
This tutorial is for Linux systems, especially Debian derivatives.
How to view two logs in one window?
In this example I will show you how to view Yii framework based app log and MySQl queries, both in realtime.