The server agent is probably running in "LocalSystem" account and your WebDrive site information is not in the registry for HKEY_CURRENT_USER in that situation. Use command line parameters to set the URL, username/password when using this from a "LocalSystem" account.