%3CLINGO-SUB%20id%3D%22lingo-sub-1164694%22%20slang%3D%22en-US%22%3EHow%20to%20Change%20the%20Performance%20Collection%20Duration%20for%20On-Demand%20Assessments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1164694%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20know%20for%20sure%20most%20of%20you%20know%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fservices-hub%2Fhealth%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EOn-Demand%20Assessments%3C%2FA%3E.%20For%20those%20who%20might%20want%20to%20learn%20more%20I%20can%20recommend%20this%20lecture%20called%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fservices-hub%2Fhealth%2Fgetting_started_with_on_demand_assessments%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGetting%20Started%20with%20On-Demand%20Assessments%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AvailableAssessments.PNG%22%20style%3D%22width%3A%20472px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170151iDDB38ED37BBE4035%2Fimage-dimensions%2F472x327%3Fv%3D1.0%22%20width%3D%22472%22%20height%3D%22327%22%20title%3D%22AvailableAssessments.PNG%22%20alt%3D%22AvailableAssessments%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAvailableAssessments%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20everyone%2C%20and%20in%20particular%20for%20the%20experts%2C%20I%20would%20like%20to%20discuss%20a%20theme%20which%20is%20gaining%20importance%20nowadays%3A%20performance%20collection%20and%20analysis.%20Even%20if%20not%20all%20of%20the%20available%20assessments%20include%20performance%20collection%20and%20analysis%2C%20for%20those%20which%20use%20this%20part%2C%20the%20good%20news%20is%20that%20you%20can%20alter%20the%20performance%20data%20collection%20duration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECorrect%2C%20the%20value%20is%20not%20hardcoded%20anymore%20%3Asmiling_face_with_smiling_eyes%3A.%20There%20is%20a%20technology%20agnostic%20feature%20provided%20by%20the%20assessment%20tool%20which%20allows%20you%20to%20reduce%20or%20to%20augment%20the%20collection%20time.%20Let%E2%80%99s%20look%20at%20how%20it%20works.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%20and%20foremost%2C%20let%20me%20start%20by%20saying%20that%20no%20changes%20to%20the%20tool%20itself%20or%20the%20customer%20environment%20are%20required.%20Hence%20the%20first%20question%20is%3A%20how%20does%20it%20work%20if%20no%20change%20is%20required%3F%20The%20answer%20is%3A%20Very%20easily.%20This%20feature%20just%20requires%20the%20creation%20of%20a%20simple%20file%20named%20%3CSTRONG%3E%3CEM%3Eperfoverride.ras%3C%2FEM%3E%3C%2FSTRONG%3E%20that%20must%20be%20placed%20in%20the%20root%20of%20the%20%25systemDrive%25%20(i.e.%20%3CSTRONG%3EC%3A%3C%2FSTRONG%3E)%20on%20the%20collector%20machine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WindowsEplorer.png%22%20style%3D%22width%3A%20837px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170134i74D3ECE531525AD2%2Fimage-dimensions%2F837x560%3Fv%3D1.0%22%20width%3D%22837%22%20height%3D%22560%22%20title%3D%22WindowsEplorer.png%22%20alt%3D%22WindowsExplorer%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EWindowsExplorer%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20file%20must%20contain%20an%20%3CU%3Einteger%20value%20representing%20the%20duration%20in%20minutes%3C%2FU%3E%20and%20no%20more%20than%20this.%20To%20be%20closer%20to%20the%20reality%2C%20if%20you%20want%20to%20collect%20perf%20data%20for%202%20hours%20and%20half%2C%20you%20have%20to%20create%20that%20file%20and%20put%20%3CSTRONG%3E%3CEM%3E150%3C%2FEM%3E%3C%2FSTRONG%3E%20as%20value%20in%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22FileContent.png%22%20style%3D%22width%3A%20620px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170130i67EE99D9B41AC48C%2Fimage-dimensions%2F620x329%3Fv%3D1.0%22%20width%3D%22620%22%20height%3D%22329%22%20title%3D%22FileContent.png%22%20alt%3D%22FileContent%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFileContent%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20value%20must%20be%20greater%20than%200%20and%20while%20running%20the%20assessment%2C%20the%20tool%20will%20search%20for%20this%20file%20and%20if%20found%20will%20honor%20the%20duration%20specified%20by%20it%20otherwise%20it%20will%20continue%20running%20with%20the%20original%20value%20configured%20in%20the%20solution%20package.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20we%20have%20theory%20clear%20in%20mind%2C%20there%E2%80%99s%20room%20for%20a%20second%20question%3A%20How%20can%20I%20quickly%20create%20this%20file%3F%20We%20have%20a%20few%20options%20here%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECopy%20the%20file%20from%20a%20previous%20engagement%3C%2FLI%3E%0A%3CLI%3EUse%20a%20text%20editor%20(such%20as%20Notepad.exe%20or%20any%20other%20of%20your%20choice)%20executed%20%E2%80%9CAs%20Administrator%E2%80%9D%20to%20create%20and%20populate%20the%20file%3C%2FLI%3E%0A%3CLI%3EUse%20the%20command%20line%20approach%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EOf%20course%2C%20rather%20than%20discussing%20the%20first%202%20point%2C%20I%20would%20like%20to%20suggest%20you%20a%20simple%2C%20but%20powerful%2C%20single%20line%20command%20to%20create%20and%20populate%20the%20file%20with%20a%20value%20of%20your%20choice%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CEM%3Eecho%20180%20%26gt%3B%20%E2%80%9Cc%3A%5Cperfoverride.ras%E2%80%9D%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhere%20%3CSTRONG%3E%3CEM%3E180%3C%2FEM%3E%3C%2FSTRONG%3E%20is%20the%20amount%20of%20time%20%3CSTRONG%3E%3CEM%3Ein%20minutes%20%3C%2FEM%3E%3C%2FSTRONG%3Eyou%20want%20to%20run%20collection%20for.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20command%20can%20be%20used%20in%20both%20Command%20Prompt%20(aka%20MS-DOS%20by%20nostalgic)%20and%20PowerShell.%20%3CU%3ERemember%20to%20run%20them%20%3CSTRONG%3Eelevated%3C%2FSTRONG%3E.%3C%2FU%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorBruno%20Gabrielli_7%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CommandPrompt.png%22%20style%3D%22width%3A%20903px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170131i8D2EE4953E530137%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22CommandPrompt.png%22%20alt%3D%22CommandPrompt%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ECommandPrompt%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorBruno%20Gabrielli_8%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PowerShell.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170156i32244A6720E9AF7B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22PowerShell.png%22%20alt%3D%22PowerShell.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2060px%3B%20background%3A%20%23D9D9D9%3B%22%3E%3CSTRONG%3E%3CEM%3ENOTE%3A%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3E%20Bear%20in%20mind%20that%20%3CU%3Ethis%20method%20at%20the%20moment%20can%E2%80%99t%20be%20used%20to%20skip%20perf%20collection%20at%20all%20and%20the%20value%20cannot%20be%200%3C%2FU%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20style%3D%22padding-left%3A%2060px%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20you%20are%20able%20to%20drive%20your%20customer%20to%20either%20a%20shorter%20or%20longer%20performance%20data%20collection%20duration%2C%20go%20ahead%20assessing%20%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1164694%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%26nbsp%3BI%20know%20for%20sure%20most%20of%20you%20know%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fservices-hub%2Fhealth%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EOn-Demand%20Assessments%3C%2FA%3E.%20For%20those%20who%20might%20want%20to%20learn%20more%20I%20can%20recommend%20this%20lecture%20called%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fservices-hub%2Fhealth%2Fgetting_started_with_on_demand_assessments%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EGetting%20Started%20with%20On-Demand%20Assessments%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EFor%20everyone%2C%20and%20in%20particular%20for%20the%20experts%2C%20I%20would%20like%20to%20discuss%20a%20theme%20which%20is%20gaining%20importance%20nowadays%3A%20performance%20collection%20and%20analysis.%20Even%20if%20not%20all%20of%20the%20available%20assessments%20include%20performance%20collection%20and%20analysis%2C%20for%20those%20which%20use%20this%20part%2C%20the%20good%20news%20is%20that%20you%20can%20alter%20the%20performance%20data%20collection%20duration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1164694%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBrunoGabrielli%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Hello everyone,

 

