Unique Motorsports

Tag: Batch Files

Install UVNC From Command Line or Remote Desktop

by on Feb.08, 2010, under Automotive

UVNC is a great open source progam for connecting to servers or PC’s. One of the major setbacks however is the difficulty in installing UVNC while connected with Remote Desktop, or RDP. The problem is it will run as the signed in user and even if you are signed into the console it still doesn’t seem to work right. Here are a couple of batch files I have written to uninstall UVNC and then another to reinstall UVNC. These can be used with a Remote Desktop (RDP) connection or through command line as well. To use these, simply copy the contents into a text file and save as UVNC-Uninstall.bat or UVNC-Install.bat.

(continue reading…)

Leave a Comment :, , , , , , , more...

Fixing Multiple File Extentions Using the Rename Command

by on Sep.11, 2009, under Automotive

Recently I ran across an issue where the file extension was missing on quite a few files. While right clicking on the file and renaming it is not so bad, doing that 47 times couldĀ  be quite time consuming. The command line “RENAME” came in to save the day.

1. I copied the files I needed to change into a new folder on the C drive.

2. start / run “cmd” to pull up a command prompt

3. cd c:\rename

4. rename * *.jpg

5. Copied rename files back into the original folder overwriting the files which needed to be changed.

RENAME [drive:][path]filename1 filename2.
REN [drive:][path]filename1 filename2.

RENAME [drive:][path]filename1 filename2.
REN [drive:][path]filename1 filename2.

Leave a Comment :, , , , , , more...

“Event ID 5″ error on “DefaultAppPool”

by on May.02, 2009, under Automotive

The Template Persistent Cache initialization failed for Application Pool ‘DefaultAppPool’ because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes.

UPDATE: I have a better fix for this after finding the Microsoft IIS Diagnostic Tool Kit. Install this tool and it will tell you what group needs to have permissions to the different folders and registry keys which will help find a solution to this issue much quicker. I’ll post my updated batch file at the end of this post.

Reviewing the logs, I ran aross this error on quite a few webservers. A closer look shows that it’s a permissions issue which can be fixed by doing the following.

Add the NT AUTHORITY\NETWORK SERVICE account to C:\WINDOWS\Help\iisHelp\common with “Read and Execute,” “List Folder Contents” and “Read”.

Add the NT AUTHORITY\NETWORK SERVICE account to C:\WINDOWS\system32\inetsrv\ASP Compiled Templates with Full Control.

Add the NT AUTHORITY\NETWORK SERVICE account to C:\WINDOWS\IIS Temporary Compressed Files with Full Control.

Seems like a lot of work when there are so many machines to make these changes to. That said, I did a little digging and found the following Command.

(continue reading…)

Leave a Comment :, , , , , more...

Looking for something?

Use the form below to search the site:

Custom Search

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

30 Day Site Stats


1,318
Unique
Visitors
Powered By Google Analytics