Just starting to mess with powershell a bit lately, I’m a networking guy by trade. I’m wondering how scripts would be handled outside the admin circle. Imagine I create a very simple script for adding new users to the AD. I give it to HR so the HR assistant adds new users. How would you package and deploy this script? Assume we don’t provide a GUI of any kind and giving her the .ps1 isn’t feasible. An executable that prompts her for the new username in the command line is fine.
Basically I’m wondering in theory how I would package a very simple one line script like New-ADUser and best practice for giving an end user permission to execute this script that writes to the AD. Seems like powershell can create some pretty nice tooling based on my limited experience so I’m just kind of curious how something like this would be accomplished.
submitted by /u/HughMirinBrah
[link] [comments]
The post Scripts for End Users appeared first on How to Code .NET.