Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Running 1 script on multiple computers from .txt file

$
0
0

Hi guys, So basicly i'm trying to run this script on multiple pc's (like 150 pc's):

(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"Wake-On-LAN","4")

(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"USB","3")

(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"AdminPwd","","*******")

(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"AdminPwd","*****","****")

But i need it to read a .txt file to get the computernames/ip's and execute the script on them remotly


Viewing all articles
Browse latest Browse all 2562

Trending Articles