Follow

Setting up a VHD disk for OST file for use with Office

Product: ProfileUnity-FlexApp

Product Version: 6.7.x & above

Expires on: 365 days from publish date

Updated: July 25, 2018

 

Problem:

Setting up a vhd for OST file for use with Office 365

 

Resolution:

Please refer the the attached PDF "O365 OST VHD Storage" for process.

Step 1 :- Download the JSON file from bottom of this KB.

Step 2 :- Browse Administrator/Administration/Templates and Click Add Template

pu43NG

Step 3 :- Select Template downloaded to Upload.pu22NG

Step 4 :- Confirmation of Import will show as successful.

pu23NG

Step 5 :- Select Configuration Management from Left Menu. Click Create Configuration.

pu24NG

Step 6 :- Select Guided Configuration

pu25NG

Step 7 :- Specify Active Directory Group that Configuration will apply (I.e WILKYIT\grp-puO365users), Click Add. Deployment path by default will be the ProfileUnity in NETLOGON. Then Click Next

pu26NG

Step 8 :- Select the recently created template (Office365 Outlook OST Storage Virtual Disk – Imported) . Click Next

pu27NG

Step 9 :- Specify path where the VHD will be stored. In my case \\LAB-DC1\ProfileUnity\%USERNAME%. Then Click Next

pu28NG

Step 10 :- At Deployment Path, Click Update to deploy the INI file into the default INI location (%DOMAIN%\NETLOGON\PROFILEUNITY)

pu29NG

Step 11 - 15 (This is needed only for windows 2016) Additionally the following steps need to be completed to ensure the user can write/own the permission on the VHD volume:- 

Option a: Create a VHDACL.ps1 with the following content for Windows 2016 workstation

$varUsername = $env:USERNAME $varUserdomain = $env:USERDOMAIN $filesystemlabel = "ProfileUnity Virtual Disk 1" $vol = Get-WMIObject -Class Win32_Volume -Filter "Label='$filesystemlabel'" $link = $vol.DeviceID icacls.exe "$link" /grant "$varUserdomain\${varUsername}:(OI)(CI)(F)"

Option b: Create a VHDACL.ps1 for Server 2016 RDSH/XenApp multi-user config use this script:

$varUsername = $env:USERNAME
$varUserdomain = $env:USERDOMAIN
$volName = "C:\\Users\\$varUsername\\AppData\\Local\\Microsoft\\Outlook\\"
$vol = Get-WMIObject -Class Win32_Volume -Filter "Name='$volName'"
$link = $vol.DeviceID
icacls.exe "$link" /grant "$varUserdomain\${varUsername}:(OI)(CI)(F)"

Step 12: Copy the VHDACL.ps1 to the %DOMAINNAME%\NETLOGON\PROFILEUNITY

Step 13: Log into Profile Unity, Under Configuration Management and open the existing Configuration in earlier steps:-

pu47NG

Step 14: Click User Defined Scripts

pu48NG

Step 15: Add a new User Defined Script settings with the following:-

  • Description = VHD Permission Reset
  • Execute: After ProfileUnity at Logon (Post-Logon)
  • Type: Powershell
  • File : \\%DOMAINNAME%\NETLOGON\ProfileUnity\VHDCAL.ps1

pu46NG

Step 16 - Deploy "O365 OST VHD Storage.ini" configuration to run along side your main configuration.

Testing Configuration

Step 1: Log in as ctxuser1 (which is a member of the ProfileUnity security group)

pu30NG.PNG

Step 2: Profile Unity Splash screen will appear showing initialising

pu32NG

Step 3: The splash screen will show execution of O365 OST Virtual Disk, confirming INI file has been detected and is running for the user.

pu33NG

Step 4: Browsing to the Location specified in Configuration Section – Step 9

pu31NG

Step 5: Browsing to %LocalAppData%\Microsoft , the Outlook Folder is mounted to the VHD file and previous folder has been renamed Outlook.old.

pu44NG

Step 6: Open Microsoft Outlook , Click Next to begin setup of profile

FSLOGIX-32

Step 7: Select Yes to setup Outlook e-mail account. Click Next

FSLOGIX-33

Step 8: Enter the appropriate details to setup the Office 365 account in outlook. Then click Next

  • Your Name: Name
  • e-mail address: yourname@yourcompany.com
  • Password: password for the account.

Step 9: Establishing Connection, Search for the Outlook setting and logging on to the mail server will begin

Step 10: After successful setup, ensure “change account settings” is ticked and click Next

Step 11: Ensure that “Use cached exchange mode” is ticked and click Finish

Step 12 : Looking at the %LocalAppData%\Microsoft\Outlook the folder is populated with the outlook cache.

This will allow the ProfileUnity product run without depending on the ProfileDisk to capture all setting this making it profile agnostic.

Attachments:

"Template-Office 365 Outlook OST Storage Virtual Disk.make me json"

rename to below before importing

Template-Office 365 Outlook OST Storage Virtual Disk.json

 

 

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.