Using powershell to manipulate mapi profile and PST file locations

I have a situation whereby I need to move a bunch of PST files out of the default location in Office 2010 and change the mapi profile for the user so that the pst file location updated so the user doesn't experience any issues when launching Outlook.
My logic flow is as follows:
1.) locate All pst files referenced in the logged on users MAPI profile.
2.) Move these files to a another directory eg. c:\users\%username%\OutlookFiles
3.) Update the MAPI profile to point to the new location so that when the user launches Outlook he doesn't notice that the files have been moved.
I know how to copy the files using powershell etc. but how on earth do you query the MAPI profile to locate the pst files and then change each entry for a PST file to point to the new location.
Anyone got any ideas?

What you are trying to do cannot normally be done with a script due to a whole host of reasons including differences in versions and lack of access to a users profile.
!. Are you on Exchnage?
2. Have you redirected the users folders with Group Policy yet?
Outlook OST files are not movable without the use of a third party tool.  It is far easier to just have the users create a new profile.
PST files that are attached in a user session can be moved using a script that can be run by the user.
¯\_(ツ)_/¯

Similar Messages

  • Any setting to use alt+tab for switching adobe and other file ?

    any setting to use alt+tab for switching adobe and other file ? instead of opening a adobe file agin and agin?
    thanks.
    really hate using win8...........................

    i mean ..can adobe fild open it in a normal way like win7 did...
    so i can use alt+tab to switch task easily..

  • Inbox and pst files. scanpst.exe

    I have outlook 2003.
    I cannot access my inbox.
    I am told to run scanpst.exe but don't have it on my computer.
    Cannot find a way to download for 2003, just 2007 & 2013.
    Please advise...........
    THANK YOU

    Hi,
    The Scanpst.exe is located at drive:\Program Files\Common Files\System\MSMAPI\LocaleID folder - where LocaleID is the locale identifier (LCID) for the installation of Microsoft Office. The LCID for English - United States is 1033.
    Or you could find the Scanpst.exe tool here:
    http://social.technet.microsoft.com/Forums/en-US/a112f055-b11a-4a5d-9c3a-bdc118560566/inbox-and-pst-files-scanpstexe
    Hope this helps.
    Best Regards
    Steve Fan
    TechNet Community Support

  • Can I use time capsule to store music and video files as well as use it to back up.

    Can I use time capsule to store music and video files as well as use it to back up.

    Sure.
    Why are so many peolple asking this?
    Just store your files there. 
    And when using Time-Maschine for the back-up select the Time-Capsule (whatever name your has) as the place to store the date.
    cheers, anne

  • Can one set up Lightroom to allow use of manufacturer's printer profiles and Advanced Color Settings

    I like the effects that I can apply to my B&W images using Advanced Color Settings, but understand that I get best print quality using the manufacturer's paper profiles. However, I get locked out of Advanced Color Settings unless I choose "Managed by Printer". Can I do both - select a specific paper profile and use Advanced Color Settings? Thanks

    I don't know what printer you are using. But if you want to use all of the controls in the Lightroom print module you need to let Lightroom manage the color. For my printer, this requires making that choice in Lightroom and then disabling color management in the printer driver. Then, using Lightroom, I am able to use all of those settings and choose the appropriate profile provided by the paper manufacturer.
    With my printer, if I choose to let the printer manage the color, I can make all of those choices in the printer driver. But you cannot split your management between Lightroom and your printer.  You have to go one way or the other.

  • Is it possible to use Powershell to determine if Windows Server Source Files are present on disk?

    Hi everyone,
    I would like to know if it is possible to use a Powershell cmdlet to determine if Windows Server 2012 (R2) Source Files are present on disk.
    We are using an automated PS script to install roles and features and some registry keys and applications afterwards. If the Source Files are not present, the script will fail, so I would like a# Check if Source Files are present # stage built in
    the script to determine if the source files are present or that an alternate source path needs to be used.
    Is this possible with Powershell and if so, how can we achieve this?
    I'll appreciate your answer.
    - Rob

    Hi Rob,
    I assume that you are using powershell command "install-windowsfeature" .
    I would suggest you add the parameter "-source" to specify the alternate path of thesource file .
    " The path specified in this parameter is only used if the command cannot find feature files in the local side-by-side store of the specified target computer or VHD. "
    For details please refer to the article below :
    https://technet.microsoft.com/en-us/library/jj205467(v=wps.620).aspx
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Uploading document using Powershell is throwing error- There is no file with URL

    Hi.
    I am trying to upload multiple documents to a sub folder in a library using powershell.
    I am getting the error as : ForEach-Object : Exception calling "Add" with "3" argument(s):
    "<nativehr>0x80070003</nativehr><nativestack></nativestack>There is no file
    with URL 'server/TestLibrary/User_image/ab_3f_wht_ist_small_gif.gif' in this Web."
    I have used the below code:
    function UploadImages($weburl)
    $docLibraryName = "TestLibrary"
    $localFolderPath = "C:\Users\Imgs\user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    $subFolderName="user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    #Attach to local folder and enumerate through all files
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles() | ForEach-Object {
    #Create file stream object from file
    $fileStream = ([System.IO.FileInfo] (Get-Item $_.FullName)).OpenRead()
    $contents = new-object byte[] $fileStream.Length
    $fileStream.Read($contents, 0, [int]$fileStream.Length);
    $fileStream.Close();
    write-host "Copying" $_.Name "to" $docLibrary.Title "in" $web.Title "..."
    #Add file
    $folder = $web.getfolder($docLibrary.Title + "/" + $subFolderName)
    write-host "folder is " $folder
    $spFile = $folder.Files.Add($folder.Url + "/" + $_.Name, $contents, $true)
    $spItem = $spFile.Item
    Write-Host -f Green "Added Images to Library !!!"
    $web.Dispose()
    How to fix this?
    Thanks

    HI,
    Is the name of the image or the sub folder name the issue?
    I have the images with the name as "ab_3f_wht_ist_small_gif.gif".  folder name "User_image"
    There are underscores on the file name, but there is no space. When I add the file from the library (using the UI), the image is getting added.
    But adding through the powershell is giving the issue.
    I have checked this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e810ad03-81ef-4fa6-aab8-ddc896a13ebf/getting-error-during-uploading-a-document-using-powershell?forum=sharepointdevelopmentprevious
    but did not help.
    Thanks

  • Using DFS-R to replicate VHD and VHDX Files

    Hello -
    I am trying to find a solution to replicate VHD files and VHDX files between two data centers. I'm deploying the solution using Windows Server 2012.
    The VHD files are not virtual machines, they are simply storage areas (one for each user) that contain user documents and other files.
    The users will potentially log on to terminal servers in two locations and I'd like the VHD files to be accessible from both locations. The VHD files will mount during the logon sequence into a mount point within the users profile (or some other accessible
    area within the file system). This is a bit like user profile disks, but more user data disks.
    Has anyone attempted the replication of VHD files before using DFS-R, and are there any things I should be aware of?
    Will DFS-R support delta replication of VHDs? If a user has a 500 MB presentation, within the VHD file, and changes a single line of text, I'd prefer for only the changed blocks to synchronize.
    I don't believe DFS-R supports replicating open files, so I understand that the data won't be in sync until the VHD file us unmounted, but thats okay.
    Cheers, I'd welcome any feedback.
    Mitch

    Hello -
    I am trying to find a solution to replicate VHD files and VHDX files between two data centers. I'm deploying the solution using Windows Server 2012.
    The VHD files are not virtual machines, they are simply storage areas (one for each user) that contain user documents and other files.
    The users will potentially log on to terminal servers in two locations and I'd like the VHD files to be accessible from both locations. The VHD files will mount during the logon sequence into a mount point within the users profile (or some other accessible
    area within the file system). This is a bit like user profile disks, but more user data disks.
    Has anyone attempted the replication of VHD files before using DFS-R, and are there any things I should be aware of?
    Will DFS-R support delta replication of VHDs? If a user has a 500 MB presentation, within the VHD file, and changes a single line of text, I'd prefer for only the changed blocks to synchronize.
    I don't believe DFS-R supports replicating open files, so I understand that the data won't be in sync until the VHD file us unmounted, but thats okay.
    Cheers, I'd welcome any feedback.
    Mitch
    If you don't own a pretty fat pipe between the data centres (and it comes free of charge) that's not the best idea. For a reason: DFS-R does use compression only paired with per-file changed block tracker no deduplication see...
    http://technet.microsoft.com/en-us/library/cc771058.aspx
    ...so at the end of the day you'll replicate TONS of non-required information. What you really need to do: deploy a third-party replication solution layered up and working on top of the volume(s) where your VHD/VHDX files are stored. 
    Will DFS-R work to replicate VHD/VHDX? YES
    Is DFS-R optimal for VHD/VHDX replication scenario? NO
    Hope this helped :)
    StarWind iSCSI SAN & NAS

  • Using Sym Links for .dbf, .log, and .ctl files?  Will this work in 10g?

    Hello,
    We have an old database server we use for testing/development and it's running very low on diskspace on one of the filesystems on the box. At this point in time, adding space is not a simple option for several reasons. However, there are several other data partitions on this server with plenty of space available.
    I read a paper published by Sun Microsystems that advocates the use of symbolic links for dbf, ctl, and log files:
    http://www.sun.com/blueprints/0103/817-1048.pdf
    Are there any drawbacks/caveats we need to be aware of, or is this really as simple as just stopping the db, moving a few files to another fs, symlinking their locations, and restarting the db?
    Thanks for your input/advice.

    I think you should verify this with Oracle Support.
    This is the perfect measure to have them drop the phone on you.
    Sybrand Bakker
    Senior Oracle DBA

  • Unable to configure Reporting Services 2012 after using 'netsh http delete urlacl' command and .EXE file also.

    One of my servers quit responding during some troubleshooting of another issue and when I try
    to reconfigure it I am receiving Results as follows:
    Reserving url http://+:80
    The URL has already been reserved.
    It appears to me that there is something with the Virtual Directory that is not allowing me to use it or
    overwrite it.  If I change the name or the port the new configuration works fine, however this is part of a scale-out test environment and I need to keep the virutal directory names the same.
    I have uninstalled and reinstalled SSRS in an attempt to resolve, but that did nothing to this issue.
    I have used 'netsh http delete  urlacl' command and deleted saved urls also but still am facing issue.
    How can I manually list, delete, or edit  Virtual Directories in SSRS 2012? 

    Hi Syed,
    Based on my research, the issue can be caused by the default values for Report Server Web Service and Report Manager has already been reserved. In order to trouble shoot this issue, please refer to the following steps:
    To check this issue, we can run the following command in the command windows:
    netsh http show urlacl | find "Report"
    It should returns the reserved URL as below:
    Reserved URL            :
    http://+:80/ReportServer/
    User:
    Reserved URL            :
    http://+:80/Reports/
    User:
    Then we can delete the reserved URLs with the command below and recreate them to fix this issue:
    netsh http delete urlacl http://+:80/ReportServer/
    netsh http delete urlacl http://+:80/Reports/
    Reference:
    http://fix.lazyjeff.com/2011/12/sql-server-2008-r2-report-server-web.html
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to use third party library (like .dll and .lib files) in flascc?

    I have a number of .dll and .lib files of the  third party library, which are generated from C++ code.
    I read about flascc on other web site says:
    "If you want to use third party library in your Flascc project,you must have either the source code or the linkable file which is compiled of the third party library   "
    Dose the linkable file mean .dll file or .lib file?
    AND
    How can I use the fuctions in them in my flascc project.?

    Native code is not interchangeable between platform.
    It means that you can't use library that wasn't build specifically for flascc.
    And when they say linkable files they mean libraries compiled for flascc, not any libraries.
    So if your libs are for windows, no luck, you have to recompile everything

  • TCP and LCP files location...


    Observing that Lr displays only very few camera calibration profiles and also very few couples camera/lens profiles (for the brand of camera's I use), I made a thorough search of all ".TCP" and ".LCP" files existing in my computer.
    Wow ! ... these files are located in a lot of different places !    This certainly from successive updates.
    But, I imagine that Lr5 refers only to one "specific directory", showing only the the profiles stored in it. 
    Here all the directories path where I've found those profiles (Win7-64):
    LCP files : by us Program Files = Program (not Program Files (x86)
    C:\Program Fifes\Adobe\Adobe Photoshop Lightroom 5.7\Resources\LensProfiles\1.0\(Brand name)\LCP Files
    C:\Program Files (x86)\Common Files\Adobe\CameraProfiles\Lens Correction\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfileDefault\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\1.0\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\CameraRaw\LensProfiles\1.0\Downloaded\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\LensProfiles\LCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\LensProfileDefaults\LCP Files
    DCP files :
    C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Adobe Standart\
    C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Camera\(Brand name/Camera model)\ \DCP Files
    C:\Users\(User Name)\AppData\Roaming\Adobe\Lightroom\Color Profiles\DCP Files
    Now... "where" the profiles (involved in the latest version of Lr5) have to be located ?

    What to do if a profile doesn't exist in this "good" directory, but well in another (perhaps from a previous version). Are they usable under Lr5-7 ?

    What to do with the directories not more used by Lr5-7 ?
    Many thanks for your answers.

    Many thanks, Bob
    Fm Julieanne Kost's :
    Lightroom reads camera and lens profiles "from several locations"...
    If you use the Adobe Lens Profile Creator utility to create your own lens and camera profiles, Lightroom installs them here:
    X:\Program Files\Adobe\Adobe Photoshop Lightroom 4.2 RC\Resources\CameraProfiles\
    X:\Program Files\Adobe\Adobe Photoshop Lightroom 4.2 RC\Resources\LensProfiles\
    Well, if I understand, the correct paths at home are :
    LCP files → C:\Program Fifes\Adobe\Adobe Photoshop Lightroom 5.7\Resources\LensProfiles\1.0\(Brand name)
    DCP files → C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Adobe Standart
    +             → C:\Programmes\Program Files\Adobe\Adobe Photoshop Lightroom 5.7\Resources\CameraProfiles\Camera\(Brand name/Camera model)
    Could the other directories found in my PC been used by other application(s) ? (I also have PS)
    Stay 2 other questions:
    1. What to do if a profile doesn't exist in a "correct directory", but well in another (perhaps from previous versions).
    Are they usable under Lr5-7 ?
    May I transfer them into the right place for Lr ?
    and
    2. What to do with the directories not more used by Lr5-7 ?
    Thanks for complementary answers.

  • Backup or Storage Question and Default File Location

    I just got a EX2 6TB and I am very new to this concept of cloud storage.I have my EX2 in RAID 1. I have two questions:  1) Can this product be used as both a storage and backup device or must you decide to do one or the other?1a) If you can use the EX2 as both for backup and storage - how do you do that? I want to use this primarily as storage and move files from my computer, which is full, to the EX2.  But, if I use the EX2 as storage then I assume I need a backup system - another EX2 or separate external drive. 2)  If I use the EX2 as my primary storage device how do I set my computer for all files to be saved on the EX2 without drag and drop every time for every file or all my daily work? Thanks! Mike

     
    Hello and welcome to the WD Community.
    1) Can this product be used as both a storage and backup device or must you decide to do one or the other?
    1a) If you can use the EX2 as both for backup and storage - how do you do that?
    Yes, you can use that as both. Just make sure to map the drive properly and it will show within your network and you will be able to copy and paste files to it manually and to access to the drive directly.
    2)  If I use the EX2 as my primary storage device how do I set my computer for all files to be saved on the EX2 without drag and drop every time for every file or all my daily work?
    Not sure if you will be able to set the unit as a primary storage for all of your applications. Some of them will not allow you to save directly to a network unit.

  • JWS : Properties and Log file locations?

    We have a swing app that used log4j to log to a file. It also uses Apache commons PropertyConfiguration to allow the user to setup and save properties to a file.
    This all works great when running the app locally. The app creates the log file and properties file in the folder where the user launches the app from.
    Now that I'm trying to launch the app via JWS we should have the log file and properties file in some "known" location so that it doesn't matter if they launch the app from a browser, or from a desktop icon, or from a menu - the app will always look for the file in the same location.
    Any thoughts on where this location should be? For now we are just releasing to Windows users but eventually we will need to be able to launch on Mac and Linux as well. Is there some convention as to where such files should reside when using JWS?
    Thanks in advance!

    If it is signed, it can use a subdirectory of System.getProperty("user.home").
    You may want to look at PersistenceService.get(...).getXXXStream() that may overcome sandbox restrictions.
    Edited by: baftos on May 3, 2012 1:16 PM

  • Change the Data and Log file locations in livecache

    Hi
    We have installed livecache in unix systems in the /sapdb mount directory where the installer have created sapdata and sapdblog directories. But the unix team has already created two mount direcotries as follows:
    /sapdb/LC1/lvcdata and /sapdb/LC1/lvclog mount points.
    While installing livecache we had selected this locations for creating the DATA and LOG volumes. Now they are asking to move the DATA and LOG volumes created in sapdata and saplog directories to these mount points. How to move the data and log file and make the database consistent. Is there any procedure to move the files to the mount point directories and change the pointers of livecahce to these locations.
    regards
    bala

    Hi Lars
    Thanks for the link. I will try it and let u know.
    But this is livecache (even it uses MaxDB ) database which was created by
    sapinst and morover is there any thing to be adjusted in SCM and as well as
    any modification ot be done in db level.
    regards
    bala

Maybe you are looking for

  • How to download a file/contents through a session bean to the bean client

    Hi All, I'm a newbie to enterprise beans and facing a problem. I have a requirement where an excel file saved on the server will be a accessed by a session bean and return it to the bean client (developed in swing). Client will display the file conte

  • WebDynpro for ABAP iview

    Hi All, In my client portal there is no iview template of type "SAP WebDynpro iview" . I created one from the list of PAR templates of type com.sap.portal.appintegrator.sap.WebDynpro and embedded it in a webdynpro proxy page i have given the followin

  • Displaying form running status

    I have one very simple form with only one push button. This push button is running a very long procedure it may take few minutes to run, so while it is running i want to display meessage "runnig...." and as it finished it should go. I dont know how c

  • How Much Data Does a 16GB Iphone Hold?

    I'm curious, how many songs, pics, videos, movies does the Iphone Hold?

  • Client Proxy - RFC scenario - weird

    Scenario : Client Proxy (ECC 6.0) - RFC (Wrapper RFC for the posting BAPI and commit BAPI). QOS : Best Effort. Here, when the RFC is tested in se37, the bapi return structure is populated. But with in the scenario, bapi return structure is not popula