Login | |
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/21/2007 8:15:05 AM
|
|
 |
|
| |
Wyvern
Posts: 11
Score: 0
Joined: 6/21/2007
Status: offline
|
Neither change affects it except to make the script hang when I changed it to say: strComputer = oipFile.ReadLine()
|
|
| |
|
|
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/21/2007 11:09:16 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Is it possible that WMI is broken on the remote PC's or that you do not have admin rights? Try reading something from the PC using FSO and see what you get.
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/22/2007 2:55:11 AM
|
|
 |
|
| |
Wyvern
Posts: 11
Score: 0
Joined: 6/21/2007
Status: offline
|
I actually found that if I make sure that there are no blank spaces on any lines in the text file, this one will do the whole list.
|
|
| |
|
|
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/22/2007 2:57:34 AM
|
|
 |
|
| |
Wyvern
Posts: 11
Score: 0
Joined: 6/21/2007
Status: offline
|
I am a Domain admin, and all are member PCs. It is possible that at times some of the workstations have WMI disabled, since our stinking PCTech department tends to load Dcombob on the workstations. If only I could make them listen to reason!!
|
|
| |
|
|
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/22/2007 4:22:11 AM
|
|
 |
|
| |
mcds99
Posts: 434
Score: 4
Joined: 2/28/2006
Status: online
|
while not oipFile.atEndOfStream atEndOfStream == any blank line in the file.
_____________________________
Sam Keep it Simple Make it Fun KiSMiF
|
|
| |
|
|
|
 |
RE: Changing Static to DHCP on multiple NICs - 6/22/2007 4:35:13 AM
|
|
 |
|
| |
Wyvern
Posts: 11
Score: 0
Joined: 6/21/2007
Status: offline
|
That is actually what I am using now though with a different name. Do Until objTextFile.AtEndOfStream The only thing screwing it up was a blank character at the end of the first line.
|
|
| |
|
|
|
|
|