Hello all.

I'm using Xcacls.vbs to enumerate the directory permissions on a
remote server.

http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225

If you look at the example output in the above website, you'll see the
various columns; Type, Username, Permissions and Inheritance.

The problem I'm seeing is that if an entry in the Username column has
too many characters, it is being cut off. For example:

"ServerName12345\IUSR_ServerName12345"

is being displayed as

"ServerName12345\IUSR_Se"

I found a couple posts that appeared to deal with this issue, but the
listed solution didn't work for me:

http://www.itnewsgroups.net/group/microsoft.public.windows.server.general/topic5960.aspx
http://www.webservertalk.com/message1843654.html

Any suggestions on how to solve this would be greatly appreciated.
Thanks!

- Dave

Re: Xcacls.vbs output format problem by Pegasus

Pegasus
Thu Mar 13 15:04:41 CDT 2008


"Highlander" <tron9901@msn.com> wrote in message
news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...
> Hello all.
>
> I'm using Xcacls.vbs to enumerate the directory permissions on a
> remote server.
>
> http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225
>
> If you look at the example output in the above website, you'll see the
> various columns; Type, Username, Permissions and Inheritance.
>
> The problem I'm seeing is that if an entry in the Username column has
> too many characters, it is being cut off. For example:
>
> "ServerName12345\IUSR_ServerName12345"
>
> is being displayed as
>
> "ServerName12345\IUSR_Se"
>
> I found a couple posts that appeared to deal with this issue, but the
> listed solution didn't work for me:
>
> http://www.itnewsgroups.net/group/microsoft.public.windows.server.general/topic5960.aspx
> http://www.webservertalk.com/message1843654.html
>
> Any suggestions on how to solve this would be greatly appreciated.
> Thanks!
>
> - Dave

Before you can design a solution, you need to decide what the
solution should do, e.g.
- Do you want to increase the width of the "Username" column?
If so, to what value?
- Do you want to let the "Username" field spill into the "Permissions"
field?
- Some other method?



Re: Xcacls.vbs output format problem by Highlander

Highlander
Thu Mar 13 15:43:46 CDT 2008

On Mar 13, 3:04=A0pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...
>
>
>
>
>
> > Hello all.
>
> > I'm using Xcacls.vbs to enumerate the directory permissions on a
> > remote server.
>
> >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=3D8225
>
> > If you look at the example output in the above website, you'll see the
> > various columns; Type, Username, Permissions and Inheritance.
>
> > The problem I'm seeing is that if an entry in the Username column has
> > too many characters, it is being cut off. For example:
>
> > "ServerName12345\IUSR_ServerName12345"
>
> > is being displayed as
>
> > "ServerName12345\IUSR_Se"
>
> > I found a couple posts that appeared to deal with this issue, but the
> > listed solution didn't work for me:
>
> >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen...
> >http://www.webservertalk.com/message1843654.html
>
> > Any suggestions on how to solve this would be greatly appreciated.
> > Thanks!
>
> > - Dave
>
> Before you can design a solution, you need to decide what the
> solution should do, e.g.
> - Do you want to increase the width of the "Username" column?
> =A0 If so, to what value?
> - Do you want to let the "Username" field spill into the "Permissions"
> =A0 =A0field?
> - Some other method?- Hide quoted text -
>
> - Show quoted text -

Good point.

The "Username" column appears to be 23 characters wide. If that can be
increased to 35 characters, that would work for me.

Not sure what you mean exactly by "spill into the Permissions field."
Does that mean it may overwrite beginning characters in the
Permissions field? I would hope that it would just push the
Permissions field entry forward, and not overwrite anything.

Some other method? Well maybe using comma seperated values would be
easier? Then you might not have to worry about column width, spilling
into the next field, etc.

Thanks.

Re: Xcacls.vbs output format problem by Pegasus

Pegasus
Thu Mar 13 16:11:52 CDT 2008


"Highlander" <tron9901@msn.com> wrote in message
news:bb5a456a-3c96-48e7-9bce-68b5c7b695d7@v3g2000hsc.googlegroups.com...
On Mar 13, 3:04 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...
>
>
>
>
>
> > Hello all.
>
> > I'm using Xcacls.vbs to enumerate the directory permissions on a
> > remote server.
>
> >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225
>
> > If you look at the example output in the above website, you'll see the
> > various columns; Type, Username, Permissions and Inheritance.
>
> > The problem I'm seeing is that if an entry in the Username column has
> > too many characters, it is being cut off. For example:
>
> > "ServerName12345\IUSR_ServerName12345"
>
> > is being displayed as
>
> > "ServerName12345\IUSR_Se"
>
> > I found a couple posts that appeared to deal with this issue, but the
> > listed solution didn't work for me:
>
> >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen...
> >http://www.webservertalk.com/message1843654.html
>
> > Any suggestions on how to solve this would be greatly appreciated.
> > Thanks!
>
> > - Dave
>
> Before you can design a solution, you need to decide what the
> solution should do, e.g.
> - Do you want to increase the width of the "Username" column?
> If so, to what value?
> - Do you want to let the "Username" field spill into the "Permissions"
> field?
> - Some other method?- Hide quoted text -
>
> - Show quoted text -

