Search found 4 matches

by srini
01 Nov 2019 22:45
Forum: DOS Batch Forum
Topic: Batch script to login to multiple windows server
Replies: 8
Views: 16449

Re: Batch script to login to multiple windows server

I have resolved my earlier query , but now facing issue with below
for /f %%J in (mine.txt) do (
for /f %%H in ('wmic /node:%%a Service WHERE "Name = '%%J'" GET State ^| findstr "Running" ' )

how to assign variable %%J to Name as the script is not working , seems syntax error , please help .
by srini
01 Nov 2019 21:17
Forum: DOS Batch Forum
Topic: Batch script to login to multiple windows server
Replies: 8
Views: 16449

Re: Batch script to login to multiple windows server

Thanks elzooilogico, I have used WMIC in batch script . But I am encountering peculiar issue. Code goes like below .Aim is to get windows service status and if it is in running then execute next statements . For /f %%a in (servers.txt) do ( for /f "tokens=*" %%H in (' wmic /node:%%a Service WHERE "N...
by srini
31 Oct 2019 09:21
Forum: DOS Batch Forum
Topic: Batch script to login to multiple windows server
Replies: 8
Views: 16449

Re: Batch script to login to multiple windows server

Thanks steffen , can this be achieved through powershell ? If so can you please help me

Srinivas
by srini
31 Oct 2019 00:25
Forum: DOS Batch Forum
Topic: Batch script to login to multiple windows server
Replies: 8
Views: 16449

Batch script to login to multiple windows server

Hi All,

Good Day . Please help me with below requirement .

1) Batch script to login to multiple windows servers from a central window server without prompting for userid and password.
2)script should also click ok on the security agreement once credentials are provided .

Thanks ,
Srinivas