SOLVED

Is there a way to manage Project Online using PowerShell?

Brass 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  

best response confirmed by VI_Migration (Silver Contributor)
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!!
1 best response

Accepted Solutions
best response confirmed by VI_Migration (Silver Contributor)
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

View solution in original post