From: Peter Venkman on 28 Jan 2010 12:41 Hi, I have no experience scripting with powershell or the management shell, and I was looking for a little insight. I just need to do a couple very simple scripts for a recipient admin to run on resource mailboxes. For example, they'd need to run this on a conference room mailbox called testcr: Set-MailboxCalendarSettings testcr AutomateProcessing:Autoaccept Set-MailboxCalendarSettings testcr DeleteSubject $false The problem being is that we have no way of knowing what mailbox they'll have to run it against as they create them. How would I make the script prompt for a mailbox? Likewise, if I wanted to add restrictive permissions how would I get it to prompt for both mailbox and allowed user? (completed command ex: Set-MailboxCalendarSettings testcr BookInPolicy:user(a)domain.com) Thanks in advance!
From: Ed Crowley [MVP] on 28 Jan 2010 17:36 $name = Read-Host "Enter server name" $caladmin = Read-Host "Enter calendar administrator in user(a)domain.com form" Set-MailboxCalendarSettings $name �AutomateProcessing:Autoaccept �DeleteSubject $false �BookInPolicy:$calad min You need but one command line to apply all swtiches. -- Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." .. "Peter Venkman" <pauldi(a)iona.com> wrote in message news:c629f297-35b8-4ad9-b9e8-2d4668e0671b(a)r19g2000yqb.googlegroups.com... Hi, I have no experience scripting with powershell or the management shell, and I was looking for a little insight. I just need to do a couple very simple scripts for a recipient admin to run on resource mailboxes. For example, they'd need to run this on a conference room mailbox called testcr: Set-MailboxCalendarSettings testcr �AutomateProcessing:Autoaccept Set-MailboxCalendarSettings testcr �DeleteSubject $false The problem being is that we have no way of knowing what mailbox they'll have to run it against as they create them. How would I make the script prompt for a mailbox? Likewise, if I wanted to add restrictive permissions how would I get it to prompt for both mailbox and allowed user? (completed command ex: Set-MailboxCalendarSettings testcr �BookInPolicy:user(a)domain.com) Thanks in advance!
From: Dr Venkman on 2 Feb 2010 10:55 Thank you. I have tried that with a simple script: $RoomName=READ-HOST "Enter Mailbox Name" set-mailboxcalendarsettings $RoomName -automateprocessing:autoaccept ---- When I run that script though, a window pops up for a fraction of a second and closes. On Jan 28, 5:36 pm, "Ed Crowley [MVP]" <cursp...(a)nospam.net> wrote: > $name = Read-Host "Enter server name" > $caladmin = Read-Host "Enter calendar administrator in u...(a)domain.com form" > Set-MailboxCalendarSettings > $name AutomateProcessing:Autoaccept DeleteSubject > $false BookInPolicy:$calad min > > You need but one command line to apply all swtiches. > -- > Ed Crowley MVP > "There are seldom good technological solutions to behavioral problems." > . > > "PeterVenkman" <pau...(a)iona.com> wrote in message > > news:c629f297-35b8-4ad9-b9e8-2d4668e0671b(a)r19g2000yqb.googlegroups.com... > Hi, > > I have no experience scripting with powershell or the management > shell, and I was looking for a little insight. I just need to do a > couple very simple scripts for a recipient admin to run on resource > mailboxes. For example, they'd need to run this on a conference room > mailbox called testcr: > > Set-MailboxCalendarSettings testcr AutomateProcessing:Autoaccept > Set-MailboxCalendarSettings testcr DeleteSubject $false > > The problem being is that we have no way of knowing what mailbox > they'll have to run it against as they create them. How would I make > the script prompt for a mailbox? > > Likewise, if I wanted to add restrictive permissions how would I get > it to prompt for both mailbox and allowed user? (completed command > ex: Set-MailboxCalendarSettings testcr BookInPolicy:u...(a)domain.com) > > Thanks in advance!
|
Pages: 1 Prev: Problem when receiving emails sent to multiple email domains Next: Win2003 Sp2 & EX2003 SP2 |