I know for sure most of you know about On-Demand Assessments. For those who might want to learn more I can recommend this lecture called Getting Started with On-Demand Assessments.

 

AvailableAssessmentsAvailableAssessments

 

For everyone, and in particular for the experts, I would like to discuss a theme which is gaining importance nowadays: performance collection and analysis. Even if not all of the available assessments include performance collection and analysis, for those which use this part, the good news is that you can alter the performance data collection duration.

 

Correct, the value is not hardcoded anymore :smiling_face_with_smiling_eyes:. There is a technology agnostic feature provided by the assessment tool which allows you to reduce or to augment the collection time. Let’s look at how it works.

 

First and foremost, let me start by saying that no changes to the tool itself or the customer environment are required. Hence the first question is: how does it work if no change is required? The answer is: Very easily. This feature just requires the creation of a simple file named perfoverride.ras that must be placed in the root of the %systemDrive% (i.e. C:) on the collector machine.

 

WindowsExplorerWindowsExplorer

 

The file must contain an integer value representing the duration in minutes and no more than this. To be closer to the reality, if you want to collect perf data for 2 hours and half, you have to create that file and put 150 as value in it.

 

FileContentFileContent

 

The value must be greater than 0 and while running the assessment, the tool will search for this file and if found will honor the duration specified by it otherwise it will continue running with the original value configured in the solution package.

 

Now that we have theory clear in mind, there’s room for a second question: How can I quickly create this file? We have a few options here:

  1. Copy the file from a previous engagement
  2. Use a text editor (such as Notepad.exe or any other of your choice) executed “As Administrator” to create and populate the file
  3. Use the command line approach

Of course, rather than discussing the first 2 point, I would like to suggest you a simple, but powerful, single line command to create and populate the file with a value of your choice:

 

echo 180 > “c:\perfoverride.ras”

 

where 180 is the amount of time in minutes you want to run collection for.

 

The command can be used in both Command Prompt (aka MS-DOS by nostalgic) and PowerShell. Remember to run them elevated.

 

CommandPromptCommandPrompt

 

PowerShell.png

 

NOTE: Bear in mind that this method at the moment can’t be used to skip perf collection at all and the value cannot be 0

 

Now that you are able to drive your customer to either a shorter or longer performance data collection duration, go ahead assessing :smile:.