Hello,
I need help with this script.
I need to make this script to only get a report of BUILTIN groups like Domain Users, Administrators, Domain Admins because we don't migrate them. The builtin groups look like this “Builtin\<AccountName>”
thank you so much. Currently, the following gets all the groups.
# Include only folders from the root path
Get-ChildItem "C:\installs" -Recurse | ?{ $_.PsIsContainer } | %{
$Path = $_.FullName
(Get-Acl $Path).Access | Select-Object `
@{n='Path';e={ $Path }}, IdentityReference, AccessControlType, `
InheritanceFlags, PropagationFlags, FileSystemRights, IsInherited
} | Export-CSV "Permissions.csv"
So what do you need ?