Showing posts with label Local System Account. Show all posts
Showing posts with label Local System Account. Show all posts

Thursday, 17 February 2011

How to defragment the System Volume Information folder

How to defragment the System Volume Information folder?
We may use Mark Russinovich's Contig, one of the utilities in the Windows Sysinternals suite.
We have to start a Command Prompt as Local System, in example as described here, and then run:

contig -v -s "c:\System Volume Information"

P.S: I just discovered Mark wrote a book, Zero Day, now that is a promising reading :)

Monday, 5 February 2007

CruiseControl.Net and SVN over SSL

On Microsoft Windows (2003 and XP) CruiseControl.Net is usually running as a service under the Local System Account (LSA), but, to update the working copy used from the integration service using a SVN repository contacted through SSL, we have to accept permanently the server certificate.
To achieve that, we have to log as Local System, which is accomplished using the command at with the interactive switch. In example, let's suppose that the time is 16:59, running the following command we'll open a Command Prompt running as LSA:
at 17:00 /interactive cmd.exe
Once logged in as LSA, it is just a matter of launching a svn up (or another command which is permitting us to save the server certificate) from the desidered working copy folder
, and to accept permanently the server certificate.
The server certificate will be then saved on the $UserProfile\Application Data\Subversion\auth\svn.ssl.server folder (where in the case of the LSA $UserProfile is usually something as C:\Documents and Settings\LocalService\).
Warning: no, you cannot log as LSA using the abovementioned trick from a terminal server. Use the console!