Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (Get-Content 'C:\Info\CIs for Infoblox.csv') | ForEach-Object {$_ -replace '"uheader_macfilteraddress"','"header-macfilteraddress"'} | ForEach-Object {$ -replace '"macaddress"','"mac_address*"'} | ForEach-Object {$ -replace '"uparent"','"parent*"'} | ForEach-Object {$ -replace '"serialnumber"','"comment"'} | ForEach-Object {$ -replace '"assignedto"','"registered_user"'} | Out-File -encoding ASCII 'C:\Info\CIs for Infoblox.csv' $file = "C:\Info\CIs for Infoblox" + (Get-Date -UFormat %m%d%y_%l%p) + ".txt" Copy-Item -Path 'C:\Info\CIs for Infoblox.csv' -Destination $file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement