こちらの記事にあるレジストリ変更のコマンドをメモ。
# 表示させない
reg add HKCU\Software\Policies\Microsoft\Windows\Explorer /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
# 元に戻す
# 厳密にやるにはキーを削除する必要があるが、0に更新でも実用上特に困らないので...
こちらの記事にあるレジストリ変更のコマンドをメモ。
# 表示させない
reg add HKCU\Software\Policies\Microsoft\Windows\Explorer /v DisableSearchBoxSuggestions /t REG_DWORD /d 1 /f
# 元に戻す
# 厳密にやるにはキーを削除する必要があるが、0に更新でも実用上特に困らないので...
こちらの記事のコマンドの他シェル、~/.aws/credentials
用コマンド。
元記事のコマンドはこちら。
# 環境変数 : Bash
今後の差分取得用に公式ドキュメントの内容を転記
一応魚拓も取ってある。
function Install-LatestWinGet ([switch]$SkipInstallVCLibs) { | |
# Install prerequisites | |
if (-not $SkipInstallVCLibs) { | |
$vcLibsUrl = 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
Write-Host -ForegroundColor Green "Download $vcLibsUrl" | |
Add-AppxPackage -Path $vcLibsUrl | |
} | |
# Find the latest assets url | |
$latest = Invoke-RestMethod -Uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' |
# | |
# PowerShell/PowerShellリポジトリのリリース情報を取得するクエリ | |
# 取得件数は適当 | |
# | |
$header = @{ | |
'content-type' = 'application/json'; | |
Authorization = 'bearer YOUR_GITHUB_API_TOKEN' | |
} | |
$query = @' | |
{ |
# | |
# 最新バージョンの EC2Launch をインストールするスクリプト | |
# Ref : https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch-download.html | |
# | |
# ※ EC2Launch 設定ファイルのバックアップには対応していません。 | |
# | |
<# | |
.SYNOPSIS | |
EC2Launchの最新バージョンを取得します |
name: windows-server-setup-japanese-ui | |
description: Install Japanese Language pack and Update UI configurations. | |
schemaVersion: 1.0 | |
parameters: | |
- S3BucketName: | |
type: string | |
default: 'your-bucket-name' | |
description: Set your S3 bucket name. | |
- S3BucketPath: |
# Download Installer | |
$ProgressPreference = 'SilentlyContinue' | |
$installerUrl = 'https://get.enterprisedb.com/postgresql/postgresql-15.2-1-windows-x64.exe' | |
$installerLocalPath = Join-Path $env:TEMP 'postgresql-windows-x64.exe' | |
Invoke-WebRequest -Uri $installerUrl -OutFile $installerLocalPath | |
# Invoke Installer | |
$params = @{ | |
FilePath = $installerLocalPath # InstallBuilder | |
ArgumentList = @('--mode unattended', '--unattendedmodeui none', '--disable-components server,pgAdmin,stackbuilder') |
# 例1 | |
"書き込み内容" ` | |
| % { [Text.Encoding]::UTF8.GetBytes($_) } ` | |
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte | |
# 例2 | |
Get-Content -Path ".\Source.txt" -Raw -Encoding Default ` | |
| % { [Text.Encoding]::UTF8.GetBytes($_) } ` | |
| Set-Content -Path ".\BOMlessUTF8.txt" -Encoding Byte |
<# | |
.Synopsis | |
指定したパスにあるファイルの変更を監視します。 | |
.DESCRIPTION | |
指定したパスにあるファイルの変更を監視します。 | |
監視を止める場合はCtrl+Cを押してください。 | |
.PARAMETER Path | |
監視するディレクトリを指定します。 | |
.PARAMETER Filter | |
監視するファイル名(に対するフィルタ)を指定します。 |