Tuesday 25 August 2009

DHCP mac address filter

http://blogs.technet.com/teamdhcp/archive/2007/10/03/dhcp-server-callout-dll-for-mac-address-based-filtering.aspx

Tuesday 11 August 2009

Restore Grub

If you have your Linux system in a second (or third...) hard disk this method will not work. Please check Super Grub
Disk's method that address this problem.
1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.
2. Open a Terminal. Open a root terminal (that is, type "su" in a non-Ubuntu distro, or "sudo -i" in Ubuntu). Enter root passwords
as necessary.
3. Type "grub" which makes a GRUB prompt appear.
4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out
for the following lines. Note that you should have mounted the partition which has your Linux system before typing this command.
(e.g. In Knoppix Live CD partitions are shown on the desktop but they're not mounted until you double-click on them or mount
them manually)
5. Type "root (hd0,3)".
6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR.
If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".
7. Type "quit".

Remove cfmon on Windows

Go to Control Panel > Add/Remove Program.
Choose your Mcft Office 2003 Installation and click “Change”.
Choose "advanced customization of applications” , then click Next.
Go to “Alternative User Input” and click on the tab, a dropdown list will appear.
Choose “Not Available” on the dropdown list.
Click Continue.
Ok, now go to Control Panel > Regional and Language Options.
Than choose “Language” tab, click “Details”.
Go to “Advanced” tab, n tick “Turn off advanced text services”.
Click Ok - thats it - you are free from this one!

 

 

 

 

Chong quay roi dien thoai

Trước tiên, bạn đến địa chỉ http://www.vinaphone.com.vn đđăng

ký một tài khoản. Quy trình đăng ký tài khoản ở trang web của

Vinaphone hơi khắt khe và phức tạp. Trước tiên, bạn phải khai

báo số SIM (được in trên mặt sau của SIM, bao gồm 4 dòng, mỗi

dòng 5 số). Khi đăng ký, bạn viết theo thứ tự từ trên xuống dưới, các số viết liền nhau tạo thành một

dòng duy nhất có 20 số SIM. Chẳng hạn, từ trên xuống dưới bạn có 4 dòng số 12348, 75678,

89012, 93456 thì bạn sẽ khai báo liền mạch số SIM là 12348756788901293456.

Sau khi đăng ký, trang web sẽ trả về cho bạn một tin nhắn thông báo mật khẩu để truy cập vào tài

khoản của bạn trên web của Vinaphone. Bạn hãy xóa tin nhắn hoặc cất tin nhắn này cẩn thận đ

không ai biết cả.

Lúc đăng nhập, mục NetID - bạn điền số điện thoại của mình, còn mật khẩu thì lấy trong tin nhắn vừa

nhận lúc nãy. Điểm đặc biệt khi truy cập trang web của Vinaphone là cho phép lưu mật khẩu vào

trình duyệt không giới hạn thời gian nên sau này bạn không mất công gõ lại mật khẩu đđăng nhập

nữa.

Nhưng điều này lại rất nguy hiểm vì người ngoài có thể dễ dàng lấy được mật khẩu sử dụng tài

khoản của bạn và sử dụng vào những mục đích không tốt (Mobile và Sfone thì refresh đăng nhập

sau mỗi 10 phút tài khoản không được active nên độ an toàn cao hơn rất nhiều). Để an toàn hơn,

bạn có thể chọn mục Warn me before logging me into other sites để trang web cảnh báo cho bạn

biết khi có ai đó sử dụng trái phép tài khoản của bạn trên web.

Vì mật khẩu cung cấp sẵn rất khó nhớ nên sau khi đăng ký xong dịch vụ, bạn nên bấm chuột lên liên

kết thay đổi mật khẩu rồi làm theo hướng dẫn để chọn cho mình một mật khẩu an toàn, dễ nhớ hơn.

Tiếp theo, bạn vào mục cài đặt dịch vụ để thiết lập chế độ chặn các cuộc gọi, tin nhắn từ những số

điện thoại bạn không thích bằng cách đánh chọn lên mục chặn cuộc gọi rồi bấm nút thực Hiện. Bây

giờ một tin nhắn sẽ được gửi đến điện thoại của bạn và bạn nhập mật mã xác nhận là xong. Trong

trường hợp không đăng ký được, bạn nên thực hiện lại trong một lúc khác vì có thể lúc đó tổng đài

đang bận.

Lưu ý là hệ thống chỉ cho phép bạn thực hiện thao tác kích hoạt/hủy bỏ mỗi dịch vụ này 1 lần trong

