bsharath
asked on
Need a script that will disable the system restore remotely.
Hi,
Need a script that will disable the system restore remotely.
Need a way to be able to disable the system restore from all the machines in the file.
Any way to do this...
Need help urgent,.... Many of my machines has got virus within the folder of system restore.
Regards
Sharath
Need a script that will disable the system restore remotely.
Need a way to be able to disable the system restore from all the machines in the file.
Any way to do this...
Need help urgent,.... Many of my machines has got virus within the folder of system restore.
Regards
Sharath
ASKER
Hi Farhan
Yes i have it but not doing it on a list of machines...
Its a per machine script if i am not wrong
Yes i have it but not doing it on a list of machines...
Its a per machine script if i am not wrong
ASKER
Hi Farhan
Yes i have it but not doing it on a list of machines...
Its a per machine script if i am not wrong
Yes i have it but not doing it on a list of machines...
Its a per machine script if i am not wrong
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Farhan
Does this just stop or restart
I get this in the file
SERVICE_NAME: srservice
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x3a98
[SC] ChangeServiceConfig SUCCESS
Does this just stop or restart
I get this in the file
SERVICE_NAME: srservice
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x3a98
[SC] ChangeServiceConfig SUCCESS
ASKER
Farhan
Does this just stop or restart
I get this in the file
SERVICE_NAME: srservice
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x3a98
[SC] ChangeServiceConfig SUCCESS
Does this just stop or restart
I get this in the file
SERVICE_NAME: srservice
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x3a98
[SC] ChangeServiceConfig SUCCESS
First it will stop the service then it will disable the service.
ASKER
Ok what does the above code mean...
has it stopped and disabled?
has it stopped and disabled?
Above output shows that the service is process of STOP.
Sharath,
I know you wanted a scripting method to do this, but have you seen the method provided by Group Policy to achieve the same? See http://www.theeldergeek.com/re-enable_system_restore.htm (although do it in Group Policy Management and not through gpedit.msc!)
Matthew
-tigermatt
I know you wanted a scripting method to do this, but have you seen the method provided by Group Policy to achieve the same? See http://www.theeldergeek.com/re-enable_system_restore.htm (although do it in Group Policy Management and not through gpedit.msc!)
Matthew
-tigermatt
ASKER
Matthew but i need to do this just for selected computers that have virus sitting inside the restore folder...
So a script is useful...Any ways thanks for the link would be useful some time....
So a script is useful...Any ways thanks for the link would be useful some time....
ASKER
Thanks Farhan
Disable "System Restore Service" service on client machines.
I think you already has a script that read files for computer names and disable mentioned service.