Why are files under C:\Windows\System32\config\systemprofile not accesible to a running Windows service?

07
2014-07
  • Kenny Evitt

    I'm trying to setup a build using TeamCity and Leiningen, but I don't think this is particularly pertinent to my question.

    There are two TeamCity services, one for the build server and another for a build agent. Both services are running under "Local System". The server is running Windows Server 2008 DataCenter [version 6.0.6002].

    I've copied files into the folder C:\Windows\System32\config\systemprofile and I seem to be able to access them as the system account. By 'seem', I'm referring to being able to do the following from Command Prompt:

    psexec -s \\localhost cmd
    ...
    foo bar
    

    where foo bar is the command that the TeamCity build agent should be running. [It's extremely unlikely that there's a difference in what the build agent is specified to do and what I did; foo bar isn't much shorter than the actual one-line command.]

    I restarted both TeamCity services but the same "... can not be found." error persisted. I restarted the server, as I suspected this might be similar to how services cannot access changes to environment variables until after the server has been restarted, but (alas) that did not seem to resolve the problem.

    I now suspect this is an issue with TeamCity.

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    Why would you use Windows Server as a desktop operating system?
  • Sasha Chedygov

    I've noticed quite a few people using Windows Server as their main desktop operating system. Why? I've never used it, so I don't know if it has some productivity features that aren't available in Windows Vista/7, but I'd like to know, if only to quench my curiosity.


  • Related Answers
  • Jimmy

    A couple reasons why I prefer Server:

    • Tends to be more stable, and have lower resource consumption (no proof of this, but it uses less at boot on a bigger machine than my laptop running Vista)
    • Allows for more than 1 remote session (default is 3 I think?) which makes it easier to share with others, or even to have multiple sessions for yourself
    • For 2008+, better VM support at the OS level (Hyper-V)

    At work I have been running 2008/2008R2 with themes, so it looks very much like Vista (except no sidebar, which I don't miss). I would put it on my laptop, but I heard Hyper-V negates many of the power options, so I'm waiting for Win7 to come out.

  • hyperslug

    B/c we're SuperUsers and we like to test stuff out. I've been using it on my laptop for a year since I got it free from the Win2k8 launch event last year, just to get a feel for it. It's the same codebase as Vista. But where Vista starts with features activated and you pick which things to uninstall, 2k8 starts on the other end and you add what you'll need. Theoretically, someone with Vista should be able to achieve the exact same performance as someone with 2k8, but unlike Vista, the default install is very responsive, if spartan.

    OTOH I have yet to find a bluetooth dongle that works and some desktop programs refuse to run at all. I'm just about ready to ditch this and restore XP.

  • Christopher_G_Lewis

    Development, specifically SharePoint, which cannot run on Windows XP and requires major hacking to get it to install and run on Vista.

  • nik

    A MSDN Blog post -- Using Windows Server 2008 as a SUPER workstation OS, Feb 2008.

    Windows Server 2008 is the best OS to be released till date from Microsoft's stable. And the moment I got hold of the RTM build I could not resist installing it on my workstation. Due to the nature of my work I always prefer running a Server OS on my main workstation... I have been running Windows 2003 disguised as XP (with all the themes and stuff) all these days.

    Another post -- Using Windows Server as a desktop, Aug 2008.

    I’ve come to the conclusion that I really do have strong views about Vista: I loathe the thing. As a software developer, I find there is just so much of Vista that gets in the way...

    Maybe things will change with Windows 7?