Skip to content

Commit 1af7133

Browse files
committed
Minor update
Added Invoke-WebRequest -Uri https://login.microsoftonline.com at the start of the network trace and the end of the trace.
1 parent 6411694 commit 1af7133

2 files changed

Lines changed: 8 additions & 88 deletions

File tree

NetCap.txt

Lines changed: 0 additions & 87 deletions
This file was deleted.

NetCap1.4.ps1 renamed to NetCap1.41.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<#PSScriptInfo
33
4-
.VERSION 1.4
4+
.VERSION 1.41
55
66
.GUID cecc1f48-fc57-4fa9-b74c-4eb2be4d6602
77
@@ -110,12 +110,19 @@ Nbtstat -RR
110110
#klist -li 0x3e7 purge #machine
111111
Get-WmiObject Win32_LogonSession | Where-Object {$_.AuthenticationPackage -ne 'NTLM'} | ForEach-Object {klist.exe purge -li ([Convert]::ToString($_.LogonId, 16))}
112112

113+
#Make a token connection to login.microsoftonline.com
114+
Invoke-WebRequest -Uri https://login.microsoftonline.com
115+
113116
#Read-Host " "
114117
Write-Host ""
115118
Write-host "Please reproduce issue NOW." -ForegroundColor Green
116119
Write-Host ""
117120
Write-Host "Press ENTER to stop capture session when reproduction is complete" -ForegroundColor Yellow
118121
Read-Host " "
122+
123+
#Make a token connection to login.microsoftonline.com
124+
Invoke-WebRequest -Uri https://login.microsoftonline.com
125+
119126
netstat -anob > c:\temp\Capture\$env:computername" Netstat "$(get-date -f dddd-MMMM-dd-yyyy-HH.mm.ss).txt
120127
Write-Host "Retrive your ETL trace file @ $path" -ForegroundColor Yellow
121128
Write-Host "Opening Explorer to $path" -ForegroundColor Yellow

0 commit comments

Comments
 (0)