Ftp map driver

 

Its possible to configure a machine to map to a FTP server as a drive (for instance the Microsoft site) providing the machine runs both NetBEUI and TCP/IP. Perform the following:

Perform a NSLOOKUP for the FTP site, e.g.
nslookup ftp.microsoft.com
make a note of the IP address
Edit the LMHOSTS file (in %systemroot%\system32\drivers\etc)
Add line
<ip address> MicrosoftFTP #PRE
e.g. 207.46.133.140 MicrosoftFTP #PRE
Save the file
Open a CMD.EXE session. Enter command:
nbtstat -R
This purges and reloads the name table cache
Type command:
net view \\MicrosoftFTP
You should see information on the site
Now map a drive (to share data)
net use * \\MicrosoftFTP\data /user:anonymous
All done. It will pass a drive letter for the connection

Firewall u kapatmak

 

Netsh ile firewall’u kapatmak için:

netsh firewall>set opmode disable

Netsh ile firewall’u açmak için:

netsh firewall>set opmode enable
Veyahut bir script ile firewall’u kapatmak için:

Set objFirewall = CreateObject(”HNetCfg.FwMgr”)Set objPolicy = objFirewall.LocalPolicy.CurrentProfileobjPolicy.FirewallEnabled = FALSEkomutunu .vbs olarak kaydedin. İster tıklayarak çalıştırın, ister başlangıca koyun,ister logon script olarak çalıştırın.Domain ortamında Group Policy ile bunu zaten yapabilirsiniz

Dos tan bat oluşturma

 

copy con ip.bat (enter)

@echo off (enter)

ipconfig /release (enter)

control+Z tuşlarına birlikte basın kayid edip çıkın

dosyanız hazır 🙂

veya