Skip to content

Instantly share code, notes, and snippets.

@pa-0
Forked from dfinke/mbsa.ps1
Created July 15, 2024 06:19
Show Gist options
  • Save pa-0/2e8854e240b30e4d52406220d33bd24c to your computer and use it in GitHub Desktop.
Save pa-0/2e8854e240b30e4d52406220d33bd24c to your computer and use it in GitHub Desktop.

Revisions

  1. @dfinke dfinke renamed this gist Jan 3, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @dfinke dfinke revised this gist Jan 3, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion mbsa,ps1
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,7 @@ rm srv1.xlsx -ErrorAction Ignore
    Export-Excel srv1.xlsx -AutoSize -TableName table -Show

    # Read the new spreadsheet
    # Import-Excel .\srv1.xlsx
    # Import-Excel .\srv1.xlsx

    # read, export to csv
    # Import-Excel .\srv1.xlsx | Export-Csv -NotType srv1.csv
  3. @dfinke dfinke created this gist Jan 3, 2016.
    7 changes: 7 additions & 0 deletions mbsa,ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    rm srv1.xlsx -ErrorAction Ignore

    [xml](gc .\srv1.mbsa) | % secscan |
    Export-Excel srv1.xlsx -AutoSize -TableName table -Show

    # Read the new spreadsheet
    # Import-Excel .\srv1.xlsx