{"id":2083,"date":"2023-02-03T13:43:26","date_gmt":"2023-02-03T13:43:26","guid":{"rendered":"https:\/\/www.theSQLReport.com\/?p=2083"},"modified":"2023-02-03T13:43:26","modified_gmt":"2023-02-03T13:43:26","slug":"using-microsofts-troubleshootingscript-version-2-tssv2-toolset-to-collect-support-information","status":"publish","type":"post","link":"https:\/\/www.theSQLReport.com\/?p=2083","title":{"rendered":"Using Microsoft&#8217;s TroubleShootingScript Version 2 (TSSv2) Toolset to Collect Support Information"},"content":{"rendered":"<p style=\"text-align: center;\">(If pictures are not being displayed below, try viewing this post in Microsoft Edge browser)<\/p>\n<p>When opening a support case with Microsoft for SQL Server, sometimes they ask for information about your Windows server that SQL Server is having issues.<\/p>\n<p>Sharing my notes on how to collect on how to use Microsoft&#8217;s TroubleShootingScript Version 2 (TSSv2) toolset to collect logs &amp; other information need for a case with Microsoft.<\/p>\n<h1>1.<\/h1>\n<p><strong>Download the TSSv2 utility:<\/strong><u><\/u><u><\/u><\/p>\n<p>Go to\u00a0<strong><a href=\"https:\/\/nam06.safelinks.protection.outlook.com\/?url=https%3A%2F%2Faka.ms%2FGetTss&amp;data=05%7C01%7Csupportmail2%40microsoft.com%7C970c9c5793c84d9a80e208da9fe73565%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637998112644354791%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=de7P56M4QiChFPKd0WTYoc%2FU4yVwnwFszlNTxB74h50%3D&amp;reserved=0\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/nam06.safelinks.protection.outlook.com\/?url%3Dhttps%253A%252F%252Faka.ms%252FGetTss%26data%3D05%257C01%257Csupportmail2%2540microsoft.com%257C970c9c5793c84d9a80e208da9fe73565%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637998112644354791%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%257C%257C%257C%26sdata%3Dde7P56M4QiChFPKd0WTYoc%252FU4yVwnwFszlNTxB74h50%253D%26reserved%3D0&amp;source=gmail&amp;ust=1673959953751000&amp;usg=AOvVaw064Y3yzqtEOXj4TcRbwb2F\">https:\/\/aka.ms\/GetTss<\/a><\/strong><u><\/u><u><\/u><\/p>\n<p>(link still works as of this writing)<u><\/u><u><\/u><\/p>\n<p>Website will automatically download file\u00a0<strong>TSSv2.zip<\/strong><\/p>\n<h1>2.<\/h1>\n<p>Copy the downloaded file (tssv2.zip) to the server (or servers if belonging to AlwaysOn Availability Groups) with issues. It is preferred (Microsoft&#8217;s preference) to put TSSv2 into <strong>C:\\Temp<\/strong><\/p>\n<p><u><\/u>\u00a0<u><\/u><strong>ATTENTION: Run on all servers if using High Availability<\/strong><\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2093 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir.jpg\" alt=\"\" width=\"971\" height=\"227\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir.jpg 971w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir-300x70.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir-768x180.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_TempDir-210x49.jpg 210w\" sizes=\"(max-width: 971px) 100vw, 971px\" \/><\/a><\/p>\n<h1>3.<\/h1>\n<p>Extract its contents (right-click to extract) in a folder (i.e <strong>C:\\Temp\\Tssv2<\/strong>)<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_ExtractAll.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2085 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_ExtractAll.jpg\" alt=\"\" width=\"758\" height=\"469\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_ExtractAll.jpg 758w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_ExtractAll-300x186.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_ExtractAll-210x130.jpg 210w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/a><\/p>\n<h1>4.<\/h1>\n<p>Then hit the <strong>Extract<\/strong> button.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Extract.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2084 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Extract.jpg\" alt=\"\" width=\"766\" height=\"571\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Extract.jpg 766w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Extract-300x224.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Extract-210x157.jpg 210w\" sizes=\"(max-width: 766px) 100vw, 766px\" \/><\/a><\/p>\n<h1>5.<\/h1>\n<p>Open an administrative Powershell session.\u00a0 That can be done by right clicking on the Powershell icon, and choosing &#8220;<strong>Run as administrator<\/strong>&#8220;.\u00a0 Please note that the TSSv2 utility need the administrative permissions to collect the needed information.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Powershell.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2087 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Powershell.jpg\" alt=\"\" width=\"473\" height=\"306\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Powershell.jpg 473w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Powershell-300x194.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Powershell-210x136.jpg 210w\" sizes=\"(max-width: 473px) 100vw, 473px\" \/><\/a><\/p>\n<h1>6.<\/h1>\n<p>The TSSv2 utility needs to run in the extracted folder. Type:\u00a0 <strong>cd\u00a0 C:\\Temp\\Tssv2<\/strong><\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2088 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir.jpg\" alt=\"\" width=\"1062\" height=\"513\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir.jpg 1062w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir-300x145.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir-1024x495.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir-768x371.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellChangeDir-210x101.jpg 210w\" sizes=\"(max-width: 1062px) 100vw, 1062px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h1>7.<\/h1>\n<p>Type (or cut &amp; paste):<u><\/u><u><\/u><\/p>\n<p><strong>.\\TSSv2.ps1 -SDP SQLBase -noPSR -AcceptEula<\/strong><u><\/u><u><\/u><\/p>\n<p>and hit Enter key.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellCommand.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2089 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellCommand.jpg\" alt=\"\" width=\"771\" height=\"221\" \/><\/a><\/p>\n<h1>8.<\/h1>\n<p>If this is the first time you are running it, the following message will appear and you just need to choose\u00a0<strong>R\u00a0<\/strong>or\u00a0<strong>A<\/strong><\/p>\n<h1>9.<\/h1>\n<p>After few seconds\/minutes it will ask you if you allow the collection to gather security event logs. Type\u00a0<strong>Yes<\/strong> and hit enter.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2092 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply.jpg\" alt=\"\" width=\"1077\" height=\"461\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply.jpg 1077w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply-300x128.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply-1024x438.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply-768x329.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellReply-210x90.jpg 210w\" sizes=\"(max-width: 1077px) 100vw, 1077px\" \/><\/a><\/p>\n<h1>10.<\/h1>\n<p>A pop-up status box may appear to show the utility is running.\u00a0 Depending on the server, it may run for about 5 minutes.<\/p>\n<p><u><\/u>\u00a0<u><\/u>Click though any errors that may appear, like &#8220;zip file not found.&#8221;<\/p>\n<h1><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2091 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp.jpg\" alt=\"\" width=\"1073\" height=\"788\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp.jpg 1073w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp-300x220.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp-1024x752.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp-768x564.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellPopUp-210x154.jpg 210w\" sizes=\"(max-width: 1073px) 100vw, 1073px\" \/><\/a><\/h1>\n<h1>11.<\/h1>\n<p>After some minutes the collector will finish and a message will be displayed, \u00a0 givng the output files will be store as\u00a0<strong>zip\u00a0<\/strong>on the path given at the ending message.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2090 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone.jpg\" alt=\"\" width=\"1071\" height=\"244\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone.jpg 1071w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone-300x68.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone-1024x233.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone-768x175.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_PowershellDone-210x48.jpg 210w\" sizes=\"(max-width: 1071px) 100vw, 1071px\" \/><\/a><\/p>\n<h1>12.<\/h1>\n<p>At this writing, the location of the zip file will be in the <strong>C:\\MS_DATA\\SDP_SQLBase<\/strong> folder.\u00a0 Copy that zip file, and upload it to your Microsoft case.<\/p>\n<p><a href=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2086 size-full\" src=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output.jpg\" alt=\"\" width=\"1108\" height=\"350\" srcset=\"http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output.jpg 1108w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output-300x95.jpg 300w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output-1024x323.jpg 1024w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output-768x243.jpg 768w, http:\/\/www.theSQLReport.com\/wp-content\/uploads\/2023\/01\/TSSv2_Output-210x66.jpg 210w\" sizes=\"(max-width: 1108px) 100vw, 1108px\" \/><\/a><\/p>\n<p><strong>Side Note:<\/strong><\/p>\n<p>Every time I run this utility, my security team reaches out to me because of the number of security alerts that this utility sets off (very locked down environment).\u00a0 This utility does collect registry information.\u00a0 Once the zipped file has been uploaded to your case, best to remove these files the TSSv2 utility collected from the server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(If pictures are not being displayed below, try viewing this post in Microsoft Edge browser) When opening a support case with Microsoft for SQL Server, sometimes they ask for information &hellip; <a class=\"readmore\" href=\"https:\/\/www.theSQLReport.com\/?p=2083\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[204,206,205,203],"class_list":["post-2083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sql-server","tag-microsoft-case","tag-powershell","tag-sqlbase","tag-tssv2"],"_links":{"self":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/2083"}],"collection":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2083"}],"version-history":[{"count":7,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions"}],"predecessor-version":[{"id":2100,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/posts\/2083\/revisions\/2100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=\/wp\/v2\/media\/2089"}],"wp:attachment":[{"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theSQLReport.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}