Wednesday, April 22, 2015

UserEnvLogging in Windows Vista and higher

From Windows Vista, the GPO engine no longer records information in the UserEnv.log. Instead we use GPSVC logging.
Sadly, the resulting log file does not contain as much information as the UserEnv.log because all non GP related actions are not part of this log.
For those who want to have the same info as in UserEnvLogging, there is an option called Profile Logging.
To start logging (from a Command Prompt) type:
logman -start profile -p {eb7428f5-ab1f-4322-a4cc-1f1a9b2c5e98} 255 3 -ets
To stop logging (from a Command Prompt) type:
logman -stop profile -ets
You can view the ETL with a tool like SvcTraceViewer which is part of the Microsoft Windows Software Development Kit (SDK).

Tuesday, April 7, 2015

Monday, March 16, 2015

Export list with performance counters to file

(Get-Counter -ListSet *).Paths | Out-File C:\Counters.txt -width 120

Thursday, February 12, 2015

How to prepare your first Technical Presentation Part 2

Coming Up With A Catchy Title

The second post covering how a title can make your presentation stand out.

No Tutti-Frutti Please

If you want people to come to your session, use a clear title, no I see all in pink descriptions. Trigger them by telling exactly what it will be about but in a unique way. Like for example: The PowerShell 4 Mythbuster or Hey dude? Where are my PFE tools?
 

Keep It Short

No paragraphs but a simple one-liner. Use working words like building, writing etc. Mixing this with what was said previously: Hey dude? Help me building my first PowerShell script!

Action Is Fun

Well that's an easy one. If you are saying that you are going to show us how to build a script.... we will get to see demo's right? :P Yes, not only PowerPoint slides but a chance to DO something. See how a good title works?

Thursday, February 5, 2015

Netmon 3.4 Display Capture Filter

Still using Network Monitor instead Message Analyzer?
Joel Christenson from MSFT CTS created an extensive display capture filter which you can copy from here or from my OneDrive.

Tuesday, January 20, 2015

Export user and group memberships to CSV

Get-ADUser -LDAPFilter "(name=*)" -SearchScope Subtree `
-SearchBase "OU=path,OU=path,DC=path,DC=path,DC=path" | %{
$user = $_
$user | Get-ADPrincipalGroupMembership |
Select @{N="User";E={$user.sAMAccountName}},@{N="Group";E={$_.Name}}
}| Select User,Group | Export-Csv C:\Temp\Report.csv -nti

Monday, January 19, 2015

How to prepare your first Technical Presentation

Delivering a technical presentation regardless of the subject matter can be a real challenge. Even if you’re a 'seasoned' speaker there’s several steps that lead you to completing a successful presentation.
In a series of posts I’ll cover the following steps:
  1. How To Pick A Topic
  2. Coming Up With A Catchy Title
  3. Writing An Abstract
  4. Building The Slides
  5. Building The Demos
  6. Delivering The Presentation

How To Pick A Topic

When you submit to a major conference, deciding the topic to focus on is your first step to getting started. This step is critical because the idea that you come up with will impact the rest of your preparation. If you’re in need of a topic and have the equivalent to “writer’s block” then here are some tips to help you out:

Be Passionate

Have you ever been assigned a presentation topic that you’re not really passionate about? This may happen when you’re given a topic that just has to be covered with co-workers and often shows in your delivery.
If you are passionate about something it's more likely you'll write a more compelling abstract, be more proactive about content development and even deliver content in a way that connects better with the audience.

Present On What You Know

This sounds obvious, but you’d be surprised how many speakers pick topics that are completely out of their comfort zones. A certified doom scenario...! If you’re a new presenter, either pick something you know well or prepare to study all ins and outs. And get someone to ask you some questions to see if you are fit for showcasing on a podium.
  

Use Things You’ve Done At Your Job

I'm betting you’ve come up with some pretty inventive ways of solving problems while at work.
Why can’t you take your solutions and generalize the details, including the data? These items are the most popular because they’re based on real world problem solving.

Is Anyone Interested?

If you’re debating whether topics would be of interest, why not ask your colleagues which topics they like best. Not only are you getting valuable information back but you’re also doing a little early promoting for your session ;).

Keep A Journal

Ideas will come at any moment. If you’re not prepared you could have a sudden stroke of brilliance and before you know you’ve forgotten it. Always keep a pen and paper handy, or use apps like OneNote and log your ideas in a journal.

Tuesday, December 16, 2014

How to rename multiple sub-folders with PowerShell

$folders = gci 'C:\Users\luge\Crypt\HBI\*\*' | % {$_.FullName}
foreach ($folder in $folders)
   {
if ($folder -like '*CSS MPS Reports UK')
{
rename-item -path $Folder -NewName 'MPSREP_UK'
   }
}