Clone this repository or directly download the create_phsite.ps1
script to your local machine.
Open PowerShell and navigate to the directory containing the create_phsite.ps1
script.
To allow the script to run, you must temporarily modify the execution policy for the current PowerShell session:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
To Execute the script, type
.\create_phsite.ps1 -Email test@tesla.com
Replace the email with any email for any domain. The script will create an output.html, which you can open up in any browser. To change the portal "clone", rerun the script with a different email address, and the script will overwrite the current output.html. To view it, it's enough to refresh your browser after rerunninng the powershell command.
jq (for json parsing)
Tool written and tested on macOS. Some issues have been showing when running on other OS because of \r\n formatting. Running 'dos2unix ./create_phsite.sh' should resolve it.
./create_phsite.sh The username in the email field does not have to be valid. The phsite will be using the branding from the domain contained in the email address.
Use responsibly.