Windows PowerShell (Formerly Monad) (Full Version)

All Forums >> [Microsoft Exchange 2007] >> General



Message


DanBall -> Windows PowerShell (Formerly Monad) (1.May2006 2:45:16 PM)

Are there any tutorials for using Windows Powershell with Exhchange? 

I found a tutorial on this website about using Monad, so I downloaded the software, and it wouldn't even install because it was too old.  I did a little more research, and found they changed the name with RC1 to Windows Powershell. 

So,  I downloaded and installed it, but find no reference to Exchange in it.




parzival -> RE: Windows PowerShell (Formerly Monad) (1.May2006 3:46:41 PM)

Exchange will have it's own powershell. Although there are many similarities and the windows based commands will probably work on the exchange shell, the windows shell does not hold references to exchange without an exchange installation.




DanBall -> RE: Windows PowerShell (Formerly Monad) (1.May2006 5:08:10 PM)

Thanks for the reply... Is there a current downloadable copy I could try?  I'd like to do some testing on this.

Actually, this is directly related to another thread I started (with no replies):
http://forums.msexchange.org/Configuration_Scripting%3f/m_1800404890/tm.htm 

Perhaps you know of another solution for my delimma?




Henrik Walther -> RE: Windows PowerShell (Formerly Monad) (1.May2006 9:47:09 PM)

If you have subscriber access to MSDN, you can go download the Exchange Server 2007 CTP build, install it and play with the Exchange Management shell as much as you like.




DanBall -> RE: Windows PowerShell (Formerly Monad) (2.May2006 2:57:40 PM)

No, I don't have that access...

As far as you know, is this the only way I could script changes to an AD account?




Henrik Walther -> RE: Windows PowerShell (Formerly Monad) (3.May2006 10:31:56 PM)

What is it you want to manipulate on the AD objects?




DanBall -> RE: Windows PowerShell (Formerly Monad) (4.May2006 1:27:11 AM)

I need to modify 3000+ accounts to only be able to receive email from themselves and one AD group.  I can do it by hand, but to do it 3000+ times is out of the question.




DanBall -> RE: Windows PowerShell (Formerly Monad) (23.May2006 3:35:40 PM)

Well, it took a lot of research, but I'm getting closer.  Wasn't able to figure out the PowerShell aspect, but got it "sorta" working with vbscript...

Set objUser = GetObject("LDAP://CN=username,OU=Container,DC=DOMAIN,DC=COM")

objUser.RestrictedAddressList = "allowedsender@domain.com"
objUser.SetInfo
objUser.RestrictedAddresses = FALSE
objUser.SetInfo

The RestrictedAddressList is supposted to be an array, but I can only get it working by directly assigning it a value, so that is the one remaining bug I need to work out.  Otherwise, this short script seems to work flawlessly, and I can now do what I need to do.




Page: [1]