How to Create a PowerShell Script File

preview_player
Показать описание
█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█▀█
[Instructions]
[Using notepad]

Go to Search and type in "notepad", and save it as all files .ps1
[Using Powershell ISE]
Go to Search and type in Powershell, and look for "Powershell ISE".
Type in the commands you want, like

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
[Output Script]

Write-Host "Hello World"
Read-Host "Press any key to continue"
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Run Powershell Command Prompt as administrator to run Powershell Script Files
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
When you are in Powershell Command Prompt

Set-ExecutionPolicy RemoteSigned

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
[Output and Input Script]

$Name = Read-Host -Prompt 'What is your name?'
$Age = Read-Host -Prompt "What is your age?'
Write-Host "Your name is '$Name' and your age is '$Age'"
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
♠ If you wish to donate, you can on my Paypal account
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█▄█
Рекомендации по теме
Комментарии
Автор

your background is cool and so are your tutorials.

TheadRaw
Автор

Thank you for providing a clear and detailed tutorial. Good job!

MrParkerSaidit
Автор

On my pc add-appxpackage command is not working.
May you help me ?
Please help me
My windows is 7

abhishekbairwa
Автор

my windows wont work bc i do the same but it dont work it say there is noting now im sad

osx_tv