Posts

Showing posts from July, 2013

Windows User Profile Path

I'm developing a small windows application that manages the profiles on my Windows computers and I observed that many profiles, although they were on se correct folder, the name of the folder was not the same with the username. I found an article on Microsoft KB that is about temporary profiles but is mentions that there's a registry key that holds that information for all users. The key is the: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList I used that key to map the usernames to the directories.  

Backup Exec 12.5 Manually Check For Updates

I've been having strange errors with my servers lately, my Exchange Backup was failing and I got blue screens that were caused by VirtFile.sys I found out that the problem was caused by Backup Exec. The first thing I always do is check for updates but I would like Live Update to function interactively. I went to the Control Panel, opened up Live Update and selected Interactive Mode. When I opened up Backup Exec and tried to check for updates I got a strange error that stated that there are no products to check for updates for. I searched the Symantec KB for a while and I found a command that re-registers Backup Exec to Live Update. The command is: "C:\Program Files\Symantec\Backup Exec\BeUpdateOps.exe -AddBE -OptOut" After that I managed to update my server and I have no problems so far. I switched it back to Express Mode after I fixed the problem with my Live Update server.

Windows Forms Application Icon

I've been developing a windows forms application for a while now and today I decided to add an icon to it. I went to the Application tab of the project's properties window and set the icon. I could see the new icon for the .exe file but when I started the application the icon on the task bar was the standard icon. After googling around for a bit I found out that I had to set the icon for all the forms in the project. I added a resource for the icon file on the resources tab of the properties window and then used the following code in the Form_Load funtion to set the icon:  System.Drawing.Icon ico = Properties.Resources.icon;  this.Icon = ico; You'll have to change the "icon" to the name of the resource you've added.

Windows 2008 EventID 513

For a few days now I was getting error with id 513 on my Windows 2008 Domain Controller. The error had the following details: Cryptographic Services failed while processing the OnIdentity() call in the System Writer Object. Details: AddCoreCsiFiles : BeginFileEnumeration() failed. System Error: Access is denied. I searched for the System VSS writer and it was missing. In that case you might be having problems with the permissions on the winsxs folder under the windows folder. You may run the following commands to rough check: cd /d c:\windows\system32 icacls %windir%\winsxs\filemaps\* > C:\acls.txt In case the above command fails, you may run the following script in order to restore the necessary permissions: takeown /f %windir%\winsxs\filemaps /a icacls %windir%\winsxs\filemaps /grant "NT AUTHORITY\SYSTEM:(RX)" icacls %windir%\winsxs\filemaps /grant "NT Service\trustedinstaller:(F)" icacls %windir%\winsxs\filemaps /grant "BUILT...

Perl Installation Path

Yesterday I was trying to configure a website under lighthttpd on a linux box. The site actually was CGIProxy so I could access sites that the office firewall was blocking, and browse a bit safer using a linux nas I've got at home. After the necessary adjustmens to the web server I found out that I had to adjust the path to the perl interpreter on the lighthttpd configuration file. There were many perl installantions and I was a bit confused... Thankfully, there is a very easy way to get the path that perl installation is located by executing the following command on a terminal:  perl -le 'print $^X'  

Microsoft Outlook Text Selection via Cursor Problem

I saw a very strange (to me aleast) problem today. A user could not select text by dragging the cursor on Microsoft Outlook. It turns out that some updates for the Office platform may cause that behaviour and all you have to do is delete the  HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Data key. The problem appeared in Outlook because it was set as the default message editor. You can find the relevent article on  Microsoft KB .