-
-
Notifications
You must be signed in to change notification settings - Fork 120
Frequently Asked Questions
You can try. You'll apparently need to install Windows Management Framework 5.1 which includes a newer required version of PowerShell than what is included with Windows 7. I don't guarantee that it will work though.
- This is because the batch file might not have developed a 'reputation' yet. You should be able to hit 'More Info' then 'Run Anyway'.
- To stop it from happening again for the file, you can Right Click > Properties > Look for "Unblock" at the bottom and check that, then hit OK.
You technically don't. Only the .ps1
file is truly necessary, because that is the actual program. The .bat
file is just for convenience to make the .ps1 file easier to run, but the .ps1
file can be run manually with the instructions in the ReadMe - it's just an extra command in PowerShell.
On the releases page you might notice there are also downloads for Source Code (zip)
and Source code (tar.gz)
. These are automatically added to the list of downloads by GitHub when creating a "release", and you can ignore them. They're basically a snapshot of the whole repo at the time of the release.
Also on the main repo page, there are folders like "Extra Tools" and "Extra Data" that are not necessary, they are just for anyone who finds them interesting.
I'm getting an error such as "Cannot add type. Definition of new types is not supported in this language mode."
This means PowerShell has "Constrained Language Mode" enabled. From my knowledge there are 3 main ways constrained language mode might be enabled:
- Having any AppLocker script rules set up
- Having the
__PSLockDownPolicy
environment variable set. I have a video where I go into more detail about that here (linked to timestamp). - Having a Windows Defender Application Control policy set up (Also Smart App Control enabled, which uses WDAC)
You probably have a group policy set at the user policy or machine policy level that defines an execution policy.
You can do this command to see which policies are applied at what levels: Get-ExecutionPolicy -List
I also discuss execution policy and how to change it in the same video mentioned before, linked here to the timestamp.