Doodad Boy
asked on
batch file result for multiple server
I had built a batch file to get result on stand alone server as per below and i getting result as per expected.
How may i run the same command for remote server from a text file
@echo off
cd\
bcdedit | find "Nointegritychecks"
pause
How may i run the same command for remote server from a text file
@echo off
cd\
bcdedit | find "Nointegritychecks"
pause
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Anywhere you want. Just adjust the FNHosts value to point to it.
ASKER
i had placed the script, psexec and computer list text file at c:\temp, when i ran the batch file, i don see any output
It doesn't show on the screen.
Instead, results are sent to the files results.txt and details.txt, or whatever you named those files.
Open those files to see.
Instead, results are sent to the files results.txt and details.txt, or whatever you named those files.
Open those files to see.
ASKER
both files results.txt and details.txt are empty
ASKER
Hi NVIT, i found the result.testing currently
ASKER
Hi NVIT, i found the result showing "failure", but when i check manually the i got result - "nointegritychecks Yes"
ASKER
Hi NVIT, i think i found the issue, i edited the name in small letters "nointegritychecks", i got success result
Yes. I missed that in the code. To fix, change code to this. It tells it to ignore upper or lower case
find /i "Nointegritychecks"
ASKER
cool, that fix the upper case / lower case issue. meanwhile any way to run this command in cmd with administrator.
manually we use to right click the cmd and select run as administrator
manually we use to right click the cmd and select run as administrator
Create a shortcut to the cmd file then modify the properties, Advanced > checkbox Run as Administrator.
When you run the shortcut you may or may not get the UAC prompt, depending on your UAC settings
When you run the shortcut you may or may not get the UAC prompt, depending on your UAC settings
ASKER