Group policy preventing write access to hard drive for Windows Service

I recently stood up several SharePoint Servers which use various domain user accounts as service accounts. Everything was going fine until the servers were moved from the staging OU to the production OU which has a server hardening GPO applied to it. Once
this occurred, all of SharePoint's logging via the Tracing service broke--because this account doesn't run as Local Service, but rather one of the domain user accounts.
After examining the Application event log, I saw it filled with errors indicating the E:\Logs\ULS and E:\Logs\Usage were not accessible due to error 0x5 -- access denied.
I explicitly granted permissions to the service account to these folders, and gave Full Control perms. I then restarted the service, but the Access Denied errors persisted. I granted Full Control to the entire E: drive -- the root folder -- with inheritance,
and made sure the permissions were inherited. And yet the problem persisted.
I installed a different application which can log to different drives, and it writes to the E: drive just fine when run as Local System. If I change it to one of the domain service accounts, it too produces Access Denied errors trying to write to the E:
drive, regardless of the NTFS perms.
The E: drive is a hard drive, not a USB or removable drive.
I found several posts here that explain how to disable write access to USB and DVD media, but I cannot find anything how to block writing to a hard drive. The server hardening GPO contains thousands of different settings and it'll take days to comb through
them all. Does anyone know of a GPO setting that can block writing to a hard drive, regardless of NTFS perms?
The servers in question are running Windows Server 2012 standard (not R2).
UPDATE: If I grant the service account the ability to log on locally (i.e. add it to the local Users group), and open a command prompt with "Run as User," I can write to the E: drive just fine. But the access denied
persists when running as a service. This leads me to believe a GPO is blocking the write access to a
service user but allowing the same account when logging in as an interactive
user.

I created a test Windows service that does nothing more than open two StreamWriter objects -- one to write into E:\Logs\ULS and the other into C:\ProgramData\Logs. The former writes dummy text once per second, while the latter writes errors. So error messages
will get written into C:\ProgramData\Logs.
I set up this test Windows Service and set it up to use my SharePoint app pool account, and this was written to the error log - the first line indicates the account being used.
[8/22/2014 12:01:25 PM] - Error writer is initialized and ready. Execution context svc_SPSvcApp_J
[8/22/2014 12:01:25 PM] - Directory E:\Logs\ULS does not exist.
[8/22/2014 12:01:25 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at ServiceLogWriter.Service1.Compose()
I then tried this with my Farm account. For TEST purposes, I TEMPORARILY put this account in the local Administrators group (I removed it after the test). And
STILL does not see the E: drive or any folders it contains.
[8/22/2014 12:05:08 PM] - Error writer is initialized and ready. Execution context svc_SPFarm_J
[8/22/2014 12:05:08 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
[8/22/2014 12:05:08 PM] - Windows reports E:\ does not exist. This is bad.
[8/22/2014 12:05:08 PM] - Windows reports E:\Logs does not exist. This is very bad.
[8/22/2014 12:05:08 PM] - Windows reports E:\Logs\ULS does not exist. In the words of the late Captain Phil Harris, "This is bad. This is bad bad."
[8/22/2014 12:05:08 PM] - Directory E:\Logs\ULS does not exist (we'll try to create it).
[8/22/2014 12:05:08 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at ServiceLogWriter.Service1.Compose()
Next I tried my own ID to run the same service. I'm a Domain Admin so I should have ruler of the roost perms 
[8/22/2014 12:12:35 PM] - Error writer is initialized and ready. Execution context sawyemat
[8/22/2014 12:12:35 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
[8/22/2014 12:12:35 PM] - Windows reports E:\ does not exist. This is bad.
[8/22/2014 12:12:35 PM] - Windows reports E:\Logs does not exist. This is very bad.
[8/22/2014 12:12:35 PM] - Windows reports E:\Logs\ULS does not exist. In the words of the late Captain Phil Harris, "This is bad. This is bad bad."
[8/22/2014 12:12:35 PM] - Directory E:\Logs\ULS does not exist (we'll try to create it).
[8/22/2014 12:12:35 PM] - Failed to set up the log writer. Access to the path 'E:\Logs\ULS' is denied.
System.UnauthorizedAccessException: Access to the path 'E:\Logs\ULS' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at ServiceLogWriter.Service1.Compose()
Mind you I'm starting and stopping the service while logged in interactively -- I can CLEARLY SEE there's an E: drive and E:\Logs\ULS folder!
It is quite evident to me that there is a policy blocking Windows services from seeing the E:
drive.
Run this under the LocalSystem (SYSTEM) account, and all is well.
[8/22/2014 12:15:18 PM] - Error writer is initialized and ready. Execution context SYSTEM
[8/22/2014 12:15:18 PM] - Quick test to look for things we KNOW exist on the Server. We know there is an E: drive, and we know there's a folder named E:\Logs\ULS.
[8/22/2014 12:15:18 PM] - So far so good - Windows reports E:\ exists.
[8/22/2014 12:15:18 PM] - Windows reports E:\Logs exists.
[8/22/2014 12:15:18 PM] - Awesome - Windows reports E:\Logs\ULS exists.
[8/22/2014 12:15:18 PM] - Log writer is set up successfully.
[8/22/2014 12:15:25 PM] - Shutdown in progress.

Similar Messages

  • If i install microsoft office after partitioning my hard drive for windows, will it be available on both sides of the partition?

    If i install microsoft office after partitioning my hard drive for windows, will it be available on both sides of the partition? Will it be universal for the computer or would i have to install it on both operating systems? Or, if I install office BEFORE partitioning, will it be available on both platforms after i partition?

    If I understand your questions correctly, then I'm inclined to say no. Office for Windows and Office for Mac are two completely different applications. if you run via BootCamp, only one partition will boot.
    If you want to run Mac and Windows at the same time, you could do what I did:
    Get Parallels
    Install Windows as VM on top of Parallels
    Install Office in Windows
    Now, you can run your OS X, jump into Parallels' WIndows and use Office that way.
    It needs a lot of RAM, 4 is a bare minimum to realy make it sensible, 8 wouldn't hurt.

  • Partitioning Hard drive for Windows Use

    Hopefully someone has the solution to this.
    I have been trying to partition part of my hard drive for the past couple of days because there is a program I need for a class I am taking that only works in Windows. Every time I try to partition a portion of the drive, it tells me some files couldn't be moved. It also tells me to format the drive and restore it. I am willing to do this, but the instructions on using the disk utility that it gives me do not work.
    I would be most willing to use the systems disk to repair anything I need to or just re-install, but I have misplaced those disk.
    How do I go about replacing these disk?
    Also, is there another way to partition part of this drive?
    It is my internal drive that was installed in the laptop.
    Thank you so much for taking the time to read this!

    You can reformat your hard drive with a snow leopard disk, which maybe a friend has or you can buy one for something like $30.00? Then your mac would be wiped clean as you know.. I have seen this problem before when installing windows on a mac and don't know what causes it. I reformatted my mac and then installed windows fine. Other times I have installed windows it went perfectly fine.

  • "How to partition for an external hard drive for windows and Mac backups"

    I have two PCs, Dells, and 1 Macbook Pro.  They are  set up on a wireless network. I would like to set up an external hard drive to backup all three automatically.  Does anyone know how I can do this?  Do I have to partition the external hard drive?  

    You would need to partition the hard drive using the GUID partition scheme. Your non-Apple machines would need their partitions formatted MS-DOS (FAT) and the Mac partition would have to be formatted Mac OS Extended. Note, however, that using the MS-DOS format may cause some problems with filenames on an NTFS formatted Windows drive.
    Now you could use Mac OS Extended formats on all three partitions, but then you would need third-party software on your Windows machines to enable them to read and write a Mac-formatted drive.

  • Reformat external hard drive for Windows machine using disk utility

    I have a Maxtor 160GB dual-interface external HD. I used it for my Mac OS X. I erased and reformated the hard drive on my Mac to MS-DOS using Disk Utility for use on my fathers Windows XP. I hooked the hard drive up to the Windows machine and the hard drive was visible in both Windows Explorer and on the task bar. I right clicked on the hard drive and selected Format. The formatting takes a while but at the end an error appears indicating the hard drive was not formattable. How can I get a MS-DOS formatted hard drive (from a Mac) to be used on a Windows XP machine with a NTFS format?

    Turns out it is possible:
    Maxtor Support..
    I would use your Disk Management utility within Windows to repartition and reformat the drive. To access Disk Management, right click on My Computer, go to Manage, and then choose Disk Management. Within Disk Management the drive should show in your list of disks (Disk 0,1,2 etc etc). I would delete any partitions that are on the drive. To delete a partition, just right-click on the partition and choose delete. Make sure you’re deleting the correct drive. Once the entire drive says unallocated then the drive should be ready to partition and format. Just right click within the Unallocated Space on the drive and choose the New Partition or New Volume option to set up the drive.
    I followed the instructions and everything worked.

  • HT4818 When I try to partition my hard drive for Windows 7, I get an error saying The disk cannot be partitioned because some files cannot be moved. I have a 2006 Macbook Pro I believe and I really need assistance as soon as possible.

    I have Windows 7 Premium Home and I have downloaded the Drivers and when I click Boot Camp Assistance to partition my hard drive, it says, "The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot Camp Assistant again." I can't do any backup really because I don't have an external hard drive to work with. I tried repairing disk permissions but that did not do anything. I really need a lot of help with this with some easy, step-by-step tutorials or something. I believe I have a 2006 version of Macbook Pro(4,1).

    Once you have obtained an external drive and connected it you will 'clone' your internal drive to it.
    Download Carbon Copy Cloner (it is not free but there is a fully functional trial version which is). Use it to clone your internal drive to your external drive. When that is done you will reboot from the clone and use Disk Utility to erase the internal drive (choose Mac OS Extended (Journaled)) as the format (this is normally preset, but check). Make sure to give the external drive a 'distinctive' name, don't want to get drives mixed up in this process.
    Once that is done you will use Carbon Copy Cloner (from the clone) to restore the external to the internal.

  • How much space should I dedicate from my hard drive for Windows?

    So I am going to buy a Macbook Pro w/768 GB Flash Storage. I need to run windows on it for Autodesk products for school. Should I install Windows 7 or 8? And how much of my hard drive should I dedicate to it? I will need Revit, Autocad, & Autocad 3D Civil. I would like to have extra space as well for antivirus and any other possible software I may have to install.
    This will be my first Mac so I'm kind of lost.

    If that turns out not to be sufficient space then you can use CampTune to add more space non-destructively.
    I base it on experience. Windows plus your software will likely take up nearly 40 or 50 GBs altogether. Allow another 20 or 30 GBs for data and miscellaneous. This leaves about 20 GBs of extra space.

  • ADD A SECOND HARD DRIVE FOR WINDOWS

    Hi Folks
    I am a relatively new Mac user. My MacPro is my first Mac. So far, after 23 years on a PC, I am absolutely in heaven. I think my question may be very basic, but I like to ask before I jump.
    I have purchased a second hard drive and it is my intention to install it and run Windows on it. I want to keep on using some of the Windows applications that I have. I purchased the HD from Mac Mall and yesterday I pyhsically located it in it place in the case. I did not run any kind of installation routine, I just plugged it in. I did get a message, but I told the computer to ignore the drive for now.
    I also have Parallels. I am not sure if I even need that if I have a seperate drive. So, now you are getting an idea of my question. What do I do next?
    Can someone walk me through the installation of that second drive, coach me on whether or not I even need Parallels, and get me to the point where I can install Windows on the new drive?
    I sure would appreciate it?
    John Washbush
    Bloomington, Indiana

    Download Windows 7 64-bit free from MS.
    Pull your OS X drive.
    Boot from the DVD you burned from the ISO of Windows 7 RC.
    Install as normal.
    If you later want to run Windows side by side inside OS X then you would need Parallels or something.
    Windows will find drivers for most things and treat it as you did on PC.
    For OS X, I recommend this book:
    http://books.slashdot.org/books/08/02/27/1551206.shtml

  • Would like some opinions re: best backup software/external hard drives for windows xp and windows 7

    Recently tried to restore a corrupted hard drive with a Toshiba canvio hard drive with NTI Backup Now EZ I purchased in 2010.  Was only able to restore a few files, had a very hard time working with the software, even contacted NTI, still not much luck.  Am unhappy with the NTI software, and want to know what external hard drives and what software the community has used and would recommend for Windows XP and Windows 7?  Thank you so much in advance for your time and opinions.
    Solved!
    Go to Solution.

    It doesn't matter which external drive you use.
    Let's talk about backing up the entire drive. Be sure to burn the disc that enables you to restore.
    Windows XP does not have a decent image backup built-in. I understand this free one works well.
       EaseUS Todo Backup Free
    Windows 7 has a decent one.
       Learn more about system image backup
    Windows 8 contains the same backup. Open "Windows 7 File Recovery" (sdclt.exe).
    -Jerry

  • Partioned Hard Drive for Windows 7

    When I partioned my hard drive to install Windows 7 I used 27 GB of space.  Needless to say i should have allowed for more space. now i can not download my ms updates or install other window apps due to lack of space on windows hard drive.  How to i expand the size of the hard drive?  Can I do it through boot camp or do I have to back up my data, uninstlall windows 7,then expand the hard drive/ UGH!
    Thank You!

    I'm assuming you are using Boot Camp to run MS Windows, if so there is a forum specifically for Boot Camp. I'd recommend reposting there. If you are using virtualization software such as Parallels or Fusion please navigate to their web sites for support.

  • Would I be able to use the same external hard drive for Windows and OSX?

    I plan to get an external HD to put a lot of my multimedia files on and for backups but I don't know if I'll need an individual one for each operating system. I am going to be running a MacBook Pro with both Windows and OSX through Boot Camp.

    jengwall,
    No, you won't need more than a single drive. There are several options to meet your needs.
    OS X can partition your external, and the formats for the various volumes can be HFS+ (the native Mac format) or FAT-32 (Windows format). While OS X cannot create NTFS volumes, and it cannot write to them, it can read them. Any FAT-32 volumes created in OS X can be converted to NTFS by Windows, if and when you like.
    Windows cannot natively read HFS+ volumes, and only the FAT-32 format will be both read and write for both Windows and OS X. However, there are some third-party solutions.
    "Macdrive" is a Windows utility that allows it to access HFS+ volumes as read/write. On the Mac side, there is "MacFuse," which gives OS X the ability to not just read, but write to NTFS volumes.
    Scott

  • Could not restore from the system image in ext. hard drive for Windows Server 2008 R2.

    Hi,
    Its been since 2 weeks I am struck with this issue. Any help is appreciated. I want to restore my server (Windows 2008 R2) to the system image I have in my external hard disk. The problem is my image is not getting recognized by the server when I chose the
    system repair option while booting with the OS cd.
    I placed the files in the folder called WindowsImageBackup in the root folder of the hard disk. The WindowsImageBackup folder has the folder structure like this: WindowsImageBackup\my_pc_name\Backup 2014-03-09 084946\xxxxx.vhd files
    I have put the MediaId file inside the "\Backup...." folder. Is it okay? And the MediaId file which I have has .file extension not .bin extension. Is there anything wrong with it?
    By the way I tried using the hard disk with USB 2.0 as well as 3.0 . It did not work for both.
    What should I do to make my system image recognized?
    Thanks in advance!

    Hi,
    The trick to restoring system from backup disk is to place the WindowsImageBackup folder at
    the root.  This will allow the recovery utility to automatically find the folder. (E.g. E:\WindowsImageBackup)
    Also check with load drivers option in restoration wizard or change boot order in bios to detect usb first then physical drive.
    Hope this help you.

  • Formatting An External Hard Drive For Windows And Mac

    So here is the problem I'm running into. I have a 160GB external HD Passport from Western Digital. When I format it for the Mac, it won't show up on my Windows XP computer at work. If I don format it in Disk Utility as FAT, it won't allow me to transfer large files in OSX.
    Is there a way I can get the best of both worlds?

    An interesting & refreshingly honest comment (from the author?) about SL-NTFS at http://mac.brothersoft.com/sl-ntfs.html:
    "Any encountered problem come from the Apple driver and not from the Preference. If you often need to write on NTFS disk, I recommend you to look for a better solution."
    The story behind the story: NTFS is a proprietary file system owned by Microsoft, which doesn't make all its characteristics known to outside developers. Thus, all methods of writing to it rely at least in part on reverse engineering unless they are provided as a part of Windows itself. I'm not entirely sure what the comments about Snow Leopard having this by default disabled capability actually mean, but both the above quote & the fact that it isn't enabled in Snow Leopard as shipped make me wonder how prudent it is to rely on it for routinely saving important data.

  • I have to extract all files from a hard drive of a macbook pro that is no longer working. All I have to access the hard drive is a PC, is this possible, and if so how?

    I have to extract all files from a hard drive of a macbook pro that is no longer working. All I have to access the hard drive is a PC, is this possible, and if so how?

    You could try Paragon HFS+ for Windows. That would allow you to read and write files from a Mac-formatted drive.
    Clinton

  • I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    I have an Ipad, I activated the time capsule with no issues. I added the airport Utility application without issue.  However, I do not know how to access the hard drive with either my Windows computer or the Ipad.  Does someone know how?

    On windows load the airport utility .. latest correct version as possible.. there is no windows 8 but win7 works after a fashion.
    Make sure the TC is using SMB compatible names.. short no spaces and pure alphanumeric.
    Type the name directly into windows explorer.
    \\TCname or \\TCIPaddress
    If no luck turn off all the firewalls.. internal windows plus security software plus whatever other gargyoles and other rubbish AV software you have running.
    Ensure windows is able to at least ping the TC by IP address and name..
    Use the utility in windows to set file sharing to guest account on with full read and write access.. and set workgroup to WORKGROUP.

Maybe you are looking for