Skip to content

AlexisColes/HttpSys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpSys Powershell and DSC module

Install from the powershell gallery https://www.powershellgallery.com/packages/HttpSys

Powershell

Get-UrlAcl Examples

Get-UrlAcl -Url http://+:69/

Get-UrlAcl -Port 69

Get-UrlAcl -Protocol http

Get-UrlAcl -HostName *

Get-UrlAcl -Port $(6969..6980)

New-UrlAcl Examples

New-UrlAcl -Protocol http -HostName + -Port 69 -SecurityContext Everyone

New-UrlAcl -Protocol http -HostName + -Port 69 -Path SomeSubPath -SecurityContext Everyone

Remove-UrlAcl Examples

Get-UrlAcl -Url http://+:69/ | Remove-UrlAcl

Get-UrlAcl -Port 69 | Remove-UrlAcl

DSC Resource

Configuration UrlAcltest {
    Import-DscResource -ModuleName HttpSys -ModuleVersion 1.0.2

    node $env:COMPUTERNAME {
        UrlAcl UrlAclTestResource {
            Name = "UrlAclTestResource"
            HostName = "+"
            Port = $(6969..6971)
            Protocol = "Http"
            SecurityContext = "NT AUTHORITY\LOCAL SERVICE"
        }
        UrlAcl UrlAclTestResource {
            Name = "UrlAclTestResource2"
            HostName = "+"
            Port = 6972
            Protocol = "Https"
            Path = "/somePath/"
            SecurityContext = "NT SERVICE\TermService"
        }
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published