Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Redirection Madness

Posted on August 4, 2009

As part of my blog migration from blogspot.com to here, I migrated all previous posts and comments and setup redirection on the old site. Of course nothing is foolproof so if you were searching for content on the old site and can't find it here, please let me know and I'll either republish or get you the correct link.

Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial

Exclusive offer on ADManager Plus for US and UK regions. Claim now!

Behind the PowerShell Pipeline

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to print (Opens in new window) Print
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

3 thoughts on “Redirection Madness”

  1. Mike Johns says:
    August 7, 2009 at 11:09 pm

    I am looking for a script that will read a .csv file to get the username and the use adsi to edit the field in the user object that maps the users homedrive.

    1. Jeffery Hicks says:
      August 8, 2009 at 8:53 am

      You didn’t mention if you wanted to use VBScript or Powershell. It would be easier with the latter, especially if you can use the free Quest AD cmdlets.

      import-csv users.csv | foreach {
      set-qaduser $_.name -homedrive “Z:”)”
      }

      You could also accomplish this with DSQuery and DSMod from the command line. See what you can work out and then post something in the appropriate forum at ScriptingAnswers.com. I’ll be unavailable for a while but there are other forum members who can help out.

    2. Jeffery Hicks says:
      August 8, 2009 at 8:56 am

      Actually, this doesn’t even need a script. Select the user accounts in Active Directory Users and Computers (assuming you are running Windows 2003 or later). Right click and edit the account properties. Make all the bulk modifications you want.

Comments are closed.

reports

Powered by Buttondown.

Join me on Mastodon

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2025 The Lonely Administrator | Powered by SuperbThemes!
%d