Good point.

The "Username" column appears to be 23 characters wide. If that can be
increased to 35 characters, that would work for me.

Not sure what you mean exactly by "spill into the Permissions field."
Does that mean it may overwrite beginning characters in the
Permissions field? I would hope that it would just push the
Permissions field entry forward, and not overwrite anything.

Some other method? Well maybe using comma seperated values would be
easier? Then you might not have to worry about column width, spilling
into the next field, etc.

Thanks.

================

xcacls.vbs writes each line as a text string. If you make the
Username field 35 characters wide then each line will be
12 chars longer than it is now. If you allow the Username
field to spill into the Permissions field then the Permissions
field would be pushed right by x-23 characters in all cases
where x (the length of the user's name) is > 23 chars.

You can also have comma- or tab-delimited lines. As
you see, you need to think this through carefully before
modifying the script.



Re: Xcacls.vbs output format problem by Highlander

Highlander
Fri Mar 14 08:24:52 CDT 2008

On Mar 13, 4:11=A0pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:bb5a456a-3c96-48e7-9bce-68b5c7b695d7@v3g2000hsc.googlegroups.com...
> On Mar 13, 3:04 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
>
>
>
>
> > "Highlander" <tron9...@msn.com> wrote in message
>
> >news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...=

>
> > > Hello all.
>
> > > I'm using Xcacls.vbs to enumerate the directory permissions on a
> > > remote server.
>
> > >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=3D8225
>
> > > If you look at the example output in the above website, you'll see the=

> > > various columns; Type, Username, Permissions and Inheritance.
>
> > > The problem I'm seeing is that if an entry in the Username column has
> > > too many characters, it is being cut off. For example:
>
> > > "ServerName12345\IUSR_ServerName12345"
>
> > > is being displayed as
>
> > > "ServerName12345\IUSR_Se"
>
> > > I found a couple posts that appeared to deal with this issue, but the
> > > listed solution didn't work for me:
>
> > >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen..=
.
> > >http://www.webservertalk.com/message1843654.html
>
> > > Any suggestions on how to solve this would be greatly appreciated.
> > > Thanks!
>
> > > - Dave
>
> > Before you can design a solution, you need to decide what the
> > solution should do, e.g.
> > - Do you want to increase the width of the "Username" column?
> > If so, to what value?
> > - Do you want to let the "Username" field spill into the "Permissions"
> > field?
> > - Some other method?- Hide quoted text -
>
> > - Show quoted text -
>
> Good point.
>
> The "Username" column appears to be 23 characters wide. If that can be
> increased to 35 characters, that would work for me.
>
> Not sure what you mean exactly by "spill into the Permissions field."
> Does that mean it may overwrite beginning characters in the
> Permissions field? I would hope that it would just push the
> Permissions field entry forward, and not overwrite anything.
>
> Some other method? Well maybe using comma seperated values would be
> easier? Then you might not have to worry about column width, spilling
> into the next field, etc.
>
> Thanks.
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> xcacls.vbs writes each line as a text string. If you make the
> Username field 35 characters wide then each line will be
> 12 chars longer than it is now. If you allow the Username
> field to spill into the Permissions field then the Permissions
> field would be pushed right by x-23 characters in all cases
> where x (the length of the user's name) is > 23 chars.
>
> You can also have comma- or tab-delimited lines. As
> you see, you need to think this through carefully before
> modifying the script.- Hide quoted text -
>
> - Show quoted text -

Understood. If you can show me how to make the Username field 35
characters wide, that would be great. Thanks.

Re: Xcacls.vbs output format problem by Pegasus

Pegasus
Fri Mar 14 11:11:20 CDT 2008


"Highlander" <tron9901@msn.com> wrote in message
news:6aed1150-660e-4aea-aa7c-8ced65c8e219@n75g2000hsh.googlegroups.com...
On Mar 13, 4:11 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:bb5a456a-3c96-48e7-9bce-68b5c7b695d7@v3g2000hsc.googlegroups.com...
> On Mar 13, 3:04 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
>
>
>
>
> > "Highlander" <tron9...@msn.com> wrote in message
>
> >news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...
>
> > > Hello all.
>
> > > I'm using Xcacls.vbs to enumerate the directory permissions on a
> > > remote server.
>
> > >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225
>
> > > If you look at the example output in the above website, you'll see the
> > > various columns; Type, Username, Permissions and Inheritance.
>
> > > The problem I'm seeing is that if an entry in the Username column has
> > > too many characters, it is being cut off. For example:
>
> > > "ServerName12345\IUSR_ServerName12345"
>
> > > is being displayed as
>
> > > "ServerName12345\IUSR_Se"
>
> > > I found a couple posts that appeared to deal with this issue, but the
> > > listed solution didn't work for me:
>
> > >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen...
> > >http://www.webservertalk.com/message1843654.html
>
> > > Any suggestions on how to solve this would be greatly appreciated.
> > > Thanks!
>
> > > - Dave
>
> > Before you can design a solution, you need to decide what the
> > solution should do, e.g.
> > - Do you want to increase the width of the "Username" column?
> > If so, to what value?
> > - Do you want to let the "Username" field spill into the "Permissions"
> > field?
> > - Some other method?- Hide quoted text -
>
> > - Show quoted text -
>
> Good point.
>
> The "Username" column appears to be 23 characters wide. If that can be
> increased to 35 characters, that would work for me.
>
> Not sure what you mean exactly by "spill into the Permissions field."
> Does that mean it may overwrite beginning characters in the
> Permissions field? I would hope that it would just push the
> Permissions field entry forward, and not overwrite anything.
>
> Some other method? Well maybe using comma seperated values would be
> easier? Then you might not have to worry about column width, spilling
> into the next field, etc.
>
> Thanks.
>
> ================
>
> xcacls.vbs writes each line as a text string. If you make the
> Username field 35 characters wide then each line will be
> 12 chars longer than it is now. If you allow the Username
> field to spill into the Permissions field then the Permissions
> field would be pushed right by x-23 characters in all cases
> where x (the length of the user's name) is > 23 chars.
>
> You can also have comma- or tab-delimited lines. As
> you see, you need to think this through carefully before
> modifying the script.- Hide quoted text -
>
> - Show quoted text -

Understood. If you can show me how to make the Username field 35
characters wide, that would be great. Thanks.
=============
Here is a flexible way of doing it:

1. Make Line # 23 (which is currently blank) like so:
const UserField = 35

2. Seek out the following four lines. They all contain the number "24".
In each of them you must replace "24" with "UserField" (without
the double quotes!).
Call PrintMsg( strPackString("Type", 9, 1, TRUE) & strPackString("Username",
24, 1, TRUE) & strPackString("Permissions", 22, 1, TRUE) &
strPackString("Inheritance", 22, 1, TRUE))
Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE) &
strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,
1, TRUE),-1)
Call PrintMsg(strPackString("Type", 9, 1, TRUE) & strPackString("Username",
24, 1, TRUE) & strPackString("Access", 22, 1, TRUE) &
strPackString("Inheritance", 22, 1, TRUE))
Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE) &
strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,
1, TRUE),-1)

