Page tree
Skip to end of metadata
Go to start of metadata

스크립트 실행 가능하도록 하기

  • PS C:\> new-item $PROFILE.CurrentUserAllHosts -ItemType file -Force
  • PS C:\> Set-ExecutionPolicy -Scope CurrentUser
  • ExecutionPolicy: UNRESTRICTED
  • PS C:\> ise $PROFILE.CurrentUserAllHosts
    • Windows PowerShell ISE 에 profile.ps1 편집 후 저장


Linux와 command 비교

  • LinuxPowerShell
    touchNew-Item -ItemType file

Chromecast 강제 업데이트

  • Invoke-WebRequest -Method Post -ContentType "application/json" -Body '{"params": "ota foreground"}' -Uri "http://<Chromecast IP>:8008/setup/reboot" -Verbose -UserAgent "curl"