This might be useful when serving file downloads or uploads using PHP.
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 IIS) in such case. It simply resets client connection…
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.
This one was little bit tricky. If you want to pack files on your IIS webserver follow my guide. Continue reading How to pack directory using 7-zip in PHP on Windows?
In this post I’ll show you how to configure Pushover with Windows server. In this specific case it will notify you when someone logs onto your machine. Continue reading How to setup pushover alert on logon event in Windows
There is a command line tool called netdom. Unfortunately it’s not preinstalled on Windows 7. This guide will show how to add this tool to your system and how to change remote computer name.
If you have two interfaces, you can run programs using one of them (despite the fact that Windows selects default interface based on a metric value). For example I virtualize Windows 7 and I need same static ip for it that my host computer uses. It’s OK, in this scenario I can run applications using Virtualbox NAT (this virtual adapter ip is something like 10.0.2.15). But I’m also a Heroes III gamer and I love to play with my coleagues using LAN. So there is need for a second adapter in bridged mode (with ip like 192.168.x.x).
What can I do?
Amazingly there is a Windows application that can do that. Simply download ForceBindIP from this site.
Usage is simple as that:
ForceBindIp -i 10.0.2.15 c:\Windows\System32\mstsc.exe
10.0.2.15 – interface ip
Remember to pass full path for a program that you’re trying to run!