Vilas Computer Services



193 error when trying to run a console from the command prompt ie -runas /user:administrator rsop.msc

"193: xxx.msc is not a valid Win32 application"

Try runas /user:doman\username "mmc c:\windows\system32\rsop.msc"


The trust relationship between this computer and the domain

netdom resetpwd /server:DOMAIN_CONTROLLER /userd:wha0\ADMINISTRATIVE_USER /passwordd:*


FTP with a batch file

Create Windows Service


Restart a Server Remotely

%windir%\system32\shutdown.exe -r -f -t 1 -m \\servername

Windows Server

KDC event 20 errors? Try the following:

Computer Configuration >Windows Settings >Security Settings >Public Key Policies >Properties of Autoenrollment
Enabled "Enroll certificates automatically" and "Update certificates that use the certificate templates".

Windows Time problems

At a command prompt:

net stop w32time
w32tm /unregister
w32tm /unregister
w32tm /register
net start w32time


Check or Assign File/Directory Rights



Error - cannot read from the source file or disk

Can't delete, rename, copy, etc file on your NTFS disk with a trailing period(.)

Escape the command from your command prompt:

ren "\\?\"C:\Program Files\Common Files\ODBC\Data Sources\odbc." "odbc.ini"

Windows 7

God Mode shortcut
Put the following in a shortcut on your Desktop:



Default backgrout login image changing:

First, a check is made to determine if the customization functionality is enabled or not.

A DWORD value named OEM Background in:


Behavior is turned on with 1 for enabled, 0 for disabled. This value may not exist by default, depending on your system.

This is an OEM feature and images are in:


This folder may not exist by default. Images must be less than 256kb in size.


Turn hibernate on/off on Windows 7

powercfg -h

turns hibernate off and removes the .fil file from the root directory. (+h = on)


To manually specify the KMS activation server, run the command...

cscript slmgr.vbs -skms

as an administrative user.