Jump to content
Sign in to follow this  
vaya

Need Help read and replace a no constant string

Recommended Posts

vaya

hello every body,

I would like to get some help,

I need to set some permession with secedit template on a folder. This template looks like

[unicode]

Unicode=yes

[Version]

signature="$CHICAGO$"

Revision=1

[File Security]

"D:\FOLDER",0,"D:PAR(A;OICIIO;FA;;;CO)(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;BU)(A;OICI;0x1301bf;;

;GROUPENAME)"

------------------

the prblem I have that I don t want to use a group name to set the permession, because a groupe name might have the same name in different domains, That s whay I want to use SID( security ID).What I want is to read the groupname from INFile ( the group name ist not constant ) but it s always almost at the end before )".

can anybody help

Share this post


Link to post
Share on other sites
ACS

Just so I understand-- you're trying to read the string "GROUPNAME" but everything else is constant?

Share this post


Link to post
Share on other sites
vaya

YEs, the group name always changes, it up up to domain where the user ist, the groupname has a name convention like XXXX_Grp_SWXXXX. what I want to read is this group name which is a string in the inf file which is always bevore caracter )" in the inf file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×