Skip to content

Just another Identity guy living life in the cloud …

Author: dkegg

Uncategorized

Autodefrag via a VBScript

  • Posted on January 25, 2012

Drive defragmentation is not a very exciting subject, however in the past I’ve had a need to automate drive defragmentation via a scheduled task so I’ve used the following VB script.  It … [Keep Reading]

Uncategorized

Removing a proxy address from an NT Account

  • Posted on January 25, 2012

Occasionally it might be necessary to remove one or more items from the ProxyAddresses array in AD, this array contains all the SMTP addresses stamped on the AD object.   Here’s a VBScript … [Keep Reading]

ObjectSID

NT Account to SID translation …. and back again.

  • Posted on November 23, 2011April 26, 2019

 

I keep the following nifty functions in my Powershell profile, it helps when working with SIDs and Active Directory, it allows you to easily convert a SID back to the NTACCOUNT … [Keep Reading]

PowerShell

Group Nesting Powershell report using Quest Activeroles

  • Posted on November 8, 2011September 4, 2018

 

I was recently asked to provide a report on the number (and depth) of nested groups in AD.

Getting a list of the groups inside a group is pretty simple using … [Keep Reading]

PowerShell

Zipping files older than X days

  • Posted on October 26, 2011September 4, 2018

 

Recently I was working with a firewall that wrote some tremendously large log files and was eating disk at an alarming rate, so to remedy this, and sharpen my Powershell pencil, … [Keep Reading]

PowerShell

Powershell and Hyper-V Management

  • Posted on October 26, 2011September 4, 2018

 

There’s an awesome tool on codeplex for managing Hyper-V using Powershell called PSHyperV, it’s especially handy if you’re working with Hyper-V on a Windows Server Core installation.

http://pshyperv.codeplex.com/

Just download the … [Keep Reading]

PowerShell

Powershell Remote User Logoff / Reboot

  • Posted on October 25, 2011September 4, 2018

When patching servers, any disconnected user sessions typically prevent the post-patch auto reboot. To remedy this you could use the following Powershell script :

 

foreach ($_ in get-content servers.txt) {(… [Keep Reading]

PowerShell

Merging and appending to CSV files using Powershell

  • Posted on October 25, 2011September 4, 2018

The time-tested approach of appending data to the end of a file using >> doesn’t necessarily work with CSV files in Powershell, and Out-File with the -append switch typically results in a … [Keep Reading]

PowerShell

Powershell – Deleting files X days old

  • Posted on October 25, 2011September 4, 2018

Here’s a powershell script you can use to delete files in a directory (and all sub-directories) X days old or older.

 

$Now= Get-Date

$Days = “3“

$TargetFolder =… [Keep Reading]

PowerShell

Creating secondary proxy addresses

  • Posted on October 25, 2011September 4, 2018

Often times it may become necessary to stamp an additional SMTP address (proxy address) on a user account, either as part of a migration, or organizational domain name change etc…  

Here’s a … [Keep Reading]

Posts pagination

Previous page Page 1 … Page 3 Page 4 Page 5 Next page

Archives

  • September 2020
  • April 2019
  • March 2019
  • June 2018
  • February 2018
  • January 2018
  • November 2017
  • August 2017
  • June 2017
  • January 2017
  • October 2016
  • September 2016
  • August 2015
  • May 2015
  • March 2015
  • February 2015
  • August 2014
  • May 2014
  • March 2014
  • February 2014
  • January 2013
  • January 2012
  • November 2011
  • October 2011

Popular Tags

  • 365 (4)
  • aadc (1)
  • AADCHelper (1)
  • AAD Connect (8)
  • aadconnect (3)
  • AAD Sync (2)
  • ADFS (2)
  • ADSync (1)
  • Array (1)
  • Azure (6)
  • Azure AD Premium (1)
  • book (1)
  • Clipboard (1)
  • CloudLegacyExchangeDN (1)
  • Codeplex (1)
  • Color (1)
  • command does not take pipeline input (1)
  • connect-office365 (2)
  • contacts (1)
  • convert (1)
  • ConvertTo-CSV (1)
  • Countdown Timer (1)
  • CSV (1)
  • defrag vbscript scheduled task (1)
  • Delegation (1)
  • dirsync (2)
  • distribution group (1)
  • enumeration limit (1)
  • eventID (1)
  • Exchange (2)
  • Exchange Online (2)
  • Export-CSV (1)
  • Failure (1)
  • FIM (3)
  • immutableID (2)
  • msExchRecipientDisplayType (2)
  • msExchRecipientTypeDetails (2)
  • msexchremoterecipienttype (2)
  • MSOLService (2)
  • office 365 (9)
  • office365 (6)
  • Powershell (22)
  • PowerShellPack (2)
  • profile (2)
  • X500 (2)
Copyright © 2025 . All rights reserved.

Proudly powered by WordPress