Guest User

Untitled

a guest
Feb 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $now = Get-Date -Format "yyyyMMdd_HHmmss"
  2. $target = "C:\Program Files\Docker\Docker\resources\MobyLinux.ps1"
  3. Copy-Item $target ("{0}.{1}" -f $target, $now)
  4. $data = Get-Content $target | ForEach-Object { $_ -replace "-ComputerName localhost", "" }
  5. $data | Out-File $target
Add Comment
Please, Sign In to add comment