May be useful to get user's ip address over the phone, as users struggle to read through a long ipconfig result. Show Sample Output
To kill a process in windows by using the PID. Change 10728 to the PID of the process you want to kill. Show Sample Output
Note: %~nI expands %I to a file name only (cf. http://technet.microsoft.com/en-us/library/bb490909.aspx)
Firefox.exe needs to be in the path To enhance: add a sleep... url_list contains urls: D:\>type url_list.txt http://yahoo.com google.com http://fr.news.yahoo.com
Like ps on unix, but for windows. Show Sample Output
%t are tens. %d are digits. One may have further outer loops to provide hundreds, thousands, etc. This example applies ping to the numbered machines. The pattern can be used in other ways to apply all combinations of components to a task. Show Sample Output
-secgrp no for distribution -scope u for distribution
List local accounts and their SIDs (*-500 is the original local Administrator, *-501 is the original local Guest, more below). This is helpful in identifying local accounts that are not disabled, don't have an expiring password, etc. Well-Known SIDs https://support.microsoft.com/en-us/kb/243330 Show Sample Output
also shows the ethernet adapter Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: