Friday, October 5, 2012

Replacement Commands

Netdom http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/29/use-powershell-to-replace-netdom-commands-to-join-the-domain.aspx

UPDATE - PowerShell 3.0 now includes a last switch for get-content
get-content <file> -last 5
To watch a log file ...
get-content <file> -wait
but not exactly the same functionality. So a better way is to get the command from Microsoft.

Tail is included in the 2003 Resource Kit and works well in Server 2008 environment.
Download tail here:
http://www.microsoft.com/download/en/details.aspx?id=17657