WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Manifest

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

DirMake Error 1029 on Windows Server 2008 R2

 Keywords: 1029 Directory Folder Create Make DirMake Windows Server 2003 2008 R2 

Question:

Here is a basic script that works fine in Server 2003:
DDMI="C:\Program Files\DDMI"

IF DirExist(DDMI)== @False 
DirMake(DDMI)
EndIF
When run on a Windows Server 2008 machine, it returns: 1029: DirMake: Dir not created.

I can manually create that exact same directory when logged in as Administrator on this system. When that error appears on the screen, there is NO more error info button on the error dialog.

Answer:

Is UAC enabled on that Win2K8 server? Win2K8 has UAC just like Vista, with an expanded set of configuration options. In Win2K8 R2, the configuration options have been expanded to match the UAC functionality that is present in Windows 7. For the most part, the configuration options allow you to make UAC a little less intrusive & obvious, but that doesn't negate the affect that UAC can have on programs that aren't written to function properly under the restricted access-token that is primarily used in an interactive logon session when UAC is enabled.

In particular, writing to "C:\Program Files" and "C:\Program Files (x86)" is restricted to only programs that are running elevated under an administrative account. If virtualization is not enabled for the process, then attempting to create that sub-folder could easily result in an error if UAC is enabled.

This DirMake Error 1028 on Windows Server 2008 R2, seems to be resolved by setting the requested execution level to RequireAdministrator.


Article ID:   W17968
Filename:   DirMake Error 1029 on Windows Server 2008 R2.txt
File Created: 2009:11:10:10:48:10
Last Updated: 2009:11:10:10:48:10