In this note, we’ll look at the command to check the password expiry date in Active Directory (AD). PowerShell Command to Check Password Expiry Date To find out the password expiry date, use the following PowerShell command: Replace username with the desired user name. Why net user Might Show Incorrect Date Many are used to…
Automated password change of the account in the Windows Task Scheduler
When the need arises to change the password of the service account, on behalf of which tasks are operated in the Windows Task Scheduler, especially if there are many tasks, you might want to simplify this process. In this short note, I will show you how to do it quickly and easily. A Simple Solution…
Audit and Password Cracking in Active Directory: Steps and Tools
Hello! Today, we will discuss an important topic – password security checking in Active Directory. Why is this necessary? Because secure passwords are the key to your organization’s security. In this article, you will learn how administrators and information security specialists can ensure the effectiveness of password policies and detect weak passwords. Step 1: Prerequisites:…
Troubleshooting Email Deletion Errors After Exchange and WebSitePanel Updates
Encountering email deletion errors following Exchange or WebSitePanel updates? This comprehensive guide will assist you in swiftly resolving the issue. Identifying Problematic Mailboxes: Recent updates have triggered a crucial parameter shift – “UseDatabaseQuotaDefaults” is now set to “false,” inadvertently setting “RecoverableItemsQuota” and “RecoverableItemsWarningQuota” to 0 bytes. This triggers the frustrating deletion error. To locate mailboxes…
Managing local ESXi users with PowerCli
In todays short article, I want to show you a couple of examples of managing local Esxi users, with the help of PowerShell – PowerCli and EsxCli. Connect-VIServer -Server vcenter.some.domain #for example, we want to make some action on all hosts in the cluster $hosts=Get-Cluster ClusterName | Get-VMHost foreach ($vmhost in $hosts){ $esxcli =…
Searching where a user is logged on [PowerShell]
Today I want to show you a simple PowerShell script, that can be used to find on which domain machines a user is logged on currently. Basicaly the script is working like the pslogedon utility, but does not require the remote registry to be enabled on target machines.As usual I’ve uploaded the script to GitHub….
Control AD CS certificates from PowerShell
Today I want to show you several examples of controlling certificates that were published in Active Directory Ceritfication Services, with the help of simple PowerShell commands, on the example of 3 real cases. First of all, you have to have the PSPKI module. You can install it with the command: Install-Module -Name PSPKI Just in…
Effortless Task Distribution Across Servers Using PowerShell
The task of distributing a set of scheduled tasks across numerous servers arose. It brought back memories of a time when this could be accomplished through group policies. Although this option is still available, it no longer allows specifying a particular account, especially one with a password, under which the task should be executed. There’s…
Efficient Backup Scripting: A Guide to Automated Backup Rotation and Management with FTP in Bash
Welcome to our detailed guide on efficient automated backup scripting, aimed to help you manage and safeguard your valuable data. In today’s era, where data is a pivotal asset, having a reliable backup strategy is paramount. By leveraging FTP in Bash scripting, this guide provides a seamless approach to data management and backup rotation. Understanding…
Automating LXC Container Backups: A Step-by-Step Guide
Hello tech enthusiasts! Ever struggled with manual backups for LXC containers? In today’s post, I’ll demonstrate a seamless way to automate LXC container backups, making your life a tad easier. Without further ado, let’s delve into the script that I religiously use for this task: #!/bin/bash SHELL=/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DATE=`date +%Y-%m-%d` # The name of the…