Useful commands for Windows

How many users are logged on/connected to a server


Who is logged on to a computer

NBTSTAT -a remotecomputer | FIND "<03>" | FIND /I /V "remotecomputer"

What is the full name for this login name

NET USER loginname /DOMAIN | FIND /I " name "
DSQUERY USER -samid *loginname* | DSGET USER -samid -display

When did someone last change his password

NET USER loginname /DOMAIN | FIND /I "Password last set"

How to reset someone’s password

NET USER loginname newpassword /DOMAIN

Is someone’s account locked

NET USER loginname /DOMAIN | FIND /I "Account active"

How to unlock a locked account


or, if the password needs to be reset as well:

NET USER loginname newpassword /DOMAIN /ACTIVE:YES

List all domains and workgroups in the network


List all computers in the network


List all domain controllers

2000 Server:
2003 Server:

List all drivers on any PC

DRIVERQUERY /V /FO CSV > %ComputerName%.csv

List all printers on any PC

WMIC /Node:remote_PC Path Win32_Printer Get DeviceID

Disable Windows Firewall for domain only

NETSH Firewall Set OpMode Mode = DISABLE Profile = DOMAIN

Completely disable Windows Firewall

SC [ \Remote_computer ] Stop SharedAccess
SC [ \Remote_computer ] Config SharedAccess start= disabled

List all local administrators


NET LOCALGROUP Administrators

Delete a computer account

NETDOM /DOMAIN:MyDomain MEMBER \computer2Bdeleted /DELETE

Kannel parameters (escape codes)

%k the keyword in the SMS request (i.e., the first word in the SMS message)

%s next word from the SMS message, starting with the second one (i.e., the first word, the keyword, is not included); problematic characters for URLs are encoded (e.g., ’+’ becomes ’%2B’)

%S same as %s, but ’*’ is converted to ’~’ (useful when user enters a URL) and URL encoding isn’t done (all others do URL encode)

%r words not yet used by %s; e.g., if the message is “FOO BAR FOOBAR BAZ”, and the has been one %s, %r will mean “FOOBAR BAZ”
%a all words of the SMS message, including the first
one, with spaces squeezed to one
%b the original SMS message, in a binary form
%t the time the message was sent, formatted as
“YYYY-MM-DD HH:MM”, e.g., “1999-09-21

Remove items from your Web History (Google accounts)

Remove items from your Web History

If you’d like to remove items from your Web History, just follow these steps:

  1. Visit your Web History page at new window.
  2. Select any items you don’t want and click the Remove button. There’s also a link to Remove all Web History.

You can delete information from Web History using the remove feature, and it will be removed from the service.

However, as is common practice in the industry, and as outlined in the Google Privacy Policy, Google maintains a separate logs system for auditing purposes and to help us improve the quality of our services for users.

To learn more about removing items from your Web History, please read the Web History Privacy FAQ new window

Hide Skype’s DialPad in Mac

1. Use any PLIST editor.

