Troubleshooting Windows Updates #Windows 10 #Windows 2016 Windows Update Log PowerShell command to check the Windows Update log • Get-WindowsUpdateLog Check Registry Keys Run command prompt as adminitrator and…
Get a list of active users which have logged on to the domain in the last 7 days
# Get a list of users which have logged on to the domain in the last 7 days $Date = (Get-Date).AddDays(-7) Get-ADUser -Filter {LastLogonDate -gt $Date} | Select distinguishedName
PowerShell Script to find all AD users who have the “cannot change password” box checked in a specific OU
# script to find all AD users who have the "cannot change password" box checked in a specific OU # Windows Server 2016 # Powershell Get-ADUser -Filter * -Properties CannotChangePassword…
Create an ISO file with PowerShell post by Ben Liebowitz
Recently I came across this post. As a VMware admin, you often want to create an ISO as a quick method to copy files or installation files to a VM.…
List Computer Object in an Active Directory OU using PowerShell
How to get a list of computer objects in an active directory OU ( tested against Windows 2016 Active Directory ) A quick PowerShell script using Get-ADComputer command, a wild…
Sysinternals – Permissions, LoggedOn, Endpoints
How to Get the permission on folders: PowerShell: Get-ChildItem | Get-ACL Path | Owner | Access or more in depth use: GUI based : Run AccessEnum against the drive or…
Get-AdUser -Filter {Multiple Filters Complex } -Properties | Export to CSV
#Import AD modules import-module servermanager Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature #List AD user accounts and show DisplayName, Email, Title and export to CSV Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title |…
Get a list of active computers which have logged on to the domain in the last 7 days
# Trying to work out is servers, laptops or desktops have been decommissioned # Try this script # Get a list of active computers which have logged on to the…
Azure and Containers
What is a container? A container is a live and running copy of an image which may have been customised. An image is a read only copy of an image…
Set Up Your Microsoft Azure Environment With PowerShell
Step 1 : Install Command Line Tool For PowerShell https://azure.microsoft.com/en-in/downloads/ Step 2: Launch PowerShell as Administrator Type in the following # get the Azure RM module installed first Install-Module AzureRM…