Category Archives: Tips & Tricks

Disable Windows 10 First Sign-in Animation

  1. Run the Local Group Policy Editor (Start > type gpedit.msc)
  2. Navigate to Computer Configuration > Administrative Templates > System

  3. Select Logon

  4. Double-click Show first sign-in animation
  5. In the Show first sign-in animation windowselect Disabled and click OK
  6. Close the Local Group Policy Editor

Powershell logparse regexp to csv

Input line:

Thu 2017-03-30 00:00:07: user@domain.com (John Doe) checked mail from 127.0.0.1 using IMAP, 0 msgs collected, 21 remaining

Powershell script:

$rxp = "([a-z0-9!#\$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#\$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)|(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b)|(POP|IMAP)|(^[A-Z][a-z]+\s\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})"

gc ".\*.log" | select-string -pattern $rxp -allmatches | foreach {

if ($_.Matches.count -ne 4) {
return
}
[pscustomobject]@{
 'date'=$_.Matches[0]
 'email'=$_.Matches[1]
 'ipaddr'=$_.Matches[2]
 'proto'=$_.Matches[3]
 }
} | export-csv -notype analysis.csv

Change OpManager v11 PDF Report Footer

When generating reports in OpManager v11 and exporting as PDF, the footer contains “ManageEngine OpManager Page :” as the footer.

To change this, on your OpManager install, navigate to the installation path of OpManager and modify conf\brandProps.properties file.  Add the following line, and customize accordingly.

pdfFooterText=Your Company or Whatever | email@yourdomain.com |  Page:

You do not need quotes surrounding the pdfFooterText variable.

Save the file and go generate a report and export to PDF.  Enjoy!

Windows 10 File Explorer – Working on it…

When browsing my Downloads folder, or any folder in general, on Windows 10 I have experienced the “Working on it…” message and it takes a few seconds to load.  This doesn’t matter if I have a lot of files/folders or just a few, it still hangs.

Resolution

Open Folder Options > Set “Open File Explorer” to “This PC”. Try WinKey + E now.

If it opens fine, then problem is with Quick access cache, which can be cleared by deleting *.automaticDestinations-ms from the following directory, using Command Prompt.

del %AppData%\Microsoft\Windows\Recent\AutomaticDestinations\*.automaticDestinations-ms

Remove Windows Defender from Server 2016

I have my own security software I use on Windows Server operating systems and take out Windows Defender.  Normally, I can do this through Feature removal, but the option to remove Windows Defender was unable to be removed from the manager.

To remove, I used Powershell.

Remove-WindowsFeature Windows-Defender, Windows-Defender-GUI