Skip to content
Discussion options

You must be logged in to vote

@dfinke ... first, thanks for being prompt in your replies

basically I'm looking to doing stuff like this:
Get-Process | Export-Excel -TableStyle Medium15

as I understand it (reading the .md that I linked in the OP) if I leave off the -TableStyle Medium15 it will default to the Medium6 table style (right?) and my hope would be that I could change that default so I could leave off the -TableStyle Medium15 every time I do an Export-Excel

and I thought that maybe an alias in my PS profile.ps1 would be the way to go
but from testing and researching it appears that's not the way to do this and the proper way is the following:
$PSDefaultParameterValues['Export-Excel:TableStyle'] = "Medium15"

an…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ccheath
Comment options

Comment options

You must be logged in to vote
2 replies
@ccheath
Comment options

Answer selected by ccheath
@dfinke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants