Windows: RPC server unavailable

Today I had some problem of connecting to some of Windows 7 machines. The error I recieved was: The RPC server is unavailable.
After searching some articles on the net, I found out that I need to enable RemoteAdmin firewall rule, and add DCOM TCP port 135 to Inbound rules.

call netsh firewall set service RemoteAdmin enable
call netsh firewall add portopening protocol=tcp port=135 name=DCOM_TCP135

For port 135 there is a firewall rule Windows Management Instrumentation (DCOM-In) which needs to be enabled.

Good Luck

Setup Win7 or Win8 from USB drive

I have a little Acer Revo without a CD-ROM. External CD-ROM is expensive, so I reinstalled my little PC from USB stick.

First, you have to have a stick not smaller than installation CD/DVD of Windows 7 or 8. Next, motherboard must support Boot from USB so you can boot to setup.
The procedure goes like this, because we must prepare the USB with DISKPART. In my case CD/DVD-ROM is D: drive and USB flash drive is E: drive
SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION
ACTIVE
FORMAT FS=NTFS
ASSIGN
EXIT

image

Next, make USB bootable
Enter to your CD-ROM and subfolder boot
D:
CD BOOT
BOOTSECT.EXE /nt60 E:

image

And then copy all from CD/DVD to your USB. I used xcopy, but you can copy it from Windows explorer.
XCOPY * E:\ /E /Y
image

Plug in you USB into a computer, and boot from USB.

Good Luck