Code Monkey home page Code Monkey logo

mod-posh's People

Contributors

jeffpatton1971 avatar

Watchers

 avatar  avatar

mod-posh's Issues

Formatting

Functions in libraries were all written in various applications over time, all 
the formatting needs to be adjusted so it's uniform.

Original issue reported on code.google.com by [email protected] on 8 Feb 2012 at 10:18

DellWebsiteFunctions

The Dell website has been heavily modified since this library was originally 
written. The only function currently working is Get-DellWarranty.

Either delete the other 3 functions or remove them.

Original issue reported on code.google.com by [email protected] on 9 Feb 2012 at 9:06

Add-LocalUserToGroup Errors out

Exception calling "add" with "1" argument(s): "A member could not be added to o
r removed from the local group because the member does not exist.
"
At line:1 char:11
+ $group.add <<<< ("WinNT://" + $strDomain + "/" + $strComputer + "/" + $strUse
r)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : CatchFromBaseAdapterMethodInvokeTI

Original issue reported on code.google.com by [email protected] on 19 Mar 2012 at 5:43

Get-OpenFiles only returns one instance

Hi Jeffrey,

Thanks for your script, it helped me to automate a send mail to users :)


But the function has a little error here : 
http://scripts.patton-tech.com/browser/powershell/production/includes/ComputerMa
nagement.ps1

Around here :

1277      foreach ($Resource in $Resources)
 1278            {
 1279                Try
 1280                {
 1281                    $UserResource = New-Object -TypeName PSobject -Property @{
 1282                        User = $Resource.GetType().InvokeMember("User","GetProperty",$null,$Resource,$null)
 1283                        Path = $Resource.GetType().InvokeMember("Path","GetProperty",$null,$Resource,$null)
 1284                        LockCount = $Resource.GetType().InvokeMember("LockCount","GetProperty",$null,$Resource,$null)
 1285                        }
 1286                    }
 1287                Catch
 1288                {
 1289                    }
 1290                }
 1291            $OpenFiles += $UserResource
 1292            }

Line 1291 should be into foreach but is not. Only one result is viewable, the 
last one !

Original issue reported on code.google.com by [email protected] on 7 Feb 2012 at 3:30

New-WikiPage is broken

Getting two square boxes at the beginning of the file, which messes up the 
page. Have to manually edit and delete the two offending boxes.

Original issue reported on code.google.com by [email protected] on 1 Mar 2012 at 9:01

Modify get-adobject to enum properties

This function and possibly others accept ad properties as parameters. Adjust 
the return object to be a pscustomobject to return those propertiers.

$Properties = "name","distinguishedName"

new-object -ObjectType PSObject -Properties @{
name = blah
distinguishedName = blah
}

Original issue reported on code.google.com by [email protected] on 9 Feb 2012 at 8:05

Outdated....

Updated for DPM 2012 R2

Changed:

if (!(Get-PSSnapin |Where-Object {$_.Name -eq 
"Microsoft.DataProtectionManager.PowerShell"}))
        {
            try
            {
                Write-Verbose "Adding DPM Snap-in"
                Add-PSSnapin -Name "Microsoft.DataProtectionManager.PowerShell" 

To:

    if (!(Get-Module |Where-Object {$_.Name -eq "DataProtectionManager"}))
        {
            try
            {
                Write-Verbose "Adding DPM Snap-in"
                Import-Module -Name "DataProtectionManager" 

Original issue reported on code.google.com by [email protected] on 18 Feb 2014 at 8:19

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.