3. Test the script. If you don't like the result, modify Line #23
to suit your needs.



Re: Xcacls.vbs output format problem by Highlander

Highlander
Wed Mar 19 08:39:28 CDT 2008

On Mar 14, 11:11=A0am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:6aed1150-660e-4aea-aa7c-8ced65c8e219@n75g2000hsh.googlegroups.com...
> On Mar 13, 4:11 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
>
>
>
>
> > "Highlander" <tron9...@msn.com> wrote in message
>
> >news:bb5a456a-3c96-48e7-9bce-68b5c7b695d7@v3g2000hsc.googlegroups.com...
> > On Mar 13, 3:04 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
> > > "Highlander" <tron9...@msn.com> wrote in message
>
> > >news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com.=
..
>
> > > > Hello all.
>
> > > > I'm usingXcacls.vbsto enumerate the directory permissions on a
> > > > remote server.
>
> > > >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=3D8225
>
> > > > If you look at the example output in the above website, you'll see t=
he
> > > > various columns; Type, Username, Permissions and Inheritance.
>
> > > > The problem I'm seeing is that if an entry in the Username column ha=
s
> > > > too many characters, it is being cut off. For example:
>
> > > > "ServerName12345\IUSR_ServerName12345"
>
> > > > is being displayed as
>
> > > > "ServerName12345\IUSR_Se"
>
> > > > I found a couple posts that appeared to deal with this issue, but th=
e
> > > > listed solution didn't work for me:
>
> > > >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen=
...
> > > >http://www.webservertalk.com/message1843654.html
>
> > > > Any suggestions on how to solve this would be greatly appreciated.
> > > > Thanks!
>
> > > > - Dave
>
> > > Before you can design a solution, you need to decide what the
> > > solution should do, e.g.
> > > - Do you want to increase the width of the "Username" column?
> > > If so, to what value?
> > > - Do you want to let the "Username" field spill into the "Permissions"=

