Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[Powershell] affichage tronqué du résultat d'un script

1 réponse
Avatar
Lyes
Bonjour,

Je débute en Powershell avec mon premier script qui me liste les
ACL des dossiers d'une partition d'un serveur avec une profondeur
(récursivité) de 2 sous dossiers.
Mon problème est que le résultat que je souhaite obtenir au format
table apparait tronqué par des points de suspension.
Quelqu'un aurait il une idée pour me dépanner?

Voici mon script:

--------------------------debut script---------------------------------

$path= get-childitem -path \\FS-SRV\d$ | where{$_.PSIsContainer}
$subpath=$path | get-childitem | where{$_.PSIsContainer}
$path | get-acl | select-object path,owner,accesstostring,group |
format-table
$subpath | get-acl | select-object path,owner,accesstostring,group |
Format-table

----------------------------fin script------------------------------------


et voici le résultat:


Path Owner accesstostring
Group
---- ----- --------------
-----
Microsoft.PowerSh... MYDOM\formation1
MYDOM\Utilisa. d...
Microsoft.PowerSh... MYDOM\gr_compta
MYDOM\Utilisa. d...
Microsoft.PowerSh... BUILTIN\Administ...
AUTORITENT\SYSTEM


Merci à vous

Lyes
Lyes

1 réponse

Avatar
Marc Lognoul [MVP]
Bonjour,

Les colonnes sont réduites en fonction les dimensions de la fenêtre
Powershell (propriétés...)
La paramètre -autosize maximisera l'usage de l'espace

--
Marc Lognoul [MCSE, MCTS, MVP]
Heureux celui qui a pu pénétrer les causes secrètes des choses
Happy is the one who could enter the secret causes of things
Blog EN: http://www.marc-antho-etc.net/blog/
Blog FR: http://www.marc-antho-etc.net/blogfr/

"Lyes" wrote in message
news:
Bonjour,

Je débute en Powershell avec mon premier script qui me liste les
ACL des dossiers d'une partition d'un serveur avec une profondeur
(récursivité) de 2 sous dossiers.
Mon problème est que le résultat que je souhaite obtenir au
format
table apparait tronqué par des points de suspension.
Quelqu'un aurait il une idée pour me dépanner?

Voici mon script:

--------------------------debut script---------------------------------

$path= get-childitem -path FS-SRVd$ | where{$_.PSIsContainer}
$subpath=$path | get-childitem | where{$_.PSIsContainer}
$path | get-acl | select-object path,owner,accesstostring,group |
format-table
$subpath | get-acl | select-object path,owner,accesstostring,group |
Format-table

----------------------------fin script------------------------------------


et voici le résultat:


Path Owner accesstostring
Group
---- ----- --------------
-----
Microsoft.PowerSh... MYDOMformation1
MYDOMUtilisa. d...
Microsoft.PowerSh... MYDOMgr_compta
MYDOMUtilisa. d...
Microsoft.PowerSh... BUILTINAdminist...
AUTORITENTSYSTEM


Merci à vous

Lyes
Lyes