Author Archives: Peter

Windows Live Photo Gallery database location

%userprofile%\AppData\Local\Microsoft\Windows Live Photo Gallery To clear the database, close the program and remove all files under here.

Posted in Windows | Comments Off on Windows Live Photo Gallery database location

Active Directory performance counters, Security System-Wide Statistics

Problem: You cannot see the counterset “Security System-Wide Statistics” with powershell when you run the command¬†Get-Counter -ListSet “Security System-Wide Statistics” Or when you run the “Get-Counter “\Security System-Wide Statistics\Kerberos Authentications” you get “Internal performance counter API call failed. Error: c0000bb8” … Continue reading

Posted in Active Directory, Performance | Comments Off on Active Directory performance counters, Security System-Wide Statistics

Autoenrollment is not working.

Problem: Group Policy says that autoenrollment is switched on but the¬†autoenrollment function is not working. None of your Root, Issuing or Machine certificates are enrolled. If you try to trigger the autoenrollment process you get an error. certutil -pulse CertUtil: … Continue reading

Posted in PKI, Windows | Comments Off on Autoenrollment is not working.

Set proxy for machine account

netsh winhttp set proxy proxy.domain.com:8080 “*.domain.com;*.domain2.com”

Posted in Windows | Comments Off on Set proxy for machine account

Test network ports with Powershell

Posted in Network | Comments Off on Test network ports with Powershell

Base64 encoding with certutil

Encode certutil -encode inputFileName encodedOutputFileName Decode certutil -decode encodedInputFileName OutputFileName

Posted in PKI | Comments Off on Base64 encoding with certutil

Powershell – Path and filename

Some simple examples on how to get filename and folder out of a path with powershell and .Net

Posted in Powershell | Comments Off on Powershell – Path and filename

Check local certificate store for expired certificate

This script looks inside local machine certificate store for expired certificates. If found, it writes to the event log.

Posted in Powershell, Uncategorized | Comments Off on Check local certificate store for expired certificate

Windows Firewall – How to bypass AD-policy and allow inbound traffic

In some cases i.e support and other troubleshooting issues you have to temporary disable or allow all traffic through Windows Firewall. 1. Open regedit.exe and browse to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile (This key does not exist if there is no AD-policy affecting your … Continue reading

Posted in Firewall, Windows | Comments Off on Windows Firewall – How to bypass AD-policy and allow inbound traffic

Move windows in Windows

1. Alt + Space 2. M 3. Use arrow keys to move windows

Posted in Windows | Comments Off on Move windows in Windows