Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


how do I run this script in exchange management shell

how do I run this script in exchange management shell

Im trying to run the following script to change the offline address book to allow photos with exchange...but how do I run the below script

$attributes = (Get-OfflineAddressBook "Default Offline Address Book").ConfiguredAttributes
Set-OfflineAddressBook "Default Offline Address Book" -ConfiguredAttributes $attributes

I have my file, attribute.ps1 in C:\


RE: how do I run this script in exchange management shell

You can do it two ways. First you can simply enter each of those lines at the console and it will process them one at a time.

Second you can open the Shell, type "CD C:\" <enter>
Next type "ATTRIBUTE" and press the <TAB> key for the file name to autocomplete and it will add the .\ in the beginning for you or simply type .\attribute.ps1
Press <Enter>.

I hope that helps.



No trees were harmed in posting this message, however a significant number of electrons were terribly inconvenienced.

Check out my scripting solutions at


RE: how do I run this script in exchange management shell

Is this a script you created or one that you got from somewhere else? I'm wondering if it might be an issue with the level set on the ExecutionPolicy

Light travels faster than sound. That's why some people appear bright until you hear them speak.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close