사용자 도구

사이트 도구


windows:powershell

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
windows:powershell [2020/02/25 09:35]
kwon37xi [언어 변경]
windows:powershell [2024/03/05 13:00] (현재)
kwon37xi
줄 1: 줄 1:
 ====== Windows Powershell ====== ====== Windows Powershell ======
   * https://powershell.org/   * https://powershell.org/
 +  * [[:starship|Starship]]
   * [[https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell|Learning Powershell]]   * [[https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell|Learning Powershell]]
   * [[https://github.com/JanDeDobbeleer/oh-my-posh|oh-my-posh]]   * [[https://github.com/JanDeDobbeleer/oh-my-posh|oh-my-posh]]
   * [[https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-3-0-jump-start-8276?l=r54IrOWy_2304984382|Microsoft PowerShell Tutorial & Training Course – Microsoft Virtual Academy]]   * [[https://mva.microsoft.com/en-us/training-courses/getting-started-with-powershell-3-0-jump-start-8276?l=r54IrOWy_2304984382|Microsoft PowerShell Tutorial & Training Course – Microsoft Virtual Academy]]
 +  * [[https://github.com/fleschutz/PowerShell|fleschutz/PowerShell: Mega collection of 250+ useful cross-platform PowerShell scripts.]]
  
 ===== 기본 개인 profile 파일 ===== ===== 기본 개인 profile 파일 =====
줄 97: 줄 99:
 </code> </code>
  
 +===== Powershell script from remote =====
 +  * [[https://www.thomasmaurer.ch/2021/07/powershell-download-script-or-file-from-github/|PowerShell: Download script or file from GitHub - Thomas Maurer]]
 +
 +<code sh>
 +Invoke-WebRequest -Uri https://raw.githubusercontent.com/thomasmaurer/demo-cloudshell/master/helloworld.ps1 -OutFile .\helloworld.ps1; .\helloworld.ps1 
 +</code>
 +  * [[https://www.youtube.com/watch?v=omm2YUkTkg0|How to run a Powershell script directly from Github private repository through Powershell - YouTube]] : github api 와 access token 으로 원격 스크립트 실행.
 +<code sh>
 +# Created by Daniel Jean Schmidt
 +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
 +
 +$Script = Invoke-RestMethod https://api.github.com/repos/Twikki/youtubetest/contents/Download_Files.ps1?access_token=yourtokenhere -Headers @{”Accept”= “application/vnd.github.v3.raw”}
 +
 +Invoke-Expression $Script
 +</code>
 +  * [[https://tomtalks.blog/run-powershell-scripts-directly-github-two-lines/|Run PowerShell Scripts Directly from GitHub with Two Lines - Tom Talks]]
 +
 +<code>
 +# script 주소는 올바르게 변경할 것.
 +$ScriptFromGitHub = Invoke-WebRequest https://raw.githubusercontent.com/tomarbuthnot/Run-PowerShell-Directly-From-GitHub/master/Run-FromGitHub-SamplePowerShell.ps1
 +Invoke-Expression $($ScriptFromGitHub.Content)
 +</code>
 ===== tail ===== ===== tail =====
 마지막 1000 줄 보여주면서 계속 출력하기 마지막 1000 줄 보여주면서 계속 출력하기
줄 128: 줄 152:
 </code> </code>
   * [[https://4sysops.com/archives/adding-and-removing-keyboard-languages-with-powershell/|Adding and removing keyboard languages with PowerShell – 4sysops]]   * [[https://4sysops.com/archives/adding-and-removing-keyboard-languages-with-powershell/|Adding and removing keyboard languages with PowerShell – 4sysops]]
 +  * [[https://4sysops.com/archives/local-experience-packs-add-languages-to-windows-10-and-server-2019/|Local Experience Packs: Add languages to Windows 10 and Server 2019 – 4sysops]]
   * [[https://docs.microsoft.com/en-us/powershell/module/international/set-winuilanguageoverride?view=win10-ps|Set-WinUILanguageOverride]]   * [[https://docs.microsoft.com/en-us/powershell/module/international/set-winuilanguageoverride?view=win10-ps|Set-WinUILanguageOverride]]
   * [[https://docs.microsoft.com/en-us/powershell/module/international/set-winsystemlocale?view=win10-ps|Set-WinSystemLocale]]   * [[https://docs.microsoft.com/en-us/powershell/module/international/set-winsystemlocale?view=win10-ps|Set-WinSystemLocale]]
줄 151: 줄 176:
 Restart-Computer Restart-Computer
 </code> </code>
 +
 +===== Linux PowerShell =====
 +  * [[https://learn.microsoft.com/ko-kr/powershell/scripting/install/installing-powershell-on-linux|Installing PowerShell on Linux]]
 +  * [[https://learn.microsoft.com/ko-kr/powershell/scripting/install/install-ubuntu|Ubuntu에 PowerShell 설치]]
  
 ===== 참조 ===== ===== 참조 =====
   * [[https://gist.github.com/jchandra74/5b0c94385175c7a8d1cb39bc5157365e|PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization]]   * [[https://gist.github.com/jchandra74/5b0c94385175c7a8d1cb39bc5157365e|PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization]]
 +  * [[https://www.tutorialspoint.com/powershell/index.htm|Powershell Tutorial]]
  
windows/powershell.1582590918.txt.gz · 마지막으로 수정됨: 2020/02/25 09:35 저자 kwon37xi