Author Archives: Peter

Adopt Unifi Ubiquiti AP

SSH to the IP address of the AP Log on with username “ubnt” and password “ubnt” Run command “set-inform http://ip-of-controller:8080/inform”

Posted in Uncategorized | Comments Off on Adopt Unifi Ubiquiti AP

Install WSUS Updates with Powershell

Posted in Uncategorized | Comments Off on Install WSUS Updates with Powershell

Homebridge example file, Home Assistant and ffmpeg

[codesyntax lang=”php”] { “bridge”:{ “name”:”HomebridgeDocker”, “username”:”CC:22:3D:E3:CE:30″, “port”:51826, “pin”:”031-45-154″ }, “description”:”This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.”, “accessories”:[ ], “platforms”:[{ “platform”: “HomeAssistant”, “name”: “HomeAssistant”, … Continue reading

Posted in Uncategorized | Comments Off on Homebridge example file, Home Assistant and ffmpeg

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

[codesyntax lang=”powershell”] #Create socket object $Socket = New-Object Net.Sockets.TcpClient #Connect $Socket.Connect(“172.22.2.10”, “8888”) #Check if connected $Socket.Connected #Close connection $Socket.Dispose() [/codesyntax]

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

[codesyntax lang=”powershell”] [io.path]::GetFileNameWithoutExtension(“c:\temp\myfile.txt”) [io.path]::GetDirectoryName(“c:\temp\myfile.txt”) [io.path]::GetTempPath() [/codesyntax]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