Skip to content

Instantly share code, notes, and snippets.

@kurone-kito
Last active February 17, 2019 04:50
Show Gist options
  • Save kurone-kito/0e13ae6772d7be6822935556fc62b40a to your computer and use it in GitHub Desktop.
Save kurone-kito/0e13ae6772d7be6822935556fc62b40a to your computer and use it in GitHub Desktop.
$now = Get-Date -Format "yyyyMMdd_HHmmss"
$target = "C:\Program Files\Docker\Docker\resources\MobyLinux.ps1"
Copy-Item $target ("{0}.{1}" -f $target, $now)
$data = Get-Content $target | ForEach-Object { $_ -replace "-ComputerName localhost", "" }
$data | Out-File $target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment