Call Us Today! 1-800-895-3254
[email protected]
Microsoft Project Services
Integent has specialized consulting and training services to handle all your project and resource management needs.
Microsoft Training
Integent offers a comprehensive portfolio of training services, with an ideal fit for every organization. Ranging from general training courses to custom solutions, we have you covered.
See Full list of Courses
Learn About Training For
Microsoft Consulting
Integent provides consulting services for a variety of Microsoft applications including Microsoft Project, Project Online, Project for the Web, Dynamics 365, and Microsoft SharePoint.
Learn About Consulting For
Microsoft Support
Microsoft technologies set the standard for project portfolio management, business applications, collaboration, and more. Integent has flexible solutions to support every customer.
Learn About Support For
Microsoft Project
Integent has the knowledge and experience to help design and deploy a solution to help your organization manage projects and resources more effectively
Learn About Microsoft Project
Microsoft Dyamics 365
Integent can help you nsure business continuity with a custom cloud solution that connects sales, service, finance, and operations teams to deliver results.
Learn About Microsoft Dyamics 365
Microsoft SharePoint
SharePoint is Microsoft’s collaboration platform that is a place where team members can communicate, exchange data, share files and much more.
Learn About Microsoft SharePoint
Microsoft Power Platform
Consisting of Power BI, Power Apps, Power Automate and Power Virtual Agents, the Microsoft Power Platform helps streamline and improve business functions.
Learn About Microsoft Power Platform
About Integent
Integent was founded in 2009 on the principles of building long-lasting relationships with customers, exceeding expectations, and providing outstanding customer service. 

We’re dedicated to providing a customized solution backed by our knowledgeable team of Microsoft experts.
Discover What Makes Us Different
GSA Schedule
Integent is GSA Schedule Contract holder. A GSA schedule helps simplify selling our services to government customers.
Read More Here
Stay informed on Integent’s latest company updates and other important industry information. Our passion is customer success.
Read The Latest News
Learning new software doesn’t have to be difficult with our library of dozens of free training videos. Our video training always has something new.
Browse Our Training Video Library
Our industry experts share best practices and common pitfalls to avoid, in order to get the most out of your technology solutions.
Discover More

January 21, 2012

Automated export of SharePoint 2010 sites using PowerShell and Windows Server 2008 Task Scheduler

Hi There!
At a client of mine recently they wanted to have site level backups created on a nightly basis.  I decided to use PowerShell and Windows Task Scheduler to perform this tasks.  Creating the PowerShell scripts was easy enough, see below:

First set execution policy

Set-ExecutionPolicy “Unrestricted”

Next, add the PowerShell snapin for SharePoint

Add-PSSnapin microsoft.sharepoint.powershell

Lastly, export each targeted site as follows:

Export-SPWeb –Identity http://serverName/siteName –Path d:backupssiteName.bak –force –IncludeUserSecurity


The finished product is below:
Set-ExecutionPolicy “Unrestricted”
Next, add the PowerShell snapin for SharePoint
Add-PSSnapin microsoft.sharepoint.powershell
Export-SPWeb –Identity http://serverName/siteName –Path d:backupssiteName.bak –force –IncludeUserSecurity

Save these commands in a .ps1 file.  I will call mine backupSitesTest.ps1.


Create the Task in Task Scheduler:
Create a basic task with the following settings for the Actions Tab:

For Program/Script, type powershell.exe

For Add arguments (optional), specify the following:  -command d:scriptDirectorybackupSitesTest.ps1

Then add a schedule and you’re done.

© Copyright 2022 | | All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram