-
I am going to be getting data from a file on multiple remote machines. Each machine has about 8 to 12 drives some of those drives being mount points with a variety of names The file is on each of those drives and has the same name but the content of the file on each drive is unique which is why I need...
Posted to
General
(Forum)
by
dmc2084
on
04-28-2009
Filed under: PowerShell, Get-Content, power shell, Remote host, logical disk, get-childitem, volume
-
This is what you need: a file called "hostlist.txt" located in your home folder $home with each server per line for each server in hostlist.txt, a separate file with the local file paths for that server, called like the server plus extension ".txt", again located in the folder $home...
-
hello I have a problem I have a file that generates a long list of data, every 3 lines is 1 chunk og data e.g 1..3 line = data chunk 1 4..6 line = data chunk 2 ... .. . 51..54 line data chunk x ect….. I run a do until but I cant get it to work proberly $XmpPrep = @( Get-Content C:\pstmp\RAW\xmlprep...
-
I am attempting to rename 1000+ files with the first line of the file being renamed. I have never used PowerShell before but I have figured out how to do this to one file at a time with the following code: Rename-Item -Path "C:\Users\SFranz...ens Notes\text\text1188.txt" -NewName (Get-Content...
-
By Guy Thomas The ability to 'Get-Content' is useful in itself; moreover it shows how easily PowerShell deals with reading from text files. Read More
-
Created my first Pshell script (.ps1) that has got a single parameter as server name, now I'd like to launch that ps1 for list of servers! Need push here please...how to do execute this task? Barry
-
Around a month ago I was trying to convince a friend to start using Powershell, “I'm too busy to start learning anything new” he said. ... Read More
Posted to
General
(Forum)
by
ps2
on
06-13-2009
Filed under: Get-Content, Event Viewer