ngày (1 lần kích hoạt hoặc 1 lần hủy bỏ) mà thôi, nghĩa là hôm nay bạn kích hoạt thì ngày mai bạn

mới hủy bỏ được. Sau khi kích hoạt dịch vụ chặn cuộc gọi, mật khẩu ngầm định là 1234. Bạn có thể

tự thay đổi mật khẩu khi sử dụng dịch vụ này từ máy di động của mình.

MobiFone:

Các mạng di động đều cung cấp dịch vụ chặn cuộc gọi từ số điện thoại bạn không thích, nhưng chỉ

duy nhất MobiFone có thêm tính năng chặn tin nhắn từ số điện thoại lạ. Trước tiên, bạn đăng nhập

vào địa chỉ trang chủ của Mobifone tại http://www.mobifone.com.vn rồi chọn mục Gửi tin nhắn > Gửi

tin nhắn > Chặn spam SMS.

Bây giờ, trong khung thêm vào danh sách, bạn chỉ việc điền địa chỉ những số điện thoại không muốn

nhận tin nhắn vào bên trong rồi bấm nút Add. Từ bây giờ, tin nhắn từ số điện thoại kia sẽ không bao

giờ đến được với điện thoại của bạn. Những số điện thoại spam sẽ được đưa vào danh sách hiện ra

bên dưới.

Để chặn cuộc gọi, bạn liên lạc với tổng đài qua số điện thoại 18001090.

Sfone:

Bạn có thể liên lạc trực tiếp tổng đài thông qua số điện thoại 905.

Viettel:

Bạn cũng đăng ký với tổng đài Viettel qua số điện thoại 19008198 (cước phí là 200 đồng/phút),

hoặc 18008119 (miễn phí).

EVN Telecom:

Bạn đăng ký với tổng đài qua số điện thoại 18009096

map ftp server as network drive

How can I map to an FTP server as a drive?

 

A. 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

1.

2. Edit the LMHOSTS file (in %systemroot%\system32\drivers\etc)

Add line

<ip address> MicrosoftFTP #PRE

e.g. 207.46.133.140 MicrosoftFTP #PRE

3.

4. Save the file

Open a CMD.EXE session. Enter command:

nbtstat -R

This purges and reloads the name table cache

5.

Type command:

net view \\MicrosoftFTP

You should see information on the site

6.

Now map a drive (to share data)

net use * \\MicrosoftFTP\data /user:anonymous

7.

8. All done. It will pass a drive letter for the connection

 

 

Friday 7 August 2009

script to create users - home folders and ntfs permissions

Complete script to create users, home folders and ntfs permissions

Assuming that you have a file users.txt with this format:

Last_name First_name Group Password

This script automatically create groups in the specified ou Sales, add users to this ou and to the respective groups, give users specified passwords, assign a logon script, create and share home folders and give ntfs permissions on them....a lot of work isn't it?

I must say that the script uses the rmtshare tool for setting shares, available for download from Microsoft.

 

@setlocal

@set ou=OU=Sales,DC=test,DC=com

@set domain=test.com

@set domainadmins=CN=Domain Admins,CN=Users,DC=test,DC=com

@set domainusers=CN=Domain Users,CN=Users,DC=test,DC=com

@rem Creation of groups

for /f "tokens=1,2* delims= " %%a in (users.txt) do dsadd group "CN=%%c, %ou%"

@rem Creation of users

for /f "tokens=1,2* delims= " %%a in (users.txt) do dsadd user "CN=%%b %%a, %ou%" -upn "%%b %%a" -fn %%b -ln %%a -display "%%b %%a" -loscr Scripts\logon.bat -pwd %%d -memberof "CN=%%c, %ou%"

@rem Creation of personal folders (home folders)

for /f "tokens=1,2* delims= " %%a in (users.txt) do md "D:\Homes\%%b %%a"

@rem Make shares on home directories

for /f "tokens=1,2* delims= " %%a in (users.txt) do rmtshare \\%COMPUTERNAME%\"%%b %%a$" = "D:\Homes\%%b %%a"

@rem Grant share rights on home folders

for /f "tokens=1,2* delims= " %%a in (users.txt) do rmtshare \\%COMPUTERNAME%\"%%b %%a$" /grant "%domain%\%%b %%a":CHANGE /grant "%domain%\Domain Admins":"FULL CONTROL"

@rem Give NTFS rights on home folders

for /f "tokens=1,2* delims= " %%a in (users.txt) do cacls "D:\Homes\%%b %%a" /T /C /G "%domain%\%%b %%a":C "%domain%\Domain Admins":F