Created
February 27, 2015 13:59
-
-
Save altherlex/61c50ce2674ebc37b7c2 to your computer and use it in GitHub Desktop.
PowerSheel: How execute a scrip file in windows8 (The new Batch Files)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# into file first-powershell.ps1 | |
Get-Process |ConvertTo-HTML| Out-File "Processos-mane.html" | |
# line command | |
$ Get-ExecutionPolicy -list | |
Scope ExecutionPolicy | |
----- --------------- | |
MachinePolicy Undefined | |
UserPolicy Undefined | |
Process Undefined | |
CurrentUser RemoteSigned | |
LocalMachine Undefined | |
$ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
$ .\first-powershell.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment