Robocopy Examples
Copy User Profile Directory from One Computer to another, without copying junctions, recycle bins, or outlook folder in appdata. IF NOT EXIST c:robocopy md c:robocopy robocopy \old-computerc$Usersuser.name C:Usersuser.name /E /XC /XN /XO /XJ /XD “$RECYCLE.BIN” “AppData” /R:1 /W:1 /log+:c:robocopyuser.name-main.log robocopy \old-computerc$Usersuser.nameAppDataLocalLow C:Usersuser.nameAppDataLocalLow /E /XC /XN /XO /XJ /XD “$RECYCLE.BIN” /R:1 /W:1 /log+:c:robocopyuser.name-locallow.log robocopy \old-computerc$Usersuser.nameAppDataRoaming C:Usersuser.nameAppDataRoaming […]
Fix UniFi Controller Mongodb 3.4
If you’re seeing this when running apt update on your UniFi controller, then run the code at the end of this post. An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures were invalid: EXPKEYSIG BC711F9BA15703C6 MongoDB […]
Reboot Unifi AP’s from controller
#!/bin/bash ####################################################################### # A simple script for remotely rebooting a Ubiquiti UniFi access point # https://github.com/stevejenkins/unifi-linux-utils # https://github.com/stevejenkins/unifi-linux-utils/blob/master/uap_reboot.sh # Version 2.3 (Mar 28, 2018) # by Steve Jenkins (http://www.stevejenkins.com/) # # Requires bash and sshpass (https://sourceforge.net/projects/sshpass/) # which should be available via dnf, yum, or apt on your *nix distro. # # apt install bash […]
Slow Down Dell Server Fans
“C:Program Files (x86)DellSysMgtbmcipmitool.exe” -I lanplus -U root -P -H 192.168.1.28 raw 0x30 0x30 0x01 0x00″C:Program Files (x86)DellSysMgtbmcipmitool.exe” -I lanplus -U root -P -H 192.168.1.28 raw 0x30 0x30 0x02 0xff 0x2c”C:Program Files (x86)DellSysMgtbmcipmitool.exe” -I lanplus -U root -P -H 192.168.1.28 raw 0x30 0x30 0x02 0xff 0x20 That 20 at the end of the last line is […]
Viewing HEIC images in Windows 10 Photos App
You do NOT need to pay view heic images in Windows 10. You DO need to install both the image extensions and the video extensions store apps to be able to view heic images. Image Extensions Link https://www.microsoft.com/en-us/p/heif-image-extensions/9pmmsr1cgpwg Video Extensions Link ms-windows-store://pdp/?ProductId=9n4wgh0z6vhq
Outlook not working after enabling Multi-factor Authentication
If your Outlook suddenly starts prompting for a password after enabling multi-factor (mfa) or two factor authentication (2fa), you likely skipped a step. Go here and download the Exchange Online PowerShell Module for MFA. You have to use Original Windows 10 Edge or Internet Explorer. https://outlook.office365.com/ecp/ Click hybrid at the bottom of the left hand […]
Make OpenJava work in Windows
AdoptOpenJava Registry x64 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeJavaSoftJava Runtime Environment] “CurrentVersion”=”1.8” “BrowserJavaVersion”=”11.201.2” [HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeJavaSoftJava Runtime Environment1.8] “RuntimeLib”=”C:\Program Files\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\jvm.dll” “JavaHome”=”C:\Program Files\AdoptOpenJDK\jre-8.0.212.03-hotspot” “MicroVersion”=”0” [HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeJavaSoftJava Runtime Environment1.8.0_201] “JavaHome”=”C:\Program Files\AdoptOpenJDK\jre-8.0.212.03-hotspot” “MicroVersion”=”0” “RuntimeLib”=”C:\Program Files\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\jvm.dll” [HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeJavaSoftJava Runtime Environment1.8.0_201MSI] “INSTALLDIR”=”C:\Program Files\AdoptOpenJDK\jre-8.0.212.03-hotspot\” “JU”=”” “OEMUPDATE”=”” “FROMVERSION”=”NA” “FROMVERSIONFULL”=”” “PRODUCTVERSION”=”8.0.2010.9” “EULA”=”” “JAVAUPDATE”=”1” “AUTOUPDATECHECK”=”1” “AUTOUPDATEDELAY”=”” “FullVersion”=”1.8.0_201-b09” Original Java Registry x64 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESOFTWAREWOW6432NodeJavaSoftJava Runtime […]
Grub Timeout Issue with Ubuntu 18.04
there’s some kind of bug with the grub in 18.04. no matter what you put in the timeout of the grub file, it always takes 30 seconds to boot. do the below. that should get your what you want.
EdgeOS DNS forwarding
If you already have a vpn set up and established, you can use the following to setup DNS forwarding for your domain from your remote site to you main site. This is done in CLI which you can access from the web UI if you want.
Reblog of Securing Ubiquiti UniFi Cloud Key with Let’s Encrypt SSL and automatic dns-01 challenge
The following was lifted from here: https://www.naschenweng.info/2017/01/06/securing-ubiquiti-unifi-cloud-key-encrypt-automatic-dns-01-challenge/ I’m reposting it so i have easy access to it. This is not my work, nor did I have anything to do with it. curl https://get.acme.sh | sh Exit the terminal and re-open it again. We will also enable auto-upgrade for acme.sh (the –accountemail will be used for Let’s Encrypt […]
