March 23 2024

Exchange create new cert, powershell

$certrequest = New-ExchangeCertificate -GenerateRequest -FriendlyName “WC_3-1-2024” -SubjectName “c=US,o=Absolute Computers,cn=*.wildcard.example.com” -DomainName *.wildcard.example.com -PrivateKeyExportable $true

[System.IO.File]::WriteAllBytes(‘\\EX1\temp\certrequest.txt’, [System.Text.Encoding]::Unicode.GetBytes($certrequest))

Import-ExchangeCertificate -FriendlyName “WC_3-1-2024” -FileData ([System.IO.File]::ReadAllBytes(‘\\EX1\temp\signedcert.crt’)) -PrivateKeyExportable $true


Get-ExchangeCertificate | Format-Table FriendlyName, Status, PrivateKeyExportable

Assign it: (Thumbprint)
Get-ExchangeCertificate | Format-Table Subject, Thumbprint
Enable-ExchangeCertificate -Server EX1 -Thumbprint 3CCE909364222906E8CDEE3765188FABD8851A89 -Services IIS,SMTP

Category: Uncategorized | Comments Off on Exchange create new cert, powershell
January 4 2024

PaperPort 14 crashes on launch

PaperPort has stopped working.

A problem caused the program to stop working correctly.
Windows will close the program and notify you if a solution is available.

——
https://nuance.custhelp.com/app/answers/detail/a_id/26923/~/paperport-crashes-on-launch

Resolution:

On the workstation, check this registry key:

HKEY_CURRENT_USER\Software\ScanSoft\PaperPort Desktop Group\Desktops

A series of Desktops, such as Desktop1, Desktop2, etc. should be visible.

Open each one in turn and verify it points to a valid location that can be opened manually. If a location that is invalid is found, delete the entire DesktopX key. Once this is done, restart PaperPort and it should load normally.
——-
https://community.spiceworks.com/topic/1323208-paperport-crashing-with-fatal-error

Yes, I have now got this fixed. Do you use Firefox by any chance? If so, there is a regedit fix that worked for me.

Find this key:

[HKEY_CURRENT_USER\Software\ScanSoft\PaperPort\PaperPort User Preferences]

“BrowserSelected”=”Mozilla Firefox”

If you have that, then change “Mozilla Firefox” to “Internet Explorer” and it all springs into life!
I’m guessing a change to Firefox has broken something in Paperport. Usual disclaimer about ‘on your own head be it’ when using regedit etc!

Let me know how it goes… and I actually found Nuance tech support v helpful

Good luck!

Category: Uncategorized | Comments Off on PaperPort 14 crashes on launch
July 17 2023

NFS Server: Fix blkmapd: open pipe file (nfs-blkmap)

#!/bin/bash

sudo mkdir /etc/systemd/system/nfs-blkmap.service.d
sudo cat > /etc/systemd/system/nfs-blkmap.service.d/fixpipe.conf <<EOF
#
[Service]
ExecStartPre=/usr/sbin/modprobe blocklayoutdriver
EOF
echo “% Now reboot and check the log”

https://forums.raspberrypi.com/viewtopic.php?t=323585

Category: Uncategorized | Comments Off on NFS Server: Fix blkmapd: open pipe file (nfs-blkmap)
May 26 2023

unifi controller install: debian 11

#https://lawrencesystems.com/self-hosted-unifi-network-application-controller-install-tutorial/
#mongodb 3.4 would not install because of libssl issue, 3.6 will on debian 11 as of 5/26/2023

# Based on UI documentation https://help.ui.com/hc/en-us/articles/220066768-UniFi-How-to-Install-and-Update-via-APT-on-Debian-or-Ubuntu

# Install base needs and java 11
apt-get update && apt-get install ca-certificates apt-transport-https openjdk-11-jre-headless gnupg2 -y

# Add Ubiquiti & Mongo to the sources
echo ‘deb https://www.ui.com/downloads/unifi/debian stable ubiquiti’ | tee /etc/apt/sources.list.d/100-ubnt-unifi.list
#echo “deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse” | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
echo “deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main” | tee /etc/apt/sources.list.d/mongodb-org-3.6.list

# Add trust for Ubiquiti and Mongo sources
#wget -qO – https://www.mongodb.org/static/pgp/server-3.4.asc | apt-key add –
wget -qO – https://www.mongodb.org/static/pgp/server-3.6.asc | apt-key add –
wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg

# Hold the java version for compatability so it does not break with updates
apt-mark hold openjdk-11-*

# Install the UniFi controller
apt-get update && apt-get install unifi -y

systemctl enable mongod
systemctl enable unifi

Category: Uncategorized | Comments Off on unifi controller install: debian 11
May 23 2023

Sonicwall ATT WiFi Calling Fix

LAN to WAN
Source Port: Any
Destination Port/Group:
Service: UDP 500
Service: UDP 4500
Source Object Any
Destination Object Any
Set UDP connection timeout to 200 seconds

https://www.att.com/support/article/wireless/KM1114459/
https://www.sonicwall.com/support/knowledge-base/unable-to-call-via-apple-wifi-calling/170505913456806/