2. Open Skype preference file (~/Library/Preferences/

3. Change property DialpadOpen from YES to NO

4. Save the file.

This annoying dial pad is now always hidden and you can open it when needed.


Mac OSX Lion reverse scroll direction

Apple introduced OS X Lion yesterday but already one major complaint has been lodged against the Mac upgrade: Scrolling. Lion revolutionizes scrolling, literally reversing it. Now when you move your fingers up the trackpad, you scroll up the page instead of down, and vice versa.

To be fair, we understand the change: Apple’s trying to capitalize on the popularity of touch gestures and must believe that natural instinct would have us move our hand upward when wanting to move information in that direction. Unfortunately, the scroll bar has become almost an extension of our hands and we’re preprogrammed to do the opposite of this. Anything else feels like trying to write left-handed when you’re a rightie.

defaults write ~/Library/Preferences/.GlobalPreferences -bool false


Free speller for Office 2011

You want to have a speller in your native language and Microsoft does provide it? Do not worry, the solution is simple.
What you will need is and it’s dictionary. Choose the dictionary that you prefer (our choice el_GR.dic) and the english speller (English Speller.proofingtool) from Office.

So with the help of el_GR.dic we created a Custom Greek Dictionary.dic for word and then converted English Speller.proofingtool to Greek Speller.proofingtool, changing only some parameters at info.plist.

Set the file Custom Greek Dictionary.dic as custom dictionary for Greek language at word Preferences and the Greek Speller.proofingtool copy it at /Applications/Microsoft Office 2011/Office/Shared Applications/Proofing tools.

Do you want to try our solution for Greek language? Download the following files and follow the above steps:

Custom Greek Dictionary.dic


Most useful commands for Linux

* Continuously check Apache error log file:
$ tail -f /var/log/httpd/error_log

* View first 15 lines from MySQL log:
$ head -15 /var/log/mysqld.log

* vi keyboard shortcuts
=> jump to end of line
=> start of line
=> Delete rest of line
=> Repeat the last command given:
. (dot)

=> add ‘maal’ to the end of every line. 1 is line 1, $ is the last line
:1,$ s/$/maal/

=> put ‘bingo’ at the start of lines 5-10
:5,10 s/^/bingo/

=> change foo to bar for all occurrences in the rest of the file from where the cursor is

=> Delete current line and got into insert mode.

=> Remove the ^M from files that came from windows:
:se ff=unix

=> Turn on/off display of line numbers:
:set nu
:set nonu

=> if you want actual line numbers in your file:
:%!cat -n

=> find the word under cursor
* (star)

* screen command
Just type screen and your problems are solved 🙂
$ cat ~/.screenrc
# no annoying audible bell, please
vbell on

# detach on hangup
autodetach on

# don’t display the copyright page
startup_message off

# emulate .logout message
pow_detach_msg “Screen session of $LOGNAME $:cr:$:nl:ended.”

# advertise hardstatus support to $TERMCAP
termcapinfo xterm* ti@:te@

# make the shell in every window a login shell
shell -$SHELL

defscrollback 10000

# Extend the vt100 desciption by some sequences.

termcap vt* AF=E[3%dm:AB=E[4%dm
caption always
caption string ‘%{= wk}[ %{k}%H %{k}][%= %{= wk}%?%-Lw%?%{r}(%{r}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %{k}][%{b} %d/%m %{k}%c %{k}]’

# keybindings

bind -k F5 prev
bind -k F6 next

* Display total number of internet (port 80) connections:
$ netstat -an |grep :80 |wc -l

* Display all ports your machine listening on:
$ netstat -ant | grep LISTEN

* Scan a machine on your LAN with nmap and know which ports are open on it:
$ nmap ip

* find top 10 largest files in /var:
$ find /var -type f -ls | sort -k 7 -r -n | head -10

* find all files having size more than 5 GB in /var/log/:
$ find /var/log/ -type f -size +5120M -exec ls -lh {} ;

* find all today’s files and copy them to another directory:
$ find /home/me/files -ctime 0 -print -exec cp {} /mnt/backup/{} ;

* find all temp files older than a week and delete:
$ find /temp/ -mtime +7-type f | xargs /bin/rm -f

* find and rename all mp3 files by changing their uppercase names to lowercase:
$ find /home/me/music/ -type f -name *.mp3 -exec rename ‘y/[A-Z]/[a-z]/

* Print Apache’s documentroot directory name:
$ grep -i documentroot /etc/httpd/conf/httpd.conf

* View file contents without comments and empty lines:
$ grep -Ev “^$|^#” /etc/my.cnf

* print only IP address assigned to the interface:
$ ifconfig eth0 | grep ‘inet addr:’ | cut -d’:’ -f2 | awk ‘{ print $1}’

* How many email messages sent for a particular date:
$ cat /var/log/maillog | grep “status=sent” | grep “May 25” | wc -l

* Find out a running process/daemon from process list (thanks to staranneph for recalling this):
ps -ef | grep mysql

* You can also note cpu/mem usage by using above. like in below command output, you can see that Plesk’s statistics process is utilizing more than 18% cpu alone:
[root@myserver ~]# ps aux | grep statistics
root 8183 18.4 0.0 58384 2848 ? D 04:05 3:00 /usr/local/psa/admin/sbin/statistics

WiMAX™ Operators Gather to Draft Global Roaming Agreements

Taipei, Taiwan — Sixteen WiMAX operators from across the globe gathered in Taipei this week to draft roaming agreements and bring consumers one step closer to true global roaming on 4G networks. The first WiMAX Forum Global Operator Summit served as an interactive working event for all service providers to gain a concrete understanding of the opportunity for roaming and how to build a best-in-class framework for execution.

Global roaming continues to be one of the biggest challenges and opportunities for operators in the near and long-term. According to Informa Telecoms & Media, global roaming revenues are expected to grow by 86 percent over the next five years to reach USD $67 billion in 2015.

“The WiMAX Forum Global Operator Summit was created to specifically address overcoming both business and consumer perceptions that data roaming is expensive, and to explore ways to help operators grow revenue,” said Ron Resnick, president and chairman of the WiMAX Forum. “WiMAX has an established ecosystem with nearly 600 deployments around the world. The opportunity for operators to offer their customers roaming is there, and it is an excellent way for operators to add another viable revenue stream and earn returns on their 4G network investments.”

Nearly 70 representatives attended working sessions and collaborated to overcome industry obstacles, including: Accton Wireless Broadband, Aicent, ADT-BV, Alepo, Apacewave, Aptilo, AT4 Wireless, Banglalion, BridgeWater Systems, BSNL, Bureau Veritas ADT, Clearwire, Elite Core – India, Encodex Telesystems, FarEasTone, Gemtek, Global Mobile, Greenpacket, ID-WIBB, Indochina Telecom, Intel, ITRI, KT Telecom, LG Electronics, Media Tek Inc., Mformation, Motorola, M-Skylink Telecom, Packet One International, Planet Online Laos, Samsung, Sprint, Syniverse, Tatung InfoComm Co. Ltd., TTC, UQ Communications, VeeTime, Wi-Tribe and YTL Communications.

The WiMAX Forum Operator Summit event team included representatives from Sprint Nextel, Packet One Networks and ITRI of Taiwan. Summit sponsors included: Aicent, Aptilo Networks, Gemtek, Global Mobile Corporation, Green Packet and Vee Telecom.

Windows Phone 7 Devices Will Charge Only When Powered On

Mobile phones running under Microsoft’s new Windows Phone 7 operating system would charge only when powered on, as the charging process has been reportedly set to be controlled by the operating system.

Basically, this meant that, in case the handset is plugged in while turned off, it would turn on automatically. Moreover, if one tries to turn it offer while charging, the handset would only reboot.

When asked on Microsoft Answers why do the Windows Phone 7 devices behave this way, a moderator answered the following:

Personally I don’t like this behavior too but there are several reasons for it:

– main one would be that the charging process is now controlled by OS and therefore it must be running
– on many feature phones (including WP7) alarms are not working when the device is turned off
– wireless Zune synchronization

Basically, in case one user plugs in the Windows Phone 7 device for charging and it boots up, he/she should know that this is normal behavior.

Devices powered by other mobile operating systems out there enable users to charge them even at times when they are turned off, and this applies to handsets powered by Microsoft’s older Windows Mobile platform as well.

Of course, it is rather interesting that Microsoft decided to design the Windows Phone 7 OS this way, but those who would like to purchase and use such devices would have to accept this.

As for the reasons invoked for this state of facts, at least two of them stand up, including the OS control for a proper charging, and the wireless syncing with the PC, which would be performed only at times when the device is plugged in.

As for the fact that some features of the handset won’t work while it was turned off, such as the Alarm, this is the same behavior as with Windows Mobile, or even other mobile platforms out there, including Android, a recent article on Pocketnow reads.