I need to create a script that I can run that will prompt for a Group Name and then Run a command to change the permissions of that group name.
So I have:
$name=Read-Host "Group Name"
and then I have
add-adpermission -Identity "$name" -user "all nei employees" -accessrights writeproperty -properties "member"
They both work separately but how can I combine them into one script?