Friday, July 24, 2009

Importing certificates on Symbian

Importing certificates on Symbian: "The page that you are now reading describes how you can import root certificates and personal certificates on a Symbian S60 device."

Labels:

Take screenshots of your mobile device

This is a tool to capture screen shots of your mobile device, if it should happen to be a Nokia s60 device.

Screenshot for Symbian OS | AntonyPranata.com 2.0: "Screenshot for Symbian OS is a FREE program to take screenshot on your Symbian OS mobile phones (UIQ or S60). You can capture screenshot and save it to a file in JPEG, PNG, BMP or MBM format. The screenshot can be sent directly to a PC via Bluetooth or infrared and another mobile phone. Furthermore, you can customize the shortcut key, file name and delay of capturing. It supports continuous mode that allows you to capture screenshot every a few seconds."

Labels:

Thursday, July 23, 2009

List all installed product codes

If you ever need to retrieve the product code for installed Windows Installer products you can use the code below to retrieve it. Copy the code into a .vbs file and run it. It will produce an output file components.txt with all installed codes.

Option Explicit
Public installer, prod, a, fso

Set fso = CreateObject("Scripting.FileSystemObject")
Set a = fso.CreateTextFile("components.txt", True)

' Connect to Windows Installer object
Set installer = CreateObject("WindowsInstaller.Installer")
a.writeline ("Products")
For Each prod In installer.products
a.writeline (prod & " " & installer.productinfo (prod,"InstalledProductName") & " " & installer.productinfo (prod,
"VersionString") )
Next

Source of code was found in Acresso forums. The source file can also be downloaded from here.

Labels:

Wednesday, July 22, 2009

Windows Server 2003 Access-based Enumeration

Windows Server 2003 Access-based Enumeration: "ABE filters shared folders visible to a user based on that individual user's access rights, preventing the display of folders or other shared resources that the user does not have rights to access. ABE can be accessed via graphical user interface (GUI), command-line executable tool, and a robust advanced programming interface (API)."

In an earlier article I mentioned ABE on Windows 2008. This is also available on Windows 2003 systems. Read more here.

Download ABE tools you need from here.

Labels:

NTFS inherited permissions not correct

Today I stumbeled over an NTFS file system (Windows 2003 R2 Server) where many inherited permissions was wrong for some reason.

A lock (security device)

My root folder had a special permission set for the Users group(only list folder content, does only apply to this folder). But in many subfolders the Users group had read and write access to the folder and the contents.

So how do we fix incorrect inherited permissions without also loosing the permissions set for the subfolder?

Windows 2003 R2 comes with a tool called icacls that can modify permissions. Below is a script I created that processes the current directory. It does:

  1. Saves a backup of the folder to your temp directory. (Just in case...)
  2. Grants the Users group some permissions to this folder. (Remember, I only wanted inherited permissions for the Users group!) This grant also fixes all incorrect inherited permissions.
  3. Removes the explicitly set permissions for the Users group.

Save the codesnippet to a .cmd file and run it from the directory you want to repair permissions on.

@echo off
for /d %%x in (*) do (
 echo Processing %%x
 icacls %%x /save %temp%\%%x.acl
 icacls %%x /grant users:r
 icacls %%x /remove users
)

Labels:

Tuesday, July 21, 2009

Sharepoint document libraries not behaving well

Problem: The Sharepoint site works fine but when loading documents (and images) from a document library we are asked to authenticate and an error occurs when we try to authenticate again.

A man with some pain in his head

The web server also reports other strange error messages. Like "An I/O operation initiated by the Registry failed unrecoverably. The Registry could not read in, or write out, or flush, one of the files that contain the system's image of the Registry." (event ID 333) and regedit.exe fails to load with error 0xc0000142.

At the end of the day the cause of this problem was that the server was booted with the /3GB switch in boot.ini - and this is not supported by Sharepoint.

Some useful links:

Labels:

How to enable Kerberos event logging

How to enable Kerberos event logging: "Microsoft Windows 2000, Windows Server 2003, and Windows Server 2008 offer the capability of tracing detailed Kerberos events through the event log mechanism. You can use this information when you troubleshoot Kerberos. This article describes how to enable Kerberos event logging."

Labels:

Sunday, July 12, 2009

Playstation portable update

I just updated my psp with the latest firmware. Now I can buy games online.

This feature added more value to the console as I now can get games using an wireless Internet connection.

Sony has announced their new portable console; psp-3000. I am exited to see what more they will deliver in this unit.

There are not many games to choose from yet - my favourite games are not there yet. But it is a good start.