SOLVED
Home

Is there a way to manage Project Online using PowerShell?

%3CLINGO-SUB%20id%3D%22lingo-sub-2104%22%20slang%3D%22en-US%22%3EIs%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2104%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20there%20isn't%20a%20%22Project%20Online%22%20group%2C%20I'll%20try%20to%20ask%20it%20here%3A%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20manage%20Project%20Online%20using%20Powershell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWanted%20to%20check%20some%20resources%20properties%20like%20active%20and%20inactive.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2104%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3960%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3960%22%20slang%3D%22en-US%22%3EEy%20mates!%20We%20should%20keep%20talking%20in%20English%20%3A-)...the%20translation%20of%20any%20.NET%20program%20that%20uses%20CSOM%20into%20PowerShell%20It%20is%20almost%20immediate!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3956%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3956%22%20slang%3D%22en-US%22%3E%3CP%3EHola%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETe%20paso%20un%20par%20de%20enlaces%20para%20que%20te%20inspires.%20Trabajan%20con%20el%20api%20cliente%20pero%20desde%20.Net%2C%20aunque%20ser%C3%ADa%20f%C3%A1cilmente%20trasladable%20a%20powershell%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Freshmeeauckloo.wordpress.com%2F2015%2F11%2F18%2Fupdating-resources-custom-field-values-using-csom-project-online-project-server-2013%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Freshmeeauckloo.wordpress.com%2F2015%2F11%2F18%2Fupdating-resources-custom-field-values-using-csom-project-online-project-server-2013%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Foffice%2Fmicrosoft.projectserver.client.enterpriseresource_di_pj14mref.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Foffice%2Fmicrosoft.projectserver.client.enterpriseresource_di_pj14mref.aspx%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEn%20estos%20casos%20se%20editan%20las%20propiedades%20de%20un%20recurso%20en%20concreto%2C%20habr%C3%ADa%20que%20modificarlo%20para%20deshabilitarlo%3C%2FP%3E%3CP%3EEspero%20que%20te%20sirvan%20de%20ayuda%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUn%20saludo!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3423%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3423%22%20slang%3D%22en-US%22%3E%3CP%3EJose%20Rafael%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHola!%3C%2FP%3E%3CP%3EEn%20la%20verdad%20lo%20que%20busc%C3%A1vamos%20hacer%20ac%C3%A1%20era%20poder%20desactivar%20los%20recursos%20usando%20el%20PowerShell.%3C%2FP%3E%3CP%3EPorque%20hoy%20tenemos%20que%20desactivar%20los%20recursos%20y%20solo%20despu%C3%A9s%20apagar%20la%20cuenta%20en%20Office%20365%20(si%20el%26nbsp%3Btrabajador%20esta%20saliendo%20de%20la%20empresa).%3C%2FP%3E%3CP%3EPodemos%20hacerlo%20por%20el%20portal%2C%20pero%20usando%20el%20PowerShell%20podemos%26nbsp%3Bconfigurar%20v%C3%A1rios%20usu%C3%A1rios%20de%20una%20vez%20sola.%3C%2FP%3E%3CP%3ESi%20pudiera%20haber%20una%20forma%20f%C3%A1cil%20de%20activar%2Fdesactivar%20v%C3%A1rios%20recursos%20seria%20muy%20bueno.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3420%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3420%22%20slang%3D%22en-US%22%3E%3CP%3EHola!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELa%20funci%C3%B3n%20existente%20sirve%20para%20los%20proyectos%2C%20pero%20ser%C3%ADa%20f%C3%A1cilmente%20trasladable%20a%20otros%20objetos%20(tareas%2C%20recursos...).%20En%20todo%20caso%2C%20dime%20qu%C3%A9%20quieres%20hacer%20exactamente%20y%20trato%20de%20ayudarte%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2983%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2983%22%20slang%3D%22en-US%22%3E%3CP%3EJose%20Rafael%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMuchas%20gracias!%3C%2FP%3E%3CP%3EPero%20todavia%2C%20como%20solo%20tiene%20una%20funci%C3%B3n%2C%20no%20hay%20como%20hacer%20lo%20que%20preciso.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2927%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2927%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wrote%20a%20post%20about%20it%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fprojectservernotes.com%2F2016%2F05%2F08%2Fgaleria-del-script-center-de-microsoft-con-scripts-para-project-server-online%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fprojectservernotes.com%2F2016%2F05%2F08%2Fgaleria-del-script-center-de-microsoft-con-scripts-para-project-server-online%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20you%20can%20find%26nbsp%3B%20sample%20code%20here%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2Fde-powershell-con-CSOM-4cdf9952%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Fscriptcenter%2Fde-powershell-con-CSOM-4cdf9952%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20in%20Spanish%20but%20I%20think%20that%20you%20could%20understand%20the%20code%20easily%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262%22%20slang%3D%22en-US%22%3E%3CP%3EJuan%20Carlos%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20sad%20that%20are%20not%20cmdlets....%20%3D%2F%3C%2FP%3E%3CP%3EI'll%20try%20to%20take%20a%20look%20at%20this.%20Thanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2133%22%20slang%3D%22en-US%22%3ERE%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2133%22%20slang%3D%22en-US%22%3EYes%2C%20there%20is.%20You%20can%20use%20Client%20Side%20Object%20Model%20for%20SharePoint%20Online%20and%20Project%20Online%20in%20your%20PowerShell%20scripts.%20However%2C%20there%20are%20not%20PowerShell%20cmdlets%20for%20Project%20Online%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2116%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20manage%20Project%20Online%20using%20PowerShell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2116%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Vandrey%2C%20I've%20moved%20this%20conversation%20to%20the%20Project%20group%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnetwork.office.com%2Ft5%2FProject%2Fct-p%2FProject%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fnetwork.office.com%2Ft5%2FProject%2Fct-p%2FProject%3C%2FA%3E%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Vandrey da Trindade da Cunha Pereira
Occasional Contributor

Hi,

 

Since there isn't a "Project Online" group, I'll try to ask it here:

Is there a way to manage Project Online using Powershell?

 

Wanted to check some resources properties like active and inactive.

9 Replies

Hey Vandrey, I've moved this conversation to the Project group here: https://network.office.com/t5/Project/ct-p/Project  

Solution
Yes, there is. You can use Client Side Object Model for SharePoint Online and Project Online in your PowerShell scripts. However, there are not PowerShell cmdlets for Project Online

Juan Carlos,

 

So sad that are not cmdlets.... =/

I'll try to take a look at this. Thanks!

 

Hi,

 

I wrote a post about it:

 

https://projectservernotes.com/2016/05/08/galeria-del-script-center-de-microsoft-con-scripts-para-pr...

 

And you can find  sample code here:

 

https://gallery.technet.microsoft.com/scriptcenter/de-powershell-con-CSOM-4cdf9952

 

It's in Spanish but I think that you could understand the code easily

 

Hope this helps!

Jose Rafael,

 

Muchas gracias!

Pero todavia, como solo tiene una función, no hay como hacer lo que preciso.

Hola!

 

La función existente sirve para los proyectos, pero sería fácilmente trasladable a otros objetos (tareas, recursos...). En todo caso, dime qué quieres hacer exactamente y trato de ayudarte :)

Jose Rafael,

 

Hola!

En la verdad lo que buscávamos hacer acá era poder desactivar los recursos usando el PowerShell.

Porque hoy tenemos que desactivar los recursos y solo después apagar la cuenta en Office 365 (si el trabajador esta saliendo de la empresa).

Podemos hacerlo por el portal, pero usando el PowerShell podemos configurar vários usuários de una vez sola.

Si pudiera haber una forma fácil de activar/desactivar vários recursos seria muy bueno.

Hola

 

Te paso un par de enlaces para que te inspires. Trabajan con el api cliente pero desde .Net, aunque sería fácilmente trasladable a powershell:

 

https://reshmeeauckloo.wordpress.com/2015/11/18/updating-resources-custom-field-values-using-csom-pr...

 

https://msdn.microsoft.com/en-us/library/office/microsoft.projectserver.client.enterpriseresource_di...

 

En estos casos se editan las propiedades de un recurso en concreto, habría que modificarlo para deshabilitarlo

Espero que te sirvan de ayuda

 

Un saludo!

Ey mates! We should keep talking in English :-)...the translation of any .NET program that uses CSOM into PowerShell It is almost immediate!!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies