Exchange 2007 Power Shell

Author
Discussion

BliarOut

Original Poster:

72,857 posts

240 months

Tuesday 3rd August 2010
quotequote all
Is ste...

That is all punch

If you're going to develop an operating system document the fker properly and don't release it till you've finished writing the GUI.

tts, I'm off to play with Vi.

:wq

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
Nothing in particular at the moment, I just hate poor software. If you *need* a shell to perform a command in 2010 is it really fully developed?

Take the vanilla product, you had to set the maximum message size from the command line. WTF???? And you had to do it differently for individual send and receive connectors... and then you have to pipe it to see what size is actually allowed punch

Still, MS tells us this is the future and it's much better than those crappy old windows... They're so last century, what you need is a poorly documented and inconsistent command line interface. I did Vi, it was st then and it still is. I could pipe, grep and cat till the cows come home but why should I? Still, let's look at the documentation...


Set SendConnector subcommand

And that's bloody it. No examples, no references to what the subcommand is and no links to it punch

Now I know there are a few (probably untanned wink) people out there who like it but if it is the future why did they vastly increase the GUI capabilities in SP1 & SP2.

I'll leave you with this, how do you set up a new user who has an e-mail address in Active Directory users and computers? I could achieve that task back in 2003..... wink

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
sjg said:
BliarOut said:
Still, let's look at the documentation...


Set SendConnector subcommand

And that's bloody it. No examples, no references to what the subcommand is and no links to it punch
You mean this documentation for 2010?

http://technet.microsoft.com/en-us/library/aa99829...

Or this documentation for 2007?

http://technet.microsoft.com/en-us/library/aa99829...

Or are you just going to sit and cry because your 2003 skills are obsolete now?
Yes that 'documentation' rofl

My example was typed from memory, but there are swathes of it that are incomplete.

So, how do you add a user with a mailbox in Active Directory?

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
sjg said:
EMC if you want to point and click. "New Mailbox.." will give the option to mail-enable an existing AD account or create a new one.

Else the New-Mailbox cmdlet: http://technet.microsoft.com/en-us/library/aa99766...
So you can't? wink Blimey, that's progress....

So what's the business benefit of investing in training for this new command line language? What's the actual training cost and how long will this language be in mainstream use?

If it's so great why have MS added to the GUI at each successive SP release?

Sure, expose the command line if you can't be bothered to write a responsive and informative GUI but don't release a product before it's ready for market.

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
itsnotarace said:
BliarOut said:
So, how do you add a user with a mailbox in Active Directory?
I don't follow. That is not consistent with what you wrote above. Does the user have an existing mailbox or just an email address already set in AD?

If just an email address you can add a new mailbox as per normal using the EMC GUI, you can also add it from the shell - whichever takes your fancy. You don't need any extra service packs installed to do that.
Sorry, typing in a rush. How do you add a user with a mailbox in ADUC? If 2K7 is progress the task will be quicker, surely?

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
itsnotarace said:
So you can't... Which we both bloody well knew anyway wink

Sure, I like progress when it's actual progress but when a task takes longer to achieve the word you should be using is 'retrograde'.

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
sjg said:
Er, you fire up a piece of software and do account creation including mailbox in one hit.

On Ex2003, that's ADUC.

On Ex2007/2010, that's EMC. (and you have the option of a very flexible, easily automated command line method too).

How is one GUI method "quicker" than the other? Things move on. You can't use User Manager for Domains to create users any more either.
I want to set a couple of additional AD properties when I create the user. Is that task quicker or slower with 2007?

It's not that I can't accomplish the tasks, but the documentation varies between poor and non-existent.

I haven't received an answer to the business benefits questions yet ears

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
Add-AdPermission -Identity "Default Receive Connector" -User "NT AUTHORITY\Authenticated Users" -ExtendedRights ms-Exch-SMTP-Accept-Any-Sender


Lovely, look how intuitive that is, my morning is complete...

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
If we're going cmdlet, let's look at the business benefits of going *nix then.

And you used to just right click the mailbox store to find your top fifty users wink

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
EMC and it's amazing changing button text rofl

Go into EMC and manage send as permissions. You don't get a "Next" button now, you get a "Manage" button. I just keep coming across little gems that were definitely coded by people who's primary language isn't English.

BliarOut

Original Poster:

72,857 posts

240 months

Wednesday 4th August 2010
quotequote all
Pfft, I was actually bulk creating users when AD was first introduced using ADSIEdit, Cacls, DSMod, csvde, ldifde and a bit of cunning Excel pasting using concatenate... We set their home directory, SAMAccount name, profile path, whether the account was active or not, their e-mail, every property that was exposed in AD was fair game. Oh, and for good measure I used to throw a few variables at Novells Filer while I was at it wink

All the tasks that 2K7 can do now could be done yonks ago yet when 2K3 came out the GUI was complete.

And you still can't do that lot even now using the 2K7 cmdlets....

BliarOut

Original Poster:

72,857 posts

240 months

Thursday 5th August 2010
quotequote all
Prak said:
maybe not ... Yet .
And that's a large part of my beef. Yes, it would be ace if everything was exposed and worked but as usual it doesn't. IMO 2K7 was rushed to market well before it was production ready. I've not seen 2010 yet but if it's anything like 2K3 was during it's development it'll probably be what 2K7 should have been from the offset. Exchange 2000 anyone?

BliarOut

Original Poster:

72,857 posts

240 months

Friday 6th August 2010
quotequote all
Create a new distribution group using the console...


Next > Next > New! WTF? Whatever happened to the words Create or Finish? You don't start with something new half way through the task punch

BliarOut

Original Poster:

72,857 posts

240 months

Friday 6th August 2010
quotequote all
theboss said:
BliarOut said:
Pfft, I was actually bulk creating users when AD was first introduced using ADSIEdit, Cacls, DSMod, csvde, ldifde and a bit of cunning Excel pasting using concatenate... We set their home directory, SAMAccount name, profile path, whether the account was active or not, their e-mail, every property that was exposed in AD was fair game.
I can understand an SBS-level guy struggling to get to grips with some Exchange 2007/2010 processes, but if you've genuinely and happily used all of the above mentioned scripting interfaces and command/script driven tools then you should surely consider Powershell to be the stuff of very many wet dreams? Thats the way it seems to have been embraced by all of the seasoned admins I work with...

Of course you're entitled to a jolly good rant if you're just frustrated smile as we all get from time to time... but I have to put my hand up and say I think Ex2010 is ten times the product 2003 was

Edited by theboss on Friday 6th August 15:49
Oh so can I... But as a CNE I can also look at products objectively which some MS fanboys seem to be unable to wink