Call Us Today! 1.800.895.3254
[email protected]
Consulting & Advisory
Consulting / Advisory helps business and IT leaders make better decisions and turn strategy into execution-ready initiatives. Most engagements start with a Discovery Initiative to confirm outcomes, and build a roadmap.

Learn About Consulting
Data & AI
Data & AI delivers modern data platforms, analytics, and practical AI solutions—from assistants to agents—built on enterprise cloud tools. Integent helps you govern, deploy, and drive adoption so solutions stick and scale across your organization.
Learn About Data & AI
Support
Support keeps your solution stable, secure, and aligned with day-to-day operations. We combine functional and technical expertise with proactive monitoring, preventive maintenance, and 24/7 coverage for critical incidents.

Learn About Support
Microsoft Planner Premium
Leverage proven knowledge and experience to design and deploy Microsoft Planner Premium so your organization can manage projects, work, and resources more effectively across teams.
Learn More About Planner Premium
OnePlan
Integent can help you ensure continuity beyond Project Online by deploying OnePlan in the Microsoft Cloud—connecting portfolio governance, resources, and delivery execution for results.
Learn More About OnePlan
Microsoft Dynamics 365
Ensure business continuity with a custom cloud solution that connects your sales, service, finance, and operations teams to deliver measurable, predictable results.

Learn More About Dynamics 365
Microsoft Power Platform
Consisting of Power BI, Power Apps, Power Automate and Copilot Studio, the Microsoft Power Platform helps streamline and improve business functions.

Learn More About 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
News
Stay informed on Integent’s latest company updates and other important industry information. Our passion is customer success.
Read The Latest News
Videos
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
Blog
Our industry experts share best practices and common pitfalls to avoid, in order to get the most out of your technology solutions.
Discover More

June 8, 2010

Microsoft Project Server 2010 and PowerShell

 

In case you have not heard SharePoint 2010 and Project Server 2010 will support PowerShell and hence will ship with a library of already about 650 commands. Please find below a few examples I wrote trying to automate Project Service Application creation.

One useful commands to get started:  Get-Help *project* (lists all cmdlet that contains the word ‘project’).

Check out this recently Project Server 2010 PowerShell Help file for more information: http://technet.microsoft.com/en-us/library/ee890098(office.14).aspx

As usual we will release Project Server 2010 PowerShell documentations by RTM on TechNet. One of the great thing about PowerShell is that you can easily create your own commands (think of a utility that issues PSI calls for instance…), stay tune for more samples MSDN, in the meantime experiment the power of PowerShell 🙂

$projectapppool = "ProjectServer-AppPool"
$projectserviceapp = "ContosoProjectServiceApplication"
$pwaname = "PWA"
$projectwebappname = "Contoso Project Server Site"
$projectwebappport = 82
$projectwebappurl = "http://www.contoso.com"
$projectwebcontentdb = "ProjectServer"+$projectwebappport+"_Content"
$adminaccount = "contosoadministrator"
$databaseserver = "DEMO2010A"
    
# Create Application Pool
New-SPServiceApplicationPool  -Name $projectapppool -Account $adminaccount

# Create Project Service Application
New-SPProjectServiceApplication -ApplicationPool $projectapppool -Name $projectserviceapp

# Create Project Service Application Proxy
New-SPProjectServiceApplicationProxy -Name ContosoProjectServiceApplicationProxy -ServiceApplication $projectserviceapp

# Create Project Server Web Application with its own Content Database
New-SPWebApplication -Name $projectwebappname -Port $projectwebappport -URL $projectwebappurl -ApplicationPool $projectapppool -ApplicationPoolAccount $adminaccount -DatabaseName $projectwebcontentdb

# Create New Project Server Site Collection
# Get-SPWebTemplate
New-SPSite -Url ($projectwebappurl+ ":" +$projectwebappport) -OwnerAlias $adminaccount -ContentDatabase $projectwebcontentdb -Template PWS#0

# Provision PWA Instance
New-SPProjectWebInstance -AdminAccount $adminaccount -ArchiveDbname ($pwaname +"_Archive") -DraftDbname ($pwaname +"_Draft") -PrimaryDbserver $databaseserver -PublishedDbname ($pwaname +"_Published") -ReportingDbname ($pwaname +"_Reporting") -ReportingDbserver $databaseserver -Url ($projectwebappurl + ":" + $projectwebappport + "/" + $pwaname) -Lcid 1033

Great PowerShell resources:

  • PowerGui: http://powergui.org (great UI editor for PowerShell)
  • Zach Rosenfield’s Blog: http://sharepoint.microsoft.com/blogs/zach/Lists/Categories/Category.aspx?Name=PowerShell (contains lots of SP 2010 examples as well as an intro to PowerShell)
    • PowerShell 2010: Basic Discovery
    • PowerShell 2010: Basic SharePoint Cmdlets
    • SP 2010: Intro to PowerShell Part 3
    • SP 2010: Intro to PowerShell Part 4
  • PowerShell team blog: http://blogs.msdn.com/PowerShell
  • Master-PowerShell | With Dr. Tobias Weltner (eBook): http://powershell.com/cs/blogs/ebook/ (if you want to go beyond standard commands and start creating your own)
  • 0 Comments

IT Professionals, Project Server 2010

 

reposted from Christophe's blog

© Copyright 2026 | Integent.com | All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram