Search found 27 matches

by alwo23@hotmail.com
Wed Jan 13, 2016 2:52 am
Forum: Windows PowerShell
Topic: Compare two hashtables
Replies: 9
Views: 4096

Re: Compare two hashtables

I will write back the different to the active directory. Only the changed thinks a need to be update in the active directory.
by alwo23@hotmail.com
Wed Jan 13, 2016 2:43 am
Forum: Windows PowerShell
Topic: Compare two hashtables
Replies: 9
Views: 4096

Re: Compare two hashtables

Ok i have tested it, but the result is: l : Kempten Description : Held des Tages sn : Proper StreetAddress : wwwhomepage : mail : MProper@kempten.de SideIndicator : => l : Kempten Description : Held des Tages sn : Proper StreetAddress : Landstrasse wwwhomepage : www.google.de mail : Test@contoso.com...
by alwo23@hotmail.com
Wed Jan 13, 2016 2:25 am
Forum: Windows PowerShell
Topic: Compare two hashtables
Replies: 9
Views: 4096

Re: Compare two hashtables

Ok. Did you have an example or something else for me?
by alwo23@hotmail.com
Wed Jan 13, 2016 2:04 am
Forum: Windows PowerShell
Topic: Compare two hashtables
Replies: 9
Views: 4096

Re: Compare two hashtables

Yes i know it, but i didnt have the result what i need.

I need a compare key by key and the different in a new hashtable with key an value filtert by SideIndicator.
by alwo23@hotmail.com
Wed Jan 13, 2016 1:44 am
Forum: Windows PowerShell
Topic: Compare two hashtables
Replies: 9
Views: 4096

Compare two hashtables

Hello, i need help to compare two hashtables: Hashtable 1: $replace = @{} $replace['l'] = "Kempten" $replace['Description'] ="Held des Tages" $replace['sn'] = "Proper" $replace['StreetAddress'] = "Landstrasse" $replace['wWWHomePage'] = "www.google.de" $replace['mail'] = "Test@contoso.com" Hashtable ...
by alwo23@hotmail.com
Thu Jan 07, 2016 9:14 am
Forum: Windows PowerShell
Topic: Problem with filling out textbox
Replies: 16
Views: 12090

Re: Problem with filling out textbox

Ok i understood.
Now i need the proxy addresses without smtp:

$smtp = get-aduser -Filter { DisplayName -eq "Nick Schiller" } -prop proxyaddresses | select -exp proxyaddresses
$smtp.TrimStart("smtp:")

Correct?
by alwo23@hotmail.com
Thu Jan 07, 2016 9:02 am
Forum: Windows PowerShell
Topic: Problem with filling out textbox
Replies: 16
Views: 12090

Re: Problem with filling out textbox

Yes thats correct i ask for the attribute IsPrimarySMTPAddress. SmtpAddress : group22@contoso.com AddressString : group22@contoso.com ProxyAddressString : smtp:group22@contoso.com Prefix : SMTP IsPrimaryAddress : False PrefixString : smtp Is that $True than i read it out and put it in the textbox. B...
by alwo23@hotmail.com
Thu Jan 07, 2016 8:27 am
Forum: Windows PowerShell
Topic: Problem with filling out textbox
Replies: 16
Views: 12090

Re: Problem with filling out textbox

I need all addresses the primary and the second, third and so on.

Sorry but this is was the customer need.
by alwo23@hotmail.com
Thu Jan 07, 2016 8:08 am
Forum: Windows PowerShell
Topic: Problem with filling out textbox
Replies: 16
Views: 12090

Re: Problem with filling out textbox

The problem is a user without an Exchange Mailbox has also an mail Attribute. Only the attribute mailboxguid is on the user which has an mailbox. And the other problem is the other emailaddresses are only in the exchange attribute Emailaddresses and this one is an multivalue field. I take this with:...
by alwo23@hotmail.com
Thu Jan 07, 2016 7:55 am
Forum: Windows PowerShell
Topic: Problem with filling out textbox
Replies: 16
Views: 12090

Re: Problem with filling out textbox

Ok, i wrote a program for an customer to edit ad users. This ad users are in exchange 2013 enabled. This user has the primary email address: $smtp1 = Get-Mailbox $strName | select -ExpandProperty EmailAddresses | ?{ $_.IsPrimaryAddress -eq $true } and multiple other smtp email addresses. Now i will ...