1.

Solve : Need help with batch file?

Answer»

I need some help writing a btach file.

I am on an internal company network and have admin rights. We have employees who show up on our monitoring systems as having a virus or malware that can not be CLEANED remotely.

I need to create a batch file that will create a system error and prevent the computer from booting. This would require the employee to bring the computer into desktop support for assistance. At that time, the "error" will be immediately corrected and the system would be able to boot.

Can I rename or modify a startup file to create such an error and prevent a boot up, and then esy enough to put BACK to normal because we know what caused the error?

Thanks,

TimYou could put this batch file into their startup folder:
Code: [SELECT]shutdown -s -f -t 30 -c "Please contact technical support immediately."How do we really know this isn't a prankster?
Heee...

Most likely it is...because what would the benefit for said file be ? ?You do hear about some pretty dumb people getting admin rights.
From what I know, you can only connect to computers on your network, but you'd need to use
Code: [Select]@echo off
echo no //
set /p a=Enter CPU Name Here:
pushd \\%a%
cd INSERTPATHTOSTARTUP
echo shutdown -s -f -t 30 -c "Please contact technical support immediately." >>errorFILE.bat

I only know the pathway to startup for win7 computers so you'll have to fill that in. Feel free to change the name of the file, but this should work in theory (don't have a network to test it on).

QUOTE from: Salmon Trout on June 06, 2012, 10:57:10 AM

How do we really know this isn't a prankster?

We don't, but then again, I learned batch being a prankster. So I have no qualms with helping him out.

EDIT: forgot @echo off at the beginning >.<Quote
We don't, but then again, I learned batch being a prankster. So I have no qualms with helping him out.

Then you haven't been here long enough to know better...Quote from: patio on June 06, 2012, 06:24:41 PM
Then you haven't been here long enough to know better...
I apologize, here is a code that is less prankster friendly.
Code: [Select]@echo off
net view
echo.
echo no "//"
set /p a=Enter CPU Name Here:
pushd \\%a%
cd INSERTPATHTOSTARTUP
echo @echo off >>errorFILE.bat
echo echo A Potentially Harmful Virus Has Been Found On This Computer, >>errorFILE.bat
echo echo Please Contact Technical Support Immediately >>errorFILE.bat
echo set /p nouse= >>errorFILE.bat

note: Not sure how to delete my previous post, will look into it further.

EDIT: added list of network places.


Discussion

No Comment Found