> > > field?
> > > - Some other method?- Hide quoted text -
>
> > > - Show quoted text -
>
> > Good point.
>
> > The "Username" column appears to be 23 characters wide. If that can be
> > increased to 35 characters, that would work for me.
>
> > Not sure what you mean exactly by "spill into the Permissions field."
> > Does that mean it may overwrite beginning characters in the
> > Permissions field? I would hope that it would just push the
> > Permissions field entry forward, and not overwrite anything.
>
> > Some other method? Well maybe using comma seperated values would be
> > easier? Then you might not have to worry about column width, spilling
> > into the next field, etc.
>
> > Thanks.
>
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> >xcacls.vbswrites each line as a text string. If you make the
> > Username field 35 characters wide then each line will be
> > 12 chars longer than it is now. If you allow the Username
> > field to spill into the Permissions field then the Permissions
> > field would be pushed right by x-23 characters in all cases
> > where x (the length of the user's name) is > 23 chars.
>
> > You can also have comma- or tab-delimited lines. As
> > you see, you need to think this through carefully before
> > modifying the script.- Hide quoted text -
>
> > - Show quoted text -
>
> Understood. If you can show me how to make the Username field 35
> characters wide, that would be great. Thanks.
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Here is a flexible way of doing it:
>
> 1. Make Line # 23 (which is currently blank) like so:
> =A0 =A0 const UserField =3D 35
>
> 2. Seek out the following four lines. They all contain the number "24".
> =A0 =A0 In each of them you must replace "24" with "UserField" (without
> =A0 =A0 the double quotes!).
> Call PrintMsg( strPackString("Type", 9, 1, TRUE) & strPackString("Username=
",
> 24, 1, TRUE) & strPackString("Permissions", 22, 1, TRUE) &
> strPackString("Inheritance", 22, 1, TRUE))
> Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE) =
&
> strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
> strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,=

> 1, TRUE),-1)
> Call PrintMsg(strPackString("Type", 9, 1, TRUE) & strPackString("Username"=
,
> 24, 1, TRUE) & strPackString("Access", 22, 1, TRUE) &
> strPackString("Inheritance", 22, 1, TRUE))
> Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE) =
&
> strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
> strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,=

> 1, TRUE),-1)
>
> 3. Test the script. If you don't like the result, modify Line #23
> =A0 =A0 to suit your needs.- Hide quoted text -
>
> - Show quoted text -

Works like a champ! Thanks very much for your help Pegasus!

- Dave

Re: Xcacls.vbs output format problem by Pegasus

Pegasus
Wed Mar 19 11:39:23 CDT 2008


