Browsed by
Author: wrx7m

QuickTip – One-Time Scheduled CentOS (and Other Linux Distros) Server Reboot

QuickTip – One-Time Scheduled CentOS (and Other Linux Distros) Server Reboot

Let’s say that you ran some updates on your CentOS server but can’t reboot it until a later time, like when users have gone home for the day. Run this simple command to schedule the server to reboot at a certain time. In this case, 8 PM. sudo shutdown -r 20:00 As indicated in the confirmation received after running the command, you can use this command to override and cancel the scheduled reboot, you can run this command- sudo shutdown…

Read More Read More

DNF-Automatic – Schedule Updates for Fedora (and other Linux distros)

DNF-Automatic – Schedule Updates for Fedora (and other Linux distros)

If you want to have Fedora (and other rpm-based distros) update itself, you can use DNF-Automatic. First, we’ll need to install it. I’ll assume that this is a fresh server and you decided to login as root to get everything configured. # dnf -y install dnf-automatic Now that it is installed, we will edit the automatic.conf config file with nano- # nano /etc/dnf/automatic.conf You will notice that there are several sections. Each section has a description of the options and…

Read More Read More

QuickTip – Need to Check the Active Connections to Your Squid Proxy Server?

QuickTip – Need to Check the Active Connections to Your Squid Proxy Server?

If you want to update and reboot your Squid proxy server, you might want to check to see if there are active connections. Run this netstat command with grep to check all the active connections on your squid proxy port. netstat -na | grep :3128 If you only see this result, no one is currently connected- When at least one device is connected, you will see something like this-

VMWare PowerCLI – Backup ESXi Host Configuration

VMWare PowerCLI – Backup ESXi Host Configuration

I had been using a version of this script to backup my VMWare ESXi host configurations for several years and across several versions of ESXi and vCenter server. This script was connecting to my vCenter Server (at 192.168.0.9) and downloading the configurations to a network share (at 192.168.0.62). It would also cycle the files in and out (deleting old backups) in a First-In-First-Out scheme. Param ( [string]$VIServer = “192.168.0.9”, [string]$ConfigPath = “\\192.168.0.62\backups\ESXiHosts\”, [int]$Days = 21 ) If (-not (Get-PSSnapin VMware.VimAutomation.Core…

Read More Read More

QuickTip – Need to Clear DNS Cache on a Remote System?

QuickTip – Need to Clear DNS Cache on a Remote System?

I have been using PDQ Deploy in central server mode and have had an occasional issue when deploying new systems, where the name and/or IP address is changed (say from a wired to wireless network) and the PDQ deploy server still has the DNS name and IP cached. Obviously, running – IPConfig /flushdns will only clear the cache on your local system. But, the problem is that the PDQ Deploy server needs to have its DNS cache cleared. Run this…

Read More Read More

PSWindowsUpdate – Use PowerShell (and other tools) to Automate Windows Updates

PSWindowsUpdate – Use PowerShell (and other tools) to Automate Windows Updates

I was searching for a way to further automate new Windows system deployments. One thing I kept running into was Windows updating. I have refined and added automation to my process over the past several years. For Windows 10 clients, my current deployment process involves an MDT/WDS server that has a stock Windows 10 wim file. To customize the deployments, I have a collection of GPOs and PDQDeploy packages for software installation and some other GPOs for policies. I recognized…

Read More Read More

QuickTip: Azure Active Directory Connect – Re-enable Automatic Sync Schedule

QuickTip: Azure Active Directory Connect – Re-enable Automatic Sync Schedule

Sometimes performing an upgrade of Azure Active Directory Connect (AADC) will disable the automatic synchronization schedule. Don’t get caught off guard! Running the following in PowerShell can save you some grief. To verify the existing sync settings, use this cmdlet- Get-ADSyncScheduler Note that SyncCycleEnabled is showing as False. 2. To enable the sync cycle schedule, use this cmdlet- Set-ADSyncScheduler -SyncCycleEnabled $true 3. Verify that your settings have taken effect by running the original cmdlet- Get-ADSyncScheduler Now the SyncCycleEnabled setting shows…

Read More Read More

QuickTip: Microsoft Desktop OS Licensing Rule of Thumb

QuickTip: Microsoft Desktop OS Licensing Rule of Thumb

From the convoluted world of Microsoft licensing: If you want to “reassign” Windows desktop operating system volume licenses to other devices, you must have an OEM license with pro or better on the new (and old) device AND have active SA (Software Assurance). What do I mean? Volume licenses without Software Assurance behave like OEM licenses in regards to which device they are assigned/licensed. Both are only good for the device that they were initially installed on. If that device…

Read More Read More

Need to Uninstall Software From Remote Computers on the Cheap? Use WMI CLI

Need to Uninstall Software From Remote Computers on the Cheap? Use WMI CLI

Sometimes you just need to uninstall an application from several (or several hundred) computers and you don’t want to log in to each one individually. This came up recently when I was upgrading and migrating FileMaker 11 to FileMaker 13. If you are a domain admin, one way to do this is to use WMIC (Windows Management Instrumentation Command-line). First, you will need to find out the product name associated with the piece of software you would like to uninstall….

Read More Read More

Reset OwnCloud 7 Admin Password (Linux Server)

Reset OwnCloud 7 Admin Password (Linux Server)

If you lost your password for the web interface Admin login of your OwnCloud installation; Or perhaps, like myself, you weren’t paying attention and glossed over that part when you set up the MySQL DB settings and closed out the browser before configuring anything else, fear not! After searching high and low and trying several different methods, including replacing hashes and modifying database tables and whatnot, I have found the solution that is kind of cobbled together from a couple…

Read More Read More