We help IT Professionals succeed at work.

How to create Outlook archive using VB or command line to automate the solution

Nitin Rohitgi
on
85 Views
Last Modified: 2017-04-14
I want to automate this process via Command or any other tool
Comment
Watch Question

System Analyst
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
My solution of doing it via GPO or resulting Registry setting is also a valid solution. In fact, it is the only one that can be automated and can be done via command line as per OP's requirements
reg add HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\Preferences /v ArchiveOld /t REG_DWORD /d 1

Open in new window

archive.jpg
Alexei KuznetsovMicrosoft Outlook MVP
CERTIFIED EXPERT

Commented:
@Shaun, this is not the solution. Nitin clearly asks for the command line/VB script to automate the backup procedure (aka Archiving).
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
How to create Outlook archive using VB or command line to automate the solution
I want to automate this process via Command or any other tool
No, automate the creation of Outlook archiving, not trigger the process. Even if that is so, what makes the other answers more correct, mine does the exact same setting as other two just automated?