WebServer
1.0.4
Powershell WebServer is a module that starts a webserver (without the need for IIS).
Powershell command execution, script execution, upload, download and other functions are implemented.
* Start-Webserver starts a webserver listening on port 8080 with binding to localhost only
* Start-Webserver "http://+:8080/" "C:\Data" starts a webserver on port 8080 with binding
Powershell command execution, script execution, upload, download and other functions are implemented.
* Start-Webserver starts a webserver listening on port 8080 with binding to localhost only
* Start-Webserver "http://+:8080/" "C:\Data" starts a webserver on port 8080 with binding
Powershell WebServer is a module that starts a webserver (without the need for IIS).
Powershell command execution, script execution, upload, download and other functions are implemented.
* Start-Webserver starts a webserver listening on port 8080 with binding to localhost only
* Start-Webserver "http://+:8080/" "C:\Data" starts a webserver on port 8080 with binding to all IP addresses with base dir C:\Data
You may have to configure a firewall exception to allow remote access to the chosen port, e.g. with
netsh advfirewall firewall add rule name="Powershell Webserver" dir=in action=allow protocol=TCP localport=8080
Show more
Powershell command execution, script execution, upload, download and other functions are implemented.
* Start-Webserver starts a webserver listening on port 8080 with binding to localhost only
* Start-Webserver "http://+:8080/" "C:\Data" starts a webserver on port 8080 with binding to all IP addresses with base dir C:\Data
You may have to configure a firewall exception to allow remote access to the chosen port, e.g. with
netsh advfirewall firewall add rule name="Powershell Webserver" dir=in action=allow protocol=TCP localport=8080
Minimum PowerShell version
4.0
Installation Options
Author(s)
Markus Scholtes
Copyright
(c) Markus Scholtes 2022
Package Details
Owners
Tags
Webserver HTTP Web HTML HttpListener
Functions
Dependencies
This module has no dependencies.
Release Notes
# 1.0.4 / 2022-04-15
- logs response code
- scripts (.ps1, .bat and .cmd) in web directory are executed by web server
# 1.0.3 / 2022-01-19
- Load index file in base dir instead of default page when present
# 1.0.2 / 2021-07-04
- Updated list of mime types
# 1.0.1 / 2021-02-12
- Updated links since Technet Gallery shut down
# 1.0.0 / 2020-06-04
- Initial release
FileList
- WebServer.nuspec
- Start-Webserver.ps1
- WebServer.psd1
- WebServer.psm1