

1日経てば、証明書発行も成功すると思ったら、まだエラー。

色々探したが、とりあえず下記のサイトで NS レコードが反映されているか確認。

あれ、意外と反映されていない。。。
Route53 をよくよく確認すると、以下の赤枠のところが規定で2日(172800)になっていた。
ここを 60 秒に変更して、しばらく待つことに。
# パラメータ定義 param ( [Parameter(Mandatory=$true)] [string]$sourceFolder, # 移動元フォルダーパス [Parameter(Mandatory=$true)] [string]$destinationFolder, # 移動先フォルダーパス [Parameter(Mandatory=$true)] [string]$fileListPath # ファイルリストのテキストファイルパス ) # エラーハンドリング設定 $ErrorActionPreference = "Stop" function Move-Files { try { # フォルダーの存在確認 if (-not (Test-Path $sourceFolder)) { throw "Source folder does not exist: $sourceFolder" } if (-not (Test-Path $destinationFolder)) { Write-Host "Creating destination folder: $destinationFolder" New-Item -ItemType Directory -Path $destinationFolder | Out-Null } # ファイルリストの読み込み $files = Get-Content $fileListPath # 移動処理の実行 $successCount = 0 $errorCount = 0 foreach ($file in $files) { $sourcePath = Join-Path $sourceFolder $file $destinationPath = Join-Path $destinationFolder $file if (Test-Path $sourcePath) { try { Move-Item -Path $sourcePath -Destination $destinationPath -Force Write-Host "Successfully moved: $file" -ForegroundColor Green $successCount++ } catch { Write-Host "Error moving file: $file - $($_.Exception.Message)" -ForegroundColor Red $errorCount++ } } else { Write-Host "File not found: $file" -ForegroundColor Yellow $errorCount++ } } # 結果の表示 Write-Host "`nMoving completed!" -ForegroundColor Cyan Write-Host "Successfully moved: $successCount files" -ForegroundColor Green Write-Host "Errors encountered: $errorCount files" -ForegroundColor Red } catch { Write-Host "An error occurred: $($_.Exception.Message)" -ForegroundColor Red exit 1 } } # スクリプトの実行 Move-Files
まず、移動したいファイル名のリストをテキストファイル(例:filelist.txt)に保存します。 スクリプトを実行します: powershellCopy.\move-files.ps1 -sourceFolder "C:\FolderA" -destinationFolder "D:\FolderB" -fileListPath "C:\filelist.txt"