PowerShellEmpire / PowerTools

PowerTools is a collection of PowerShell projects with a focus on offensive operations.
Other
2.03k stars 817 forks source link

Errors when Importing into Powershell #76

Closed malhovic closed 6 years ago

malhovic commented 8 years ago

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

void-in commented 8 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

mattifestation commented 8 years ago

Yeah PowerShell won't execute HTML...