Run these in an administrative or SYSTEM-level command prompt.
Under 7/2008R2 and before, we can schedule for 4:00 AM tomorrow:
AT 4:00 c:\windows\system32\shutdown.exe -f -r -t 0
and we can schedule for 4:00 AM next Monday:
AT 4:00 /next:Monday c:\windows\system32\shutdown.exe -f -r -t 0
In Windows 8.1/2012R2 and later it’s a bit harder, we have to specify the actual full date in the format below:
schtasks /create /tn "schtasks_REBOOT" /tr "C:\Windows\System32\shutdown.exe -f -r -t 0" /sc once /st 04:00 /sd 01/01/2016 /ru System
8.0 and 2012R1 appear to require a “/Y” on the very end.
Some great info and tools at the page below, and scroll down to the bottom for the jackpot:
It may ask for a CSO Number and an Agent ID. Use “1234” (no quotes) for both.
Recently I needed a bootable medium to test a hard drive on a newer PC. I was appalled to find the old friends Hiren’s and UBCD4Win no longer in development, and much more appalled to find no clear replacement. Seagate’s SeaTools for DOS was tried first, but FreeDOS won’t support the controller. This worked well:
I booted it (its basis is 64-bit Ubuntu), opened Disks, found the test suite by clicking the round icon at the upper-right corner, and it appears to have the same functionality as SeaTools.
This one’s new and comes recommended, I have not tested it yet:
After scouting a rather large number of potential sources, this one is working extremely well; download the .repo file for your OS and put it with the rest, and you’re in with yum or dnf!
A great command in Linux is:
dd bs=4M if=file.iso of=/dev/sd<letter> status=progress && sync
<letter> is the letter for your flash drive. Do be careful finding it, because your hard drive(s) and CD/DVD drive(s) are also among these; you can get the list with
ls /dev/sd*, and also all mounted drives can be listed with
Also, it does have to be run as root, so
sudo as a prefix may be very helpful.
Here’s a bash script! Works very nicely. Once run on one side and specifying a destination, one does not need a password to open that SSH link in the future.
echo "setup-autossh by Jonathan E. Brickman, firstname.lastname@example.org"
if [ $# = 0 ]; then
read -p "Please enter the SSH destination in the format user@host : " sshdest
elif [ $# = 1 ]; then
echo "Usage: setup-autossh [user@destination]"
if [ ! -f ~/.ssh/id_rsa ]; then
echo "Creating RSA key for authorization..."
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
echo "Copying authorized RSA key to $sshdest ..."
remotecmd="cat > authorized_keys ; mkdir -p .ssh ; cat authorized_keys >> .ssh/authorized_keys ; rm authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh $sshdest $remotecmd
There are now multiple alternatives to the bundled Windows update system. First of all, the original, AutoPatcher, appears to be in the midst of a well-deserved renaissance:
And we also have WSUSOffline:
And there are quite a few more too, not tested by this writer as of yet!
FreeFileSync is a great piece of work, it synchronizes files and folders between local drives, over SSH, and to mobile devices via MTP over USB.