"Highlander" <tron9901@msn.com> wrote in message
news:aa21404c-3a4c-41e3-8ce4-c47ee851ad92@b64g2000hsa.googlegroups.com...
On Mar 14, 11:11 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "Highlander" <tron9...@msn.com> wrote in message
>
> news:6aed1150-660e-4aea-aa7c-8ced65c8e219@n75g2000hsh.googlegroups.com...
> On Mar 13, 4:11 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
>
>
>
>
> > "Highlander" <tron9...@msn.com> wrote in message
>
> >news:bb5a456a-3c96-48e7-9bce-68b5c7b695d7@v3g2000hsc.googlegroups.com...
> > On Mar 13, 3:04 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
>
> > > "Highlander" <tron9...@msn.com> wrote in message
>
> > >news:40a08981-ccb8-4ecf-8f56-91ba14bdbef3@e39g2000hsf.googlegroups.com...
>
> > > > Hello all.
>
> > > > I'm usingXcacls.vbsto enumerate the directory permissions on a
> > > > remote server.
>
> > > >http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225
>
> > > > If you look at the example output in the above website, you'll see
> > > > the
> > > > various columns; Type, Username, Permissions and Inheritance.
>
> > > > The problem I'm seeing is that if an entry in the Username column
> > > > has
> > > > too many characters, it is being cut off. For example:
>
> > > > "ServerName12345\IUSR_ServerName12345"
>
> > > > is being displayed as
>
> > > > "ServerName12345\IUSR_Se"
>
> > > > I found a couple posts that appeared to deal with this issue, but
> > > > the
> > > > listed solution didn't work for me:
>
> > > >http://www.itnewsgroups.net/group/microsoft.public.windows.server.gen...
> > > >http://www.webservertalk.com/message1843654.html
>
> > > > Any suggestions on how to solve this would be greatly appreciated.
> > > > Thanks!
>
> > > > - Dave
>
> > > Before you can design a solution, you need to decide what the
> > > solution should do, e.g.
> > > - Do you want to increase the width of the "Username" column?
> > > If so, to what value?
> > > - Do you want to let the "Username" field spill into the "Permissions"
> > > field?
> > > - Some other method?- Hide quoted text -
>
> > > - Show quoted text -
>
> > Good point.
>
> > The "Username" column appears to be 23 characters wide. If that can be
> > increased to 35 characters, that would work for me.
>
> > Not sure what you mean exactly by "spill into the Permissions field."
> > Does that mean it may overwrite beginning characters in the
> > Permissions field? I would hope that it would just push the
> > Permissions field entry forward, and not overwrite anything.
>
> > Some other method? Well maybe using comma seperated values would be
> > easier? Then you might not have to worry about column width, spilling
> > into the next field, etc.
>
> > Thanks.
>
> > ================
>
> >xcacls.vbswrites each line as a text string. If you make the
> > Username field 35 characters wide then each line will be
> > 12 chars longer than it is now. If you allow the Username
> > field to spill into the Permissions field then the Permissions
> > field would be pushed right by x-23 characters in all cases
> > where x (the length of the user's name) is > 23 chars.
>
> > You can also have comma- or tab-delimited lines. As
> > you see, you need to think this through carefully before
> > modifying the script.- Hide quoted text -
>
> > - Show quoted text -
>
> Understood. If you can show me how to make the Username field 35
> characters wide, that would be great. Thanks.
> =============
> Here is a flexible way of doing it:
>
> 1. Make Line # 23 (which is currently blank) like so:
> const UserField = 35
>
> 2. Seek out the following four lines. They all contain the number "24".
> In each of them you must replace "24" with "UserField" (without
> the double quotes!).
> Call PrintMsg( strPackString("Type", 9, 1, TRUE) &
> strPackString("Username",
> 24, 1, TRUE) & strPackString("Permissions", 22, 1, TRUE) &
> strPackString("Inheritance", 22, 1, TRUE))
> Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE)
> &
> strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
> strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,
> 1, TRUE),-1)
> Call PrintMsg(strPackString("Type", 9, 1, TRUE) &
> strPackString("Username",
> 24, 1, TRUE) & strPackString("Access", 22, 1, TRUE) &
> strPackString("Inheritance", 22, 1, TRUE))
> Call AddStringToArray(arraystrACLS, strPackString(strAceType, 9, 1, TRUE)
> &
> strPackString(objtrustee.Domain & "\" & objtrustee.Name, 24, 1, TRUE) &
> strPackString(TempSECString, 22, 1, TRUE) & strPackString(strAceFlags, 22,
> 1, TRUE),-1)
>
> 3. Test the script. If you don't like the result, modify Line #23
> to suit your needs.- Hide quoted text -
>
> - Show quoted text -

Works like a champ! Thanks very much for your help Pegasus!

- Dave

==============

Thanks for the feedback.



Re: Xcacls.vbs output format problem by Pegasus

Pegasus
Fri Mar 28 11:58:02 CDT 2008

<snip>

> Also, you could try using the native cacls.exe that ships with windows xp
> and server 2003. IMHO, it does NOT appear to truncate names or paths, at
> least not for reasonably long names...
>
> It does, of course, create other issues for someone wanting to process its
> output from a vbscript...
>
> /Al
>

I assume you were trying to reply to the OP, not to me.



Re: Xcacls.vbs output format problem by Al

Al
Fri Mar 28 12:02:16 CDT 2008


"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:%23XUrlTPkIHA.3932@TK2MSFTNGP05.phx.gbl...
> <snip>
>
>> Also, you could try using the native cacls.exe that ships with windows xp
>> and server 2003. IMHO, it does NOT appear to truncate names or paths, at
>> least not for reasonably long names...
>>
>> It does, of course, create other issues for someone wanting to process
>> its output from a vbscript...
>>
>> /Al
>>
>
> I assume you were trying to reply to the OP, not to me.

Yes.

/Al