As per the issue description, I understand that you are facing the issue, only with iPhones. Can you please try the below and test?

• Please follow the steps suggested under: https://www.sonicwall.com/support/knowledge-base/unable-to-call-via-apple-wifi-calling/170505913456806/ . If you are still facing the issue, then try the suggestion below.

• Can you please try creating an access rule from LAN to WAN with service-IKE and increased the UDP Inactivity timeout to 300 seconds? (Even if this resolves the issue, please get in touch with technical support and ask if keeping it at 300 seconds is fine or there is a lower recommended value).

Category: Uncategorized | Comments Off on Sonicwall ATT WiFi Calling Fix
February 17 2023

Nextcloud auto update script (sample)

release=latest-24
date=$( date ‘+%m%d%Y_%I%M%p’ )
systemctl stop apache2
cd /var/www
wget https://download.nextcloud.com/server/releases/$release.zip
#wget https://download.nextcloud.com/server/releases/latest.zip
#wget https://download.nextcloud.com/server/releases/nextcloud-23.0.12.zip
cp /var/www/html/config/config.php /var/www/config.php
mv /var/www/html “/var/www/nextcloud-old-$date”
unzip -q $release.zip;
mv /var/www/nextcloud /var/www/html;
mv $release.zip $release-$date.zip;
mv /var/www/config.php /var/www/html/config/config.php
chown -R www-data:www-data /var/www/html
find /var/www/html/ -type d -exec chmod 750 {} \;
find /var/www/html/ -type f -exec chmod 640 {} \;
systemctl restart apache2
cd /var/www/html;
usermod -s /bin/bash www-data
su www-data -c “php occ upgrade”
usermod -s /sbin/nologin www-data
systemctl restart apache2

nextcloud-auto

Category: Uncategorized | Comments Off on Nextcloud auto update script (sample)
November 11 2022

Change last logged on user on Windows 10

In Windows 10 you can no longer change the last logged on user in the registry like you could in Windows 7. Windows 10 requires the user’s SID to be entered as well. Here’s an updated guide.

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI, you’ll want to change 4 entries:

LastLoggedOnDisplayName
Enter the user’s full name, like Allan Jude
LastLoggedOnSAMUser
Enter the username, like SHORTDOMAIN\allan.jude
LastLoggedOnUser
Enter the username again, like SHORTDOMAIN\allan.jude
LastLoggedOnUserSID
Enter the user’s SID, like S-1-5-21-112783954-3472839473-6329827380-1437

You can find the exact SID with wmic useraccount where name=’allan.jude’ get sid
Or you can search through the list of all users with wmic useraccount, and pipe it into Windows’s version of grep, which I find easier to remember: wmic useraccount | findstr allan
Now you can log out, and you should be good to leave the workstation for the user.

https://gist.github.com/dbirks/ec4416c9064a323b14f435ee934efd71

Category: Uncategorized | Comments Off on Change last logged on user on Windows 10
October 7 2022

Windows built in VPN, dont use as network credentials

I know this is an old question, but I believe there is a better answer in that it doesn’t require any server-side changes: edit the VPN settings to not use the VPN credentials when authenticating to network servers. This setting is not exposed through Windows’ UI, so you need to locate the .pbk file associated with your VPN connection (%AppData%\Roaming\Microsoft\Network\Connections\PBK\rasphone.pbk for user VPNs) or (%ProgramData%\Microsoft\Network\Connections\Pbk\rasphone.pbk for system VPNs).

Right click on the VPN’s .pbk file and open it with Notepad. (Remember to untick ‘Always use this program for this file type’)
Roughly 5 lines down will be an entry ‘UseRasCredentials=1’
Change this to ‘UseRasCredentials=0’
Save the file.
I sourced these instructions are from: https://social.technet.microsoft.com/Forums/windows/en-US/0204464d-e32d-4584-966b-60788cce0d6f/disable-creation-of-vpn-session-credential-in-credential-manager-without-disabling-all-of

https://serverfault.com/questions/322235/do-not-use-vpn-credentials-to-connect-to-network-resources

Category: Uncategorized | Comments Off on Windows built in VPN, dont use as network credentials
September 21 2022

How to fix print_req_error: I/O error, dev fd0, sector 0 error

This is because, your kernel thinks you have a floppy disk fd0, but cant find one. To fix this issue, you can run the following in your terminal:

sudo rmmod floppy
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo dpkg-reconfigure initramfs-tools

How to fix print_req_error: I/O error, dev fd0, sector 0 error

Category: Uncategorized | Comments Off on How to fix print_req_error: I/O error, dev fd0, sector 0 error
September 10 2022

EdgeRouter install/update nano

set system package repository stretch components 'main contrib non-free'
set system package repository stretch distribution stretch
set system package repository stretch url http://http.us.debian.org/debian

Do apt-get update, but don’t do apt-get upgrade, as it will break some of the packages the ER depends on.

https://help.ui.com/hc/en-us/articles/205202560-EdgeRouter-Add-Debian-Packages-to-EdgeOS
https://community.ui.com/questions/Install-Nano/40e7697a-404b-4083-b901-dbedbfdc8a8c

Category: Uncategorized | Comments Off on EdgeRouter install/update nano