Closed malhovic closed 6 years ago
I believe you have download the github html page and not the raw ps* files. You can download the zip archive and then extract it to a folder or if you want to download individual files then download the raw file such as https://raw.githubusercontent.com/PowerShellEmpire/PowerTools/master/PowerView/powerview.psd1
Yeah PowerShell won't execute HTML...
When running powershell (both with powershell -exec bypass or just setting the execution policy to unrestricted) I'm getting the below errors in trying to run Import-Module:
Import-Module : The module manifest 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerView\PowerView.psd1' could not be processed because it is not a valid Windows PowerShell restricted language file. Remove the elements that are not permitted by the restricted language: At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerView\PowerView.psd1:107 char:12