Hello,
So here is my task I am trying to solve, looking for the best way to do this.
I have created an aspx page that calls an ascx control page. Now I designed a Gridview
which Lists all the "Class Names" (such as classes in school). Now when I select a certain class it takes me to me
View...
Hello,
I have a gerneral question I was hopeing to get some help with.
I have built a page with a Tab that has user info. I have a FormView with a Gridview inside and
an ASP LinkButton to add a new user. However, when I click on the add a new user button I get an error message stating...
Hello,
I could use some assistance on how to Remove Distribution Points (DPs) from my SCCM Packages.
I found the following article which seems to do, exactly what I am looking for. Unfortunately though I have run into some issues and need a little help troubleshooting...
Nevermind I got it. I found that there is a objUserGroup.Domain.
So I did strDomain = objUserGroup.Domain
Added & strDomain & "\" to the strCACLS line.
Geates,
Thanks again for all your help with this Script and my learning curve. Everything seems to be in place and working great.
One more minor issue/question though. Turns out that one the Permissions needed has been changed from:
Users:Read to Builtin\users:Full Control
Now I know...
Okay getting some what closer. However, still a little off.
So I updated the following line:
if (intMatches = ubound(arrPerms) + 1) then verifyACL = true
It still seems to return:
if (verifyACL(arrACL, arrPerms)) then
msgbox strFolder & " has the necessary permissions"
even if it...
Hey Geates,
Okay I have 2 questions/issues. After doing some testing with the following Functions:
function getACL(strFolder)
set objShell = CreateObject("WScript.Shell")
set objStream = objShell.Exec("%comspec% /c cacls.exe " & strFolder)
do until...
Hey Geates,
Thanks for all the help. I am really learning this stuff now, which is good. Just trying to wrap my head around this last piece of information. So my script works as planned for checking the Folders and get parsing thru and Verifying the ACL Permissions.
Now I am trying to...
Geates,
Thank You again, yes I understand the code and this works great. Now if I wanted to run this on Shares does it work the same way?
As a Test, I set up some Shares in Computer Management- TEST1$ and TEST2$. I was testing before with SubinAcl.
Does the code you provided work the same...
Okay Geates,
Here is what I got so far.
I took your GETACL function, thank you.
I added my parsing code below the function.
This outputs the ACLs of the Folder then I parsed in by line with strName and then StrPermission.
Now if the part I am stuck on. The IF Statement that allows me to...
I will post my VBScript if that will help but basically
The Script will be used to scan DP's on Servers.
I really just need something that will Display the ACLs and if all of the ACEs and Permissions are correct, return 0.
So say Cacls.exe can be used to list all ACLs on share TEST1$ and...
Hello,
I have been tasked to Create a Script to check DP's. Here is the take list:
1.) Determine Domain, DOM1 or DOM2. (That was easy enough)
2.) If DOM1 then Check for existence of share TEST1$ and folder D:\TEST1 (again got this working)
3.) If Share and folder doesn't exist exit with 1...
Hello,
I have developed a few Scripts that sets DCOM Permissions and SETS WMI Permissions.
It took me awhile but I eventually figured it out and these scripts work great.
Now I want to just do a general Verification Script that can be run and gather the information that was Set
so that I can...
Geates,
I am pasting 2 of the log files that my script generates.
You can see what kind of information it is producing.
Thanks.
TW
Logfile#1
===================
+Share TestShare$
===================
/control=0x0
/audit ace count =0
/perm. ace count =2
/pace =builtin\administrations...
SubinAcl.exe is the tool that runs along with my Script.
"SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to...
Hey Geates,
Thanks for the fast reply. I guess I should simplify my question.
I basically just need the piece of code/script that will display the Specific Permission (If "builtin/Administrator = FullControl -return True.) How I have it setup right now is that SubinAcl is checking my...
If one of the permission doesn't match then it should exit out with a specific output (i.e. "Nonmatch" or simply "1"). If they do match then exit out with a 0, extra permissions can be ignored. I am using SubinAcl to get the Permissions. However the script that I have developed display all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.