Menu

Close
  • Home
  • Login
Subscribe
Menu

PowerShell

A 8-post collection

Page 1 of 1

Authenticate to Azure Active Directory using PowerShell

I recently had the need to authenticate as an Azure AD (AAD) application to the oAuth endpoint to return an oAuth token. As this procedure was »

Dan Anstis Dan Anstis on PowerShell, Azure, AAD, oAuth 08 September 2016

Check AD ExtentionAttribute Usage with PowerShell

The following script will summarise the ExtentionAttributes in use within an Active Directory Domain. This script uses the ActiveDirectory CMDlets included in the Active Directory Module »

Dan Anstis Dan Anstis on PowerShell, AD, Active Directory 29 January 2016

PowerShell Function to export a user's thumbnail photo from AD

The following function is used to export a user's thumbnail photo from Active Directory (AD) to a JPG file on disk. This function uses the ActiveDirectory »

Dan Anstis Dan Anstis on PowerShell, AD 29 January 2016

Remotely Enable PowerShell Remoting

In order to remotely enable PS remoting we can leverage PSEXEC (http://live.sysinternals.com.au/psexec.exe). psexec \\[computer name] -u [admin account name] -p »

Dan Anstis Dan Anstis on CMD, PowerShell 13 January 2016

Script to check DNS records that are eligible for scavenging

The following is a script leveraging PowerShell and WMI to check DNS entries that are eligible for DNS scavenging: $TotalAgingInterval = 10 #No-Refresh period + Refresh period (in »

Dan Anstis Dan Anstis on PowerShell, DNS 11 August 2014

Checking Changed Block Tracking on VMs with VMware PowerCLI

I recently had the need to check all VMs in a client's environment for Changed Block Tracking (CBT). To perform this check I used the following »

Dan Anstis Dan Anstis on PowerShell, PowerCLI, VMware, Backup 11 August 2014

Transfer or Seize AD FSMO roles using PowerShell

This procedure requires the ActiveDirectory PowerShell module to be installed and loaded. These commands can be run from either the current or future role holder, or »

Dan Anstis Dan Anstis on AD, PowerShell 10 July 2014

Check AD Schema Version with PowerShell

The following command requires the ActiveDirectory PowerShell module to be installed (and loaded if using PowerShell 2 or earlier). Get-ADObject -Identity "cn=Schema,cn=Configuration,dc= »

Dan Anstis Dan Anstis on PowerShell, AD 10 July 2014
Page 1 of 1
Dan's Notes © 2025
Proudly published with Ghost