Category Archives: Windows Sysadmin

Windows Event Viewer Problems

I’m currently trying to resolve some Windows Event Viewer Problems. The Windows Event Viewer has stopped running in Windows 7 and will not restart after a reboot. It won’t restart by attempting to restart the Windows Event Viewer through services.msc.

When I attempt to open Windows Event Viewer, the application always returns this error:

“Event Log service is unavailable. Verify that the service is running.”

When I try to restart the Windows Event Viewer, I get this error:

“Windows could not start the Windows Event Log services on Local Computer. Error 13:  The data is invalid.”

Previously, I’ve had a similar problem caused by corrupt .evtx log files. I’ve tried clearing and saving the logs but can’t clear them without the Windows Event Viewer running. Tried to clear them with the ‘wevtutil’ command line utility and get “interface not found” errors.

Some have had luck using the netsh winsock reset command:

netsh winsock reset

No such luck here. Still searching for a fix to the Windows Event Viewer not running issue.

Any ideas for fixing Windows Event Viewer errors aside from a clean install?

Could antivirus software be causing corrupt .evtx log files?

Hopefully I will be posting a fix for these annoying event viewer errors soon!

Update: The only solution that worked to fix the Windows 7 event viewer problems, was saving the user files off on another machine using Windows Easy Transfer and performing a complete re-install of the system. Windows 7 was not my idea, I just get to fix it when it’s broken…

How to open a Windows Administrator Command Prompt

How to open a Windows Administrator Command Prompt

First you must be logged into your Windows computer with an account that has Administrator rights.

1. Click on the Windows Start Button:

Windows-7-Start-Button2. Click on All Programs:

Windows-All-Programs

3. Click on Accessories:

Windows-Accessories
4. Click on Command Prompt:

Windows-Command-Prompt
5. Right click on Command Prompt and click on “Run as administrator”:

Windows-Command-Prompt-Run-as-administrator-cmd

And your Windows Administrator Command Prompt opens, giving you the command line power to run dos commands as an administrator. Just be careful with how you use that power!

Windows-Administrator-Command-Prompt-dos-cmd

Notice that the Windows Administrator Command Prompt defaults to C:\Windows\system32> rather than the C:\Users> directory of the standard user Command Prompt. The title bar of the Administrator Command Prompt also shows that it’s different from the standard Command Prompt.

Windows-Command-Prompt-user-dos-cmd Happy Friday and enjoy the “winter” weather this weekend!

San-Jose-Silicon-Valley-weather-cali-icon

FTP ASCII vs. Binary transfer modes

FTP ASCII vs. Binary transfer modes

In this demonstration we will be using ftp to transfer files from a Solaris 10 workstation to a Windows workstation using the dos command prompt ftp program to connect to the ftp port of the Solaris machine.

The two primary modes of transferring files via FTP are ASCII and binary. ASCII is an acronym for the American Standard Code for Information Interchange, an early standard of character encoding. ASCII mode in FTP is meant to transfer text files. Examples of ASCII files are .asp, .html, .php, .pl and .txt files. Binary mode in FTP is meant to transfer raw data files. Examples of binary files are .gif, .jpg, music and video files, as well as zipped (compressed) tar files. Be sure you understand the ftp ASCII vs binary differences so you know which file transfer mode to use.

 

ftp-transfer-ascii

Transferring a jpg file in ASCII mode, will get you something that looks like a screenshot of the game Pitfall! on the Atari 2600, circa 1982. It won’t look anything like the original file.

unix-cal-2012-black-ascii
Snapshot of a 2012 Unix Calendar jpeg transferred via FTP ASCII mode--psychedelic eh?
Pitfall_game_cartridge
Pitfall! Game Cartridge from Activision for the Atari 2600

So to transfer a non-text file with all the bits intact, use the binary mode by typing ‘binary’ at the ftp command prompt. In the dos version, you’ll see the “Type set to I” message rather than the “Type set to A” message for ASCII mode.

ftp-transfer-binary

Use binary transfer mode for your non-text files and they should arrive fully intact and legible:

unix-cal-2012-black-binary
Snapshot jpeg of a unix 2012 calendar transferred via FTP binary mode