Windows Server: logging users logon and logoff via PowerShell

You are planning a migration and you want to track and monitor for a few weeks when your server is being used the most?

  1. Open Windows PowerShell ISE ( or notepad 😉 )
  2. Add this PowerShell line below and save the script as monitorlogon.ps1
  3. "logon {0} {1} {2:yyyy-MM-dd HH:mm:ss}" -f $env:username, $env:computername, (Get-Date) >> logon.log
  4. Create another script file, add the PowerShell line below and save it as monitorlogoff.ps1
  5.  "logff {0} {1} {2:yyyy-MM-dd HH:mm:ss}" -f $env:username, $env:computername, (Get-Date) >> logoff.log
  6. Start the Logal Group Policy Editor ([Windows]+[r] > gpedit.msc)
  7. Navigate to [User Configuration] > [Windows Settings] > [Scripts (Logon/Logoff)]
  8. Double click on the [Logon] name
  9. Navigate to the [PowerShell Scripts] tabpage
  10. Click the [Add] button and select your monitorlogon.ps1 script.
  11. Optionally you can select the execution order, default is set to “Not configured”.
  12. Repeat again from step 6. for the Logoff script.

You can change the >> filename.log part to >> \\MyShare\filename.log.

If you want to do this on a Windows Server 2003 where you can’t run your PowerShell you will need to save the file as an *.cmd:

  1. Create a new file and call it monitorlogon.cmd
  2. Enter the line below and save the script as monitorlogon.cmd:
  3. echo logon %username% %computername% %date% %time% >> C:\logon.log
  4. Repeat this for monitorlogoff.cmd and adjust the script line.
  5. Follow the steps from the PowerShell script.

TCP Analyzer

This tool analyzes network traces of TCP connections. Given a Microsoft Network
Monitor trace, the analyzer provides various performance statistics and
visualizations for the captured TCP connection. Included are plots of the
time-sequence graph, round-trip time measurements, and more. The tool also
contains an analysis engine that attempts to explain what the limiting
performance factor of a particular connection was, such as limited physical
bandwidth, network congestion, or a receiver or sender window size that is too
small. The tool helps determine why a particular TCP connection is slow and
enhances understanding of what a connection is doing.

Info and downloads (x86 – x64) can be found here.

[ source ]

Real time World Cup 2010 traffic monitor

akamai

World Cup 2010_1276155290518

The 2010 World Cup is shaping up to be a major Internet milestone event, with billions of fans relying on the Internet for live and on-demand games, news, scores, and highlights of the most watched sporting event in the world. Whether it’s watching live streams of the game in HD video or the ability to share stories, photos, and memories at an unprecedented global scale, fans will experience the World Cup like never before.
This tool monitors real time traffic to the global broadcasters delivering traffic over Akamai’s network.

Check it out! This will be fun to watch the following days 😉

Thanks for the tip @pieter557

[ source ]

Modeling The World

A quote from Facebook:

Innovations in technology are transforming our ability to measure, monitor and model how the world behaves. We believe this has profound implications for scientific research and can transform the way we tackle global challenges like health care and climate change. It also will have a huge impact on engineering and business, delivering new breakthroughs and discoveries that could lead to the creation of new products, new businesses and even new industries.

We are proud to introduce Microsoft’s Technical Computing initiative, a new effort focused on empowering millions of the world’s smartest problem solvers. We’ve designed this initiative to bring supercomputing power and resources to a much wider group of scientists, engineers and analysts who are working to address some of the world’s most difficult challenges, through modeling and prediction.

In the coming months and years, we’ll collaborate closely with partners across industry and academia. Our goal is to create technical computing solutions that will speed discovery, invention and innovation. One day soon, complicated tasks like building a sophisticated computer model that would typically take a team of advanced software programmers months to build and days to run, will be accomplished in an afternoon by a single scientist, engineer or analyst working at their PC. Rather than grappling with complicated technology, they’ll be able to spend more time on important work.

As part of this initiative we’re also bringing together some of the brightest minds in the technical computing community at http://www.modelingtheworld.com to discuss the trends, challenges and opportunities we share. Personally, I think this site provides a great interactive experience with fresh, relevant content – I’m incredibly proud of it. Please tune in and join us—we welcome your ideas and feedback.

[ site ] [ twitter ] [ facebook ]