Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

how to not concern invoke commad 's return?

$
0
0

thanks nohandle ,i will question the net map question.

now i have a new question:                              
env:pc1/2/3 use xp , all installed powershell v2  

pc1 want to use invoke  pc2,pc3  for change ip address

after run script,pc1's script wait a long time to stop (about 3min)

perhaps the reason is pc2/3's ip changed ?

remote script last 2 comand:

$nic.EnableStatic($newip,"255.255.255.0")

Restart-Computer -force

 

how i can set only send script and no concern about the remote execute ?

or

how to tell pc1 ,the script run over?

or

how to set invoke timeout?

 


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images