Hello,
I need a script that will add "Test" to the local users group to all workstations in a Domain. Can only help?
Thanks
Technology Tips and News
Hello,
I need a script that will add "Test" to the local users group to all workstations in a Domain. Can only help?
Thanks
Not sure how you'd do it via PowerShell to be honest, but if you're in a domain environment have you thought of simply doing via Group Policy using Restricted Groups? See this thread which discusses it https://social.technet.microsoft.com/Forums/windowsserver/en-US/dcc1c4bc-dd43-4f90-94a4-38f0719b25f5/steps-to-assign-user-with-local-administrator-rights-in-windows-server-2008-r2?forum=winservergen
That's probably the easiest and most appropriate tool for the job (in a don't re-invest the wheel kind of way), but I apologise if you'd thought of that and had a specific reason to do it via PS.
Not sure how you'd do it via PowerShell to be honest, but if you're in a domain environment have you thought of simply doing via Group Policy using Restricted Groups? See this thread which discusses it https://social.technet.microsoft.com/Forums/windowsserver/en-US/dcc1c4bc-dd43-4f90-94a4-38f0719b25f5/steps-to-assign-user-with-local-administrator-rights-in-windows-server-2008-r2?forum=winservergen
That's probably the easiest and most appropriate tool for the job (in a don't re-invest the wheel kind of way), but I apologise if you'd thought of that and had a specific reason to do it via PS.
Not sure how you'd do it via PowerShell to be honest, but if you're in a domain environment have you thought of simply doing via Group Policy using Restricted Groups? See this thread which discusses it https://social.technet.microsoft.com/Forums/windowsserver/en-US/dcc1c4bc-dd43-4f90-94a4-38f0719b25f5/steps-to-assign-user-with-local-administrator-rights-in-windows-server-2008-r2?forum=winservergen
That's probably the easiest and most appropriate tool for the job (in a don't re-invest the wheel kind of way), but I apologise if you'd thought of that and had a specific reason to do it via PS.