Pages

Translate

Sunday, January 27, 2013

Delete Network Printer Remotely

Delete Network Printer Remotely
Delete Network Printer Remotely
ျကားဖူးျကမွာပါ တခ်ို့ နက္၀က္ေတြ လုပ္ငန္းသံုးေတြမွာ print ေတြကို  share လုတ္ထားတယ္ ေပါ့ ဒီ print
share လုတ္ထားတာကို ဖ်က္ပစ္ ဟက္ပစ္ထိမ္းခ်ုပ္ပစ္ မယ့္ script ပါ ေနာက္ ကြန္ပ်ူတာ network system တစ္ခုလံုးကို ဖ်က္ပစ္ဟက္ပစ္ ထိမ္းခ်ပ္ ပစ့္မဲ့ script ေတြတင္ေပးပါမယ္ တင္ေပးမယ္ဆိုျပီး မတင္ျဖစ္တာေတြလဲမ်ားေနပါျပီး ကဲ note padကိုဖြင့္ပါ
@Echo off
REM this command file will delete a network printer to a computer remotely

REM the parameters are:

REM   1 - the name of the computer to which the network printer is to be deleted
REM   2 - the UNC name of the printer to be deleted

REM for example, to delete the printer called ThePrinter that is shared from the computer PrintServer
REM    to the computer called TheClient:

REM  key this command in a Command Prompt window:

REM     deleteglobalprinterremotely theclient printserver\theprinter


REM delete the specified printer to the specified computer

@Echo On
rundll32 printui.dll,PrintUIEntry /gd /c\\%1 /n\\%2
@Echo off

REM stop the print spooler on the specified computer and wait until the sc command finishes

@Echo On
start /wait sc \\%1 stop spooler
@Echo off

REM start the print spooler on the specified computer and wait until the sc command finishes

@Echo On
start /wait sc \\%1 start spooler

deleteglobalprinterremotely.cmd နဲ့ save ပါ  prin is delete and remotely  is really
  အျခား အင္တာနက္ဆိုင္ေတြ လုပ္ငန္းေတြ ေတာ္ေတာ္ မ်ားမ်ား က sever ထိုင္တဲ့ စက္ကေနျပီးေတာ့
print ေတြကို share ေပးျပီး ထိမ္းခ်ုပ္ထားပါတယ္ ဒီစနစ္ေတြကိုဖ်က္ပစ္မဲ့ script လို့ သက္မွတ္ပါ
ဥပမာ စာ ဖက္သူ က သူမ်ားနက္၀က္ထဲကို ေရာက္ရွိသံုးစြဲဒါမွမဟုတ္၀င္ဟက္မဲ့ သူ အခ်က္အလက္ခိုးယူမဲ့ သူဆိုရင္
ဒီလို script ေတြကို ေလ့လာသင့္ပါတယ္ ေနာက္လာမယ္ step by step ေပါ့ ေနေသာ္ေအာင္

China Hacker Group
Tags: Hacking


0 comments:

Post a Comment