Re: Need Help programmatically setting AD Permissions

From: Andrew Sword [MVP] (exchange.mvp_at_nos.optushome.com.au)
Date: 02/28/05


Date: Mon, 28 Feb 2005 22:03:06 +1100

You could try psexec to run the session locally. Psexec is at this link
http://www.sysinternals.com/ntw2k/freeware/psexec.shtml

This is assuming you have a rights issue.

"Buddy Robbins" <buddy.robbins@rimrockgroup.com> wrote in message
news:%23eQ4cKgGFHA.2732@TK2MSFTNGP15.phx.gbl...
> Hey folks,
> I am in desparate need of help to solve my problem.
>
> I have written a service that examines a table in a database, and creates
> a directory hierarchy based on data in the table. It then
> programmatically grants and revokes privileges to groups on the different
> directories in the hierarchy.
>
> It creates the directories correctly, and on my XP development machine, it
> assigns the privileges correctly.
> When I deploy it to the target machine (Win 2k server), when I look at the
> security in the directories, I get a message the that rights are out of
> order. I have to manually go into explorer, look at securty and let it
> reorder it for the privileges to work correctly.
>
> I've used the knowledge base article (269159-How to use VB and ADsSecurity
> to property order ACEs in and ACL) to write a reorder function.
>
> The function, however, dies on the last line, calling the
> SetSecurityDescriptor method with an ArgumentException. The helpful
> message was "The parameter is incorrect".
>
> Has anyone done this on a 2k machine, found the error, and know how to
> "correct" the parameter?
>
> I've seen a few other people on the web have this problem, but I couldn't
> find any answers.
>



Relevant Pages

  • Re: Need Help programmatically setting AD Permissions
    ... You could try psexec to run the session locally. ... This is assuming you have a rights issue. ... > assigns the privileges correctly. ... > to property order ACEs in and ACL) to write a reorder function. ...
    (microsoft.public.win2000.security)
  • RE: Upgraded to Word 2003, now I cant open files
    ... Novell NetWare Network Privileges Required to Run Word ... Description of File System Directory and File Rights ...
    (microsoft.public.word.application.errors)
  • =?windows-1252?Q?Re=3A_=93Libertarians=2C=94=2F_vs_Corporate_Power?=
    ... result is that these collectivist entities with their government- ... bestowed privileges have taken over our economy, ... the defenders of individual rights. ... distinction between Big Brother and God! ...
    (alt.gathering.rainbow)
  • Re: How to manage user access in FM7 and later
    ... > profiles and then use this groups to assign rights in FMP. ... > personal login system and a users file where a rights manager could ... > Take into account that the delegated rights manager knows nothing ... about everything you can do with homebuilt, individual privileges can be ...
    (comp.databases.filemaker)
  • Re: Karpal Singh is the seditious one
    ... "special" rights and privileges, whereas the other citizens are given ... privileges granted to citizens. ... because they gained Malaysian citizenship. ... citizenship to 2.7 million people of other races who joined the Malay ...
    (soc.culture.malaysia)