Monday, July 29, 2019

Web Jea - setting it up in my enviroment.

Web JEA is a cool tool that lets you create a website interface to administrative tools written in Powershell.
I set it up in my environment, and maybe I missed instruction or something but I needed to do some additional setting on the system before I could get it to operate correctly.
One thing that was very important was to stop the DSC autoconfiguration. this drove me batty for an afternoon as changes kept reverting to site info for configuration. I didn't make the changes with the DSC process in mind, not realizing that the changes were prohibited to those files.  It would be nice if I had some more understanding of how to work with DSC. but that's the big tip of the blog.

I needed to add the following instructions to C:\Source\DSCDeploy.ps1

Append to C:\Source\DSCDeploy.ps1

STOP-DscConfiguration
New-LocalGroup -Group WebJea
Add-LocalGroupMember -Group Administrators -Member $MyData.AllNodes.AppPoolUserName
Import-Module ActiveDirectory
"IT Admins", "IT techs", "IT Mgmt", "IT Engineering" |
ForEach-Object {
    Get-ADGroup  $_ |
    ForEach-Object {
        Add-LocalGroupMember -Group webjea -Member $_.name -verbose }
}
Get-ADGroup "DEPT Leads" |
    ForEach-Object {
        Add-LocalGroupMember -Group webjea -Member $_.name
        }
Get-ADGroup "IT Engineering" |
    ForEach-Object {
        Add-LocalGroupMember -Group webjea -Member $_.name
        }
Get-LocalGroupMember -Group webjea