Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Reverse-engineering a PS script

$
0
0

So, I'm reverse-engineering a PS script to add users to AD.

 

I see the script is organized like an old Pascal, or C program.

Some global variables at the top, (actually, that is what I want to ask you about).  Followed by some number of functions,and finally a main body.

What I would like to inquire about are the first two lines of code, they are:

 

ReadExtendedAttributes,  WriteExtendedAttributes

WriteAttributes, Write, Delete, ReadPeremissions, Read,

 

So, what am I looking at?    They don't look like variables, or booleans.   As a group, they look like permissions?

But, what does it mean for these "permissions" to be listed as the first two lines of a script?

 

Thank You.

Regards,

-DW


Viewing all articles
Browse latest Browse all 6937

Trending Articles