Hi, I got a problem that I cannot reach a share if the permission is only set to the user.
Manually I can change the permission, but is there a way I can do this with a script?

this script works only if I can reach the share:
=====================================
IF EXIST("\\server1\share1\" + "%USERNAME%") = 1
USE Z: /D
USE Z: "\\server1\share1\" + "%USERNAME%"
Shell '%comspec% /c C:\TEMP\TOOLS\XCACLS.EXE Z: /Y /T /R "domain\Domain admins"'
========================================

/edit:

I've tried something like this:
===================
Shell '%comspec% /c C:\TEMP\TOOLS\XCACLS.EXE ""\\server\share1\" + "%USERNAME%"" /Y /T /R "domain\Domain admins"'
===================
It doesn't work.
Tnx.

[ 03 September 2001: Message edited by: Indra ]

[ 03 September 2001: Message edited by: Indra ]