Git Product home page Git Product logo

dbremen / powershellscripts Goto Github PK

View Code? Open in Web Editor NEW
94.0 6.0 18.0 4.19 MB

Some PowerShell scipts that can be hopefully also useful to others. Most of them were written by me, if not I tried to reference the author and or source. Since I collected those scripts over several years, I couldn't always remember though.

License: MIT License

PowerShell 100.00%
powershell powershell-scripts powershell-scipts utilty-scripts

powershellscripts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

powershellscripts's Issues

Passing -Property to Compare-Object

Hey,

When passing properties on which objects should be compared actually no difference is made.

$props = @('SN','DN','CN')
Compare-Object $1st $2nd -Property $props -IncludeEqual | ft
Compare-Object $1st $2nd -IncludeEqual | ft

First and Second compare result in the same output

Add-FormatTableView.ps1: probably some bugs

Hello
I tried to use Add-FormatTableView.ps1 and got problems in this code:

$xmlPath = Join-Path (Split-Path $profile.CurrentUserCurrentHost)  ($ViewName + '.format.ps1xml')
    Get-FormatData -TypeName $TypeNames | Export-FormatData -Path $xmlPath
    Update-FormatData -PrependPath $xmlPath
$xmlPath

  1. If $profile.CurrentUserCurrentHost is empty, does the script works as expected?

  2. Does the script really needs to return $xmlPath on the last line?

And this one:

[Parameter(Position=3)] 
[Management.Automation.Alignment] $Alignment = 'Undefined',

Shouldn't the Alignement parameter be an array?

Kind regards, Tom

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.