Search found 14 matches

by island_guy
Wed Jan 11, 2017 2:03 pm
Forum: Windows PowerShell
Topic: How to copy items from one mailbox folder to another mailbox folder using powershell
Replies: 0
Views: 2802

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...
by island_guy
Wed Nov 19, 2014 5:37 am
Forum: Windows PowerShell
Topic: Looking for a little help
Replies: 6
Views: 2110

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{ $RoomCalendarConfig = Get-Mail...
by island_guy
Wed Nov 12, 2014 11:25 am
Forum: Windows PowerShell
Topic: Looking for a little help
Replies: 6
Views: 2110

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 ...
by island_guy
Wed Nov 12, 2014 9:08 am
Forum: Windows PowerShell
Topic: Looking for a little help
Replies: 6
Views: 2110

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?
by island_guy
Mon Nov 10, 2014 5:41 pm
Forum: Windows PowerShell
Topic: Looking for a little help
Replies: 6
Views: 2110

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" } foreach ($...
by island_guy
Fri Oct 24, 2014 2:17 pm
Forum: PowerShell GUIs
Topic: Not working as expected
Replies: 5
Views: 1535

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...
by island_guy
Fri Oct 24, 2014 1:18 pm
Forum: PowerShell GUIs
Topic: Not working as expected
Replies: 5
Views: 1535

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 | Select-Obje...
by island_guy
Mon May 12, 2014 8:01 am
Forum: PowerShell GUIs
Topic: Simple Form to grant access to exchange online mailbox
Replies: 3
Views: 2187

Re: Simple Form to grant access to exchange online mailbox

Thank you!

That did work, could you help me understand the -f switch?
by island_guy
Wed May 07, 2014 10:45 am
Forum: PowerShell GUIs
Topic: Simple Form to grant access to exchange online mailbox
Replies: 3
Views: 2187

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 Reviewer W...
by island_guy
Tue Mar 18, 2014 6:48 pm
Forum: PowerShell GUIs
Topic: Pass form text in quotes to cmdlet
Replies: 2
Views: 1446

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 "domain\first middle last" ...