| Author | Messages | |
michael1
Posts:426
 | | 08/18/2010 12:50 PM |
| I added OT.
Lee Holmes, a lead dev on the PowerShell team, has Windows PowerShell Cookbook, Second Edition. It's from O'Reilly. It was just available as of last week.
Dude, it rocks.
http://oreilly.com/catalog/9780596801519/
On the other hand, if you want to understand the architecture, theory, and implementation details behind PowerShell, you want Bruce Payette's book, Windows PowerShell in Action, Second Edition. It's from Manning. Bruce is also a member of the PowerShell team (co-designer of the language itself).
http://manning.com/payette2/
It also rocks; in a different way.
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: activedir-owner@mail.activedir.org [mailto:activedir-owner@mail.activedir.org] On Behalf Of Peter Gough Sent: Wednesday, August 18, 2010 6:17 AM To: activedir@mail.activedir.org Subject: Re: [ActiveDir] User offboarding and Powershell
Many thanks. I'm still getting to grips with Powershell and it's always easier to learn from real-world examples than out of a book ;-)
On 18 August 2010 19:41, Chris Dent <chris@indented.co.uk> wrote:
Sure, why not. There's not a great deal to it really.
Expects employeeID as input, the assumption that it's a unique attribute (enforced elsewhere by me). Leaves a record of the original settings in the output pipeline runs with "./thescript.ps1 | Export-Csv dataAndATimeStamp.csv".
Hopefully the attachment survives, it's only little 
Chris
On 18 August 2010 10:10, Peter Gough <pmgough@gmail.com> wrote:
Any chance you'd care to share your script? I'm still a PS novice with some of this stuff.
On 18 August 2010 19:03, Chris Dent <chris@indented.co.uk> wrote:
Took me a moment to figure out what offboarding might be 
My little script does the following:
1. Disables the account 2. Strips group membership 3. Sets up mailbox forwarding (if requested) 4. Modifies the description, adding a date stamp 5. Clears out a small number of attributes 6. Logs all changes to a CSV so it can be trivially reversed
Chris
On 18 August 2010 09:56, Robert Singers <Robert.Singers@dbh.govt.nz> wrote:
Yes "leavers", so what do you do? Disable accounts, remove from groups, remove manager, remove attributes?
From: activedir-owner@mail.activedir.org [mailto:activedir-owner@mail.activedir.org] On Behalf Of Chris Dent Sent: Wednesday, 18 August 2010 7:27 p.m. To: activedir@mail.activedir.org Subject: Re: [ActiveDir] User offboarding and Powershell
People who leave the organisation? If so, I am. But I use it for pretty much everything 
Chris
On 17 August 2010 23:28, Robert Singers <Robert.Singers@dbh.govt.nz> wrote:
Just an ideal query really. How many people are using Powershell to do their user offboarding and what sort of things do you use Powershell to do?
This message has been scanned for viruses and is believed to be clean.
_____
Please Note: The information contained in this email message and any attached files may be confidential and subject to privilege. If you are not the intended recipient of this message, privilege and confidentiality is not waived or lost, and you are not entitled to use, disclose or copy it in any way. Opinions expressed in this message are not necessarily those of the Department of Building and Housing. The Department does not accept any liability for any technical opinions offered. While we use standard virus protection software, we do not accept responsibility for viruses or anything similar in this email or its attachments, nor do we accept responsibility for changes made to this email or to its attachments after it leaves our system. If you have received this email in error, please notify us immediately by reply email and delete the original and any attachment(s). Thank you.
_____
This message has been scanned for viruses and is believed to be clean.
This message has been scanned for viruses and is believed to be clean.
_____
Please Note: The information contained in this email message and any attached files may be confidential and subject to privilege. If you are not the intended recipient of this message, privilege and confidentiality is not waived or lost, and you are not entitled to use, disclose or copy it in any way. Opinions expressed in this message are not necessarily those of the Department of Building and Housing. The Department does not accept any liability for any technical opinions offered. While we use standard virus protection software, we do not accept responsibility for viruses or anything similar in this email or its attachments, nor do we accept responsibility for changes made to this email or to its attachments after it leaves our system. If you have received this email in error, please notify us immediately by reply email and delete the original and any attachment(s). Thank you.
_____
| | | |
|
|