I recommend this one to start with: http://manning.com/jones3/
It's current, and will get you going effectively quickly.

If you need/want something more in depth, take a look at these two:
http://manning.com/hicks/
http://manning.com/jones2/

DAMIEN SOLODOW
Systems Engineer
317.447.6033 (office)
317.447.6014 (fax)
HARRISON COLLEGE

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Trevor Sullivan
Sent: Tuesday, December 17, 2013 9:36 AM
To: powershell@lists.myitforum.com
Subject: RE: [powershell] bah

Even though it's out of date for PowerShell v3 and v4, I'd highly recommend 
Bruce Payette's Windows PowerShell in Action. That book is responsible for 
jumpstarting my PowerShell knowledge years back, and it serves both purposes: 
1) training and 2) a solid, ongoing reference.

http://www.amazon.com/Windows-PowerShell-Action-Second-Edition/dp/1935182137

Cheers,
Trevor Sullivan

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Daniel Chenault
Sent: Monday, December 16, 2013 6:51 PM
To: powershell@lists.myitforum.com<mailto:powershell@lists.myitforum.com>
Subject: RE: [powershell] bah

It's all good. Thank you Damien et al.

I'll be picking up a book soon so I can learn this basic stuff and leave this 
list for the REALLY hard stuff. :)
________________________________
From: damien.solo...@harrison.edu<mailto:damien.solo...@harrison.edu>
To: powershell@lists.myitforum.com<mailto:powershell@lists.myitforum.com>
Subject: RE: [powershell] bah
Date: Mon, 16 Dec 2013 23:54:37 +0000
It goes with the Disable-Mailbox

DAMIEN SOLODOW
Systems Engineer
317.447.6033 (office)
317.447.6014 (fax)
HARRISON COLLEGE
________________________________
From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[listsad...@lists.myitforum.com] on behalf of Daniel Chenault 
[dani...@hotmail.com]
Sent: Monday, December 16, 2013 6:52 PM
To: powershell@lists.myitforum.com<mailto:powershell@lists.myitforum.com>
Subject: RE: [powershell] bah
Yep, it was simply syntax. The parser kept complaining about bracket {} not 
parens () so I missed it. That's a kick-self. :)

Now... I know of the -Confirm:$false so I don't have to hit 'A' 329 times (the 
number of actual objects) but where does it go?

I tried:
foreach ($audit_obj in $audit_csv) -Confirm:$false

and it ignored it.

Thanks very much for the noobie help!
________________________________
Date: Mon, 16 Dec 2013 18:58:43 -0400
Subject: Re: [powershell] bah
From: marco.s...@gmail.com<mailto:marco.s...@gmail.com>
To: powershell@lists.myitforum.com<mailto:powershell@lists.myitforum.com>
How about this line:
foreach ($audit_obj in $audit_csv

It should maybe be:
foreach ($audit_obj in $audit_csv)

The error may be the parser trying to do its best, but not quite getting the 
error right.

Marco


On Mon, Dec 16, 2013 at 6:50 PM, Daniel Chenault 
<dani...@hotmail.com<mailto:dani...@hotmail.com>> wrote:
I'm sure this is a kick-me answer but for the life of me I don't see it. 
Disclaimer: not new to coding but PoSH is not something I've a lot of 
experience in. Probably a simple syntax error. I've looked at multiple blogs 
and sites and don't get what the problem is.

=============================
$audit_csv = import-csv ".\us31a hex audit_dtc - copy.csv"
foreach ($audit_obj in $audit_csv
{
    $field = $audit_obj.upn
    Disable-Mailbox $field
}
=============================

It keeps complaining I'm missing the closing bracket after defining the 
foreach. Uh... no, there it is on the last line.

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to