Search found 14 matches
- Wed Jan 11, 2017 1:03 pm
- Forum: PowerShell
- Topic: How to copy items from one mailbox folder to another mailbox folder using powershell
- Replies: 0
- Views: 5743
How to copy items from one mailbox folder to another mailbox folder using powershell
I understand that I can copy all or supply a query using AQS but I want to only copy the contents of a Exchange mailbox folder to another Exchange mailbox folder. Search-Mailbox The syntax I have is: Search-Mailbox -Identity Identity.Mailbox@abc.com -TargetMailbox Target.Mailbox@abc.com -TargetFolde...
- Wed Nov 19, 2014 4:37 am
- Forum: PowerShell
- Topic: Looking for a little help
- Replies: 6
- Views: 3909
Re: Looking for a little help
I ended up doing this to fetch a report (.csv) on Room and equipment mailboxes with "ABC" in the name. $holdrooms = Get-MailBox -ResultSize Unlimited -recipienttypedetails RoomMailbox,EquipmentMailbox | Where { $_.displayname -match "ABC" } $holdrooms | ForEach-Object{ $RoomCalen...
- Wed Nov 12, 2014 10:25 am
- Forum: PowerShell
- Topic: Looking for a little help
- Replies: 6
- Views: 3909
Re: Looking for a little help
No, it has a calendar. I can run just that line with the first calendar name and it returns the information. The only difference is , when I run it manually I put the room in double quotes? I thought powershell would take care of this for me.. maybe not. how would I put $._alias in double quotes? I ...
- Wed Nov 12, 2014 8:08 am
- Forum: PowerShell
- Topic: Looking for a little help
- Replies: 6
- Views: 3909
Re: Looking for a little help
Thank you.
Running it through debug mode, I do not show any thing being returned on this line.
$RoomCalendarConfig = Get-MailboxCalendarConfiguration $_.Alias
The $. shows the name of the room but it's not storing anything in $roomcalendarconfig variable.
Thoughts?
Running it through debug mode, I do not show any thing being returned on this line.
$RoomCalendarConfig = Get-MailboxCalendarConfiguration $_.Alias
The $. shows the name of the room but it's not storing anything in $roomcalendarconfig variable.
Thoughts?
- Mon Nov 10, 2014 4:41 pm
- Forum: PowerShell
- Topic: Looking for a little help
- Replies: 6
- Views: 3909
Looking for a little help
I am working with a couple new items here, hash tables and the new-object. Seems I can't store the collection in $results for some reason. Any help would be appreciated. Thanks $Results = @() $RoomName = get-mailbox -recipienttypedetails RoomMailbox | Where { $_.displayname -match "ABC" } ...
- Fri Oct 24, 2014 2:17 pm
- Forum: PowerShell GUIs
- Topic: Not working as expected
- Replies: 5
- Views: 2871
Re: Not working as expected
Let me try and provide some more information and try to be clear. It's been a long day. I have a single form application. In this form , I have the following code: ## $vara is a collection of SamAccounts that looks something like this: User=212Z\$Z43NSA-ASD424 User=212Z\$ASDFAS-ADFASD User=212Z\$AD4...
- Fri Oct 24, 2014 1:18 pm
- Forum: PowerShell GUIs
- Topic: Not working as expected
- Replies: 5
- Views: 2871
Not working as expected
I have the following code in a form: foreach ($item in $vara) { [String]$item = $item if ($item -match 'User=212Z') { [array]$lookupmailaddress = Get-ADObject -LDAPFilter "(sAMAccountName=$tempsamconvert)" -SearchBase 'DC=212Z,DC=mgd2,DC=msft,DC=net' -Properties * -Server 212Z.msft.net | S...
- Mon May 12, 2014 8:01 am
- Forum: PowerShell GUIs
- Topic: Simple Form to grant access to exchange online mailbox
- Replies: 3
- Views: 3350
Re: Simple Form to grant access to exchange online mailbox
Thank you!
That did work, could you help me understand the -f switch?
That did work, could you help me understand the -f switch?
- Wed May 07, 2014 10:45 am
- Forum: PowerShell GUIs
- Topic: Simple Form to grant access to exchange online mailbox
- Replies: 3
- Views: 3350
Simple Form to grant access to exchange online mailbox
Building a simple form to grant "Reviewer" access to another exchange online mailbox. $buttonSetReaderAccess_Click={ #TODO: Place custom script here $modaccount = $textbox1.Text $grantaccess =$textbox2.Text add-mailboxfolderpermission $modaccount:\Calendar -user $grantaccess -accessrights ...
- Tue Mar 18, 2014 6:48 pm
- Forum: PowerShell GUIs
- Topic: Pass form text in quotes to cmdlet
- Replies: 2
- Views: 2618
Pass form text in quotes to cmdlet
I might be looking at this wrong but here is what I want to do. In powershell: Get-MailboxPermission -Identity user-name@domain.com -User "domain\first middel last" | Format-Wide -Property "AccessRights" -Column 2 | Out-String It request me to pass the user name in quotes "d...