Browsed by
Tag: Windows Server

QuickTip – RoboCopy – Command to Move Files Older Than Certain Number of Days, with Directory Structure

QuickTip – RoboCopy – Command to Move Files Older Than Certain Number of Days, with Directory Structure

Let’s say that you have a design department share that is filling up your datastore of one of your on-premises ESXi servers hosting some Windows file servers. Your budget to upgrade your host servers has been delayed and, thanks to Covid-19, now, even further out. You need to keep this datastore from filling up but don’t want to force the end users to deal with changes on their Macs but still allow the data to be accessible. The design manager…

Read More Read More

QuickTip – PowerShell – Scripts to Remotely Rename an Active Directory Computer Object

QuickTip – PowerShell – Scripts to Remotely Rename an Active Directory Computer Object

If you are deploying new systems or otherwise need to rename an AD computer object, you can use this script to make the change- Rename-Computer -ComputerName CURRENNTName -NewName NEWName –DomainCredential ADDomain\admin Make the changes, inline, to modify the current and new name parameters. As well as, change the “ADDomain\admin” to the AD domain and account that has the necessary permissions to change the name of the computer object. If you would like to make the script more interactive, you can…

Read More Read More

QuickTip – PowerShell – Script to Reset AD User’s Password

QuickTip – PowerShell – Script to Reset AD User’s Password

If you manage systems and services that allow users access with a their Active Directory username and password, you have probably dealt with password reset issues. Sometimes, you are setting up new systems or services with a test account. Here is an easy PowerShell “script” to reset an AD user’s password. $sAMAccountName = Read-Host -Prompt “sAMAccountName” $SecurePW = Read-Host -Prompt “Enter a Password” -AsSecureString Set-ADAccountPassword -Identity $sAMAccountName -Reset -NewPassword $SecurePW The first line prompts you to enter the sAMAccount name…

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

Microsoft Azure DirSync for Office 365 – How to update/change the connectivity password (Resolve stopped-extension-dll exception error)

Microsoft Azure DirSync for Office 365 – How to update/change the connectivity password (Resolve stopped-extension-dll exception error)

In this how-to article I am assuming that you have already setup/configured DirSync for Microsoft Office 365 and have found that the “stopped-extension-dll exception error” in the event viewer references an issue with the password of your sync/tenant account. What can cause this? The most common reason that I have found is that the account used to sync with the tenant has an expired password. By default, the passwords for tenant-based accounts expire every 90 days. This is controlled on…

Read More Read More