powershell help
Long story short: when I open any mailbox in the console I get a message about
corrupt data. Turns out every mailbox has for mailbox database. I see
the command where I can specify the mailbox database for a given account. My
powershell fu, however, is lacking. How do I iterate
Long story short: when I open any mailbox in the console I get a message about
corrupt data. Turns out every mailbox has for mailbox database. I see
the command where I can specify the mailbox database for a given account. My
powershell fu, however, is lacking. How do I iterate through each obj
Thanks Michael!
Wish ms had a publicly available bug searching tool, life would be so much
easier...
jlc
-Original Message-
From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Tuesday, September 06, 2011 6:59 AM
To: NT System Admin Issues
Subject: RE: Powershell help
It is
ubject: RE: Powershell help
Probably more to do with my inexperience;
Get-Content acts like the parameters suggest for -ea 0|3.
Get-ADOrganizationalUnit bails out in a display of glorious red no matter how
you attempt to deal with it if the OU doesn't exist.
jlc
-Original Message-
From: M
Smith [mailto:mich...@smithcons.com]
Sent: Monday, September 05, 2011 6:13 AM
To: NT System Admin Issues
Subject: RE: Powershell help
I'd like to know which cmdlets (from Microsoft) don't work as expected with EA.
are implemented by PowerShell itself, not the individual
cmdlet.
Now, whether
NT System Admin Issues
Subject: RE: Powershell help
Unfortunately, not all cmdlets work as expected with ea. Some ignore the stop
or inquire params.
I simply rethought how the should be done and the script works as expected.
Thanks,
jlc
-Original Message-
From: Webster [mailto:webs...@carlweb
:17 PM
To: NT System Admin Issues
Subject: RE: Powershell help
Try adding -ea 0 to the end of your stmt. ea means ErrorAction. Google that.
Carl Webster
Consultant and Citrix Technology Professional
http://www.CarlWebster.com
From: Joseph L. Casale
:45 PM
To: NT System Admin Issues
Subject: Powershell help
Guys,
I am sure the answer here is simple, but what’s an elegant way to handle the
case where I need to test if an OU exists:
Get-ADOrganizationalUnit -Identity "ou=$someOU,$root"
and mask the error and simply bail or proceed
Sure, but in this case there are posh code examples stored long term and
there is a community and cmdlets around it.
On Fri, May 13, 2011 at 10:49 AM, Ben Scott wrote:
> On Fri, May 13, 2011 at 1:01 PM, Steven Peck wrote:
> >>> http://pastebin.com is very useful for this sort of thing.
> >>
> >
Except for the email stuff, it worked perfect on my Win7 PC.
Webster
From: Michael B. Smith [mailto:mich...@smithcons.com]
Subject: RE: Powershell help
So.. I replied to him offlist. But the application issue is pretty generic.
Note that I am not a master-developer. I just get by
I'm sure it's already covered on 100s of C, C++, and C# blogs. :-P
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: Webster [mailto:carlwebs...@gmail.com]
Sent: Friday, May 13, 2011 1:57 PM
To: NT System Admin Issues
Subject: RE: Powershell h
Looks an article for your blog.
Webster
From: Michael B. Smith [mailto:mich...@smithcons.com]
Subject: RE: Powershell help
So.. I replied to him offlist. But the application issue is pretty generic.
Note that I am not a master-developer. I just get by.
There are 3 things at
On Fri, May 13, 2011 at 1:01 PM, Steven Peck wrote:
>>> http://pastebin.com is very useful for this sort of thing.
>>
>> http://poshcode.org/ not pastebin :)
I prefer just having to remember one site, rather than having to
remember a different pastbin-clone for every language. :)
-- Ben
~ Fi
e and execute it
yourself.
This is not the only way to handle these issues. But the concepts are the same
whether you use this linear methodology or try/catch/finally or a
PSObject-based solution.
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: Webster [mailto
cough
http://poshcode.org/ not pastebin :)
On Fri, May 13, 2011 at 9:47 AM, Ben Scott wrote:
> On Fri, May 13, 2011 at 11:46 AM, Crawford, Scott
> wrote:
> > …and if you don’t have a preference, I’d like to see it on list. I learn
> a
> > lot watching these debugging sessions. J
>
> http://pa
On Fri, May 13, 2011 at 11:46 AM, Crawford, Scott wrote:
> …and if you don’t have a preference, I’d like to see it on list. I learn a
> lot watching these debugging sessions. J
http://pastebin.com is very useful for this sort of thing. Syntax
highlighting, and it can show diffs on changes, witho
Same here.
Webster
From: Crawford, Scott [mailto:crawfo...@evangel.edu]
Subject: RE: Powershell help
.and if you don't have a preference, I'd like to see it on list. I learn a
lot watching these debugging sessions. J
From: Michael B. Smith [mailto:mich...@smi
...and if you don't have a preference, I'd like to see it on list. I learn a
lot watching these debugging sessions. :)
From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Friday, May 13, 2011 10:09 AM
To: NT System Admin Issues
Subject: RE: Powershell help
You are going to h
ystem Admin Issues
Subject: RE: Powershell help
Michael,
For the life of me, I can't get that saved attachment to delete after being
saved?
I don't know what I holding it open? Any idea what I may be overlooking?
Thanks for everything!
jlc
From: Michael B. Smith [mailto:mich...@smit
AM
To: NT System Admin Issues
Subject: RE: Powershell help
Yes, it does look promising. To clean up (good for you, so few people bother in
PowerShell to clean up) I think this should do it:
$mailer = new-object Net.Mail.SMTPclient($SMTPserver, $SMTPserverport)
$msg = new-object Net.Mail.MailMessage(
.@gmail.com]
> *Sent:* Wednesday, May 11, 2011 1:26 PM
>
> *To:* NT System Admin Issues
> *Subject:* Re: Powershell help
>
>
>
> Michael B. Smith wrote:
>
> I don’t consider myself a master-developer.
>
>
>
>
>
> Well crap, that lowers my opinion of
om: Steven Peck [mailto:sep...@gmail.com]
Sent: Wednesday, May 11, 2011 1:26 PM
To: NT System Admin Issues
Subject: Re: Powershell help
Michael B. Smith mailto:mich...@smithcons.com>> wrote:
I don't consider myself a master-developer.
Well crap, that lowers my opinion of my own limi
From: Joseph L. Casale [mailto:jcas...@activenetwerx.com]
Sent: Wednesday, May 11, 2011 1:30 PM
To: NT System Admin Issues
Subject: RE: Powershell help
Thanks Michael,
Is this how I accomplish that:
PS D:\> $adTypeText = 2
PS D:\> $objMail = New-Object -comobject "CDO.Message"
PS
ent)
$msg.attachments.add($attachment)
$mailer.send($msg)
I can't cleanup the working directory when I am done until that script exits.
Thanks!
jlc
From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Wednesday, May 11, 2011 11:19 AM
To: NT System Admin Issu
MVP
>
> http://TheEssentialExchange.com
>
>
>
> *From:* Joseph L. Casale [mailto:jcas...@activenetwerx.com]
> *Sent:* Wednesday, May 11, 2011 12:05 PM
> *To:* NT System Admin Issues
> *Subject:* Powershell help
>
>
>
> I am using Net.Mail.SMTPclient to send an e
TheEssentialExchange.com
From: Joseph L. Casale [mailto:jcas...@activenetwerx.com]
Sent: Wednesday, May 11, 2011 12:05 PM
To: NT System Admin Issues
Subject: Powershell help
I am using Net.Mail.SMTPclient to send an email with an attatchment as
Send-MailMessage doesn't allow me to change the
:jcas...@activenetwerx.com]
Sent: Wednesday, October 20, 2010 11:13 AM
To: NT System Admin Issues
Subject: Powershell Help
Guys,
I need a golden nugget here, lol (I am about to hit a brick wall:) from
exhaustion).
I misplaced an old dos script I used, so I am writing it in powershell. How do
I search a
{ echo $_.FullName; }
>
>
>
> Regards,
>
>
>
> Michael B. Smith
>
> Consultant and Exchange MVP
>
> http://TheEssentialExchange.com
>
>
>
> *From:* Joseph L. Casale [mailto:jcas...@activenetwerx.com]
> *Sent:* Wednesday, October 20, 2010 2:13 PM
&g
dir -path c:\path\to\folder\*.abc |% { echo $_.FullName; }
Regards,
Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: Joseph L. Casale [mailto:jcas...@activenetwerx.com]
Sent: Wednesday, October 20, 2010 2:13 PM
To: NT System Admin Issues
Subject: Powershell
Guys,
I need a golden nugget here, lol (I am about to hit a brick wall:) from
exhaustion).
I misplaced an old dos script I used, so I am writing it in powershell. How do
I search a path for all files of type '*.abc' and then loop through and execute
a command using the full path of each occurre
]
Sent: Thursday, March 04, 2010 4:34 PM
To: NT System Admin Issues
Subject: RE: Powershell help
Thanks.
I'll take a look.
-Original Message-
From: Steven Peck [mailto:sep...@gmail.com]
Sent: Thursday, March 04, 2010 4:32 PM
To: NT System Admin Issues
Subject: Re: Powershell help
v
Thanks.
I'll take a look.
-Original Message-
From: Steven Peck [mailto:sep...@gmail.com]
Sent: Thursday, March 04, 2010 4:32 PM
To: NT System Admin Issues
Subject: Re: Powershell help
v1 but got the basics down and is free.
http://powershell.com/cs/blogs/ebook/
On Thu, Mar 4, 20
[mailto:mich...@smithcons.com]
> Sent: Thursday, March 04, 2010 1:36 PM
> To: NT System Admin Issues
> Subject: RE: Powershell help
>
>
>
> Yeah, this isn’t that easy.
>
>
>
> I’d recommend you use adfind with the –excldn argument.
>
>
>
> Otherwise wh
Thanks.
One of my goals for this year is to learn PS so I'll have to do lots
more reading.
From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Thursday, March 04, 2010 1:36 PM
To: NT System Admin Issues
Subject: RE: Powershell help
Yeah, this isn't that easy.
I
Consultant and Exchange MVP
http://TheEssentialExchange.com
From: Glen Johnson [mailto:gjohn...@vhcc.edu]
Sent: Thursday, March 04, 2010 1:27 PM
To: NT System Admin Issues
Subject: Powershell help
Ok folks. I'm just getting started with PS but I bet someone out there will
spot my errors r
Ok folks. I'm just getting started with PS but I bet someone out there
will spot my errors right away.
BTW, most of this I found googling so I can't take credit for writing
it.
What I want to do is retrieve a list of all AD users, except those in
the In-Active Users, OU.
I'd like the output to
36 matches
Mail list logo