1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
| PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $web = get-spweb https://BLABLABLA.sharepoint.com/julien
get-spweb : Le terme «get-spweb» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un
chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.
Au caractère Ligne:1 : 8
+ $web = get-spweb https://BLABLABLA.sharepoint.com/julien
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-spweb:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field = $web.Fields | ?{$_.StaticName -eq "Facilities"}
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $list = $web.List | ?{$_.Title -eq "Calendrier"}
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.ShowInDisplayForm = $true
Propriété «*ShowInDisplayForm*» introuvable dans cet objet. Assurez-vous qu'elle existe et qu'elle peut être définie.
Au caractère Ligne:1 : 1
+ $field.ShowInDisplayForm = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.ShowInEditForm = $true
Propriété «*ShowInEditForm*» introuvable dans cet objet. Assurez-vous qu'elle existe et qu'elle peut être définie.
Au caractère Ligne:1 : 1
+ $field.ShowInEditForm = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.ShowInListSettings = $true
Propriété «*ShowInListSettings*» introuvable dans cet objet. Assurez-vous qu'elle existe et qu'elle peut être définie.
Au caractère Ligne:1 : 1
+ $field.ShowInListSettings = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.ShowInNewForm = $true
Propriété «*ShowInNewForm*» introuvable dans cet objet. Assurez-vous qu'elle existe et qu'elle peut être définie.
Au caractère Ligne:1 : 1
+ $field.ShowInNewForm = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.ShowInViewForms = $true
Propriété «*ShowInViewForms*» introuvable dans cet objet. Assurez-vous qu'elle existe et qu'elle peut être définie.
Au caractère Ligne:1 : 1
+ $field.ShowInViewForms = $true
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $field.Update()
Impossible d'appeler une méthode dans une expression Null.
Au caractère Ligne:1 : 1
+ $field.Update()
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $list.Fields.Add($field)
Impossible d'appeler une méthode dans une expression Null.
Au caractère Ligne:1 : 1
+ $list.Fields.Add($field)
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
PS C:\Users\DARRAS\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\SharePoint Online Management Shell> $list.Update() |
Partager