Skip to content

Instantly share code, notes, and snippets.

@altherlex
Created February 27, 2015 13:59
Show Gist options
  • Save altherlex/61c50ce2674ebc37b7c2 to your computer and use it in GitHub Desktop.
Save altherlex/61c50ce2674ebc37b7c2 to your computer and use it in GitHub Desktop.
PowerSheel: How execute a scrip file in windows8 (The new Batch Files)
# 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