Giter Club home page Giter Club logo

powershell's Introduction

PowerShell

This repository is used for all my public scripts. Let me know if you have any issues using them, always space for improvement Feel free to fork

powershell's People

Contributors

anthonykersten avatar kookie avatar lazywinadmin avatar przemyslawklys avatar rpstester avatar sk82jack avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powershell's Issues

Error when processing groups that have users from the local domain and remote domain

Hi

I get an error while processing groups that have users from other domains within a group. I have checked by removing members that are from the other domain and running again. Once the user has been removed there is no error.

Is it possible to query groups that have users from multiple domains? If not is it something that can be addressed?

ERROR being generated.

"WARNING: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
WARNING: [PROCESS] AD MODULE - Error When querying the group members in Active Directory
WARNING: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

HackTool:PowerShell/PoshKeylogger.B Windows Defender Threat Detection

enaces détectées - Action nécessaire. Élevé
Bonjour,
une menace est détectée par Windows Defender lors du téléchargement du projet.

Détecté : HackTool:PowerShell/PoshKeylogger.B
État : Actif
Les menaces actives n'ont pas été corrigées et sont en cours d'exécution sur votre appareil.

Détails : Ce programme présente un comportement potentiellement non désiré.

Éléments affectés :
containerfile: C:\Users\Public\Downloads\PowerShell-master.zip
file: C:\Users\Public\Downloads\PowerShell-master.zip->PowerShell-master/TOOL-Start-KeyLogger/Start-KeyLogger.ps1

TOOL-Enable-RemoteDesktop

Win32_TerminalServiceSetting doesn't work with standart parameter, I need to use

Authentication

with value

PacketPrivacy

$Splatting = @{
    Class = "Win32_TerminalServiceSetting"
    NameSpace = "root\cimv2\terminalservices"
    ComputerName = $Computer
    Authentication = 'PacketPrivacy'
    ErrorAction = 'Stop'
    ErrorVariable = 'ErrorProcessGetWmi'
}

AD-GROUP-Monitor_MemberShip - CSV Encoding issue

Script: AD-GROUP-Monitor_MemberShip.ps1

Reported by Michal Burda: when csv was imported/exported there was a difference in local characters so script reported at first run that all users where removed and all the same time were added, I had added parametrer -Encoding in lines 606 and 616 and that fixed issue - for English/US users should be fine - problem occurs with national characters in usernames

Reported on: http://www.lazywinadmin.com/2013/11/update-powershell-monitor-and-report.html#comment-2002256020

TOOL-Remove-StringSpecialCharacter - Minus sign in regex

If SpecialCharacterToKeep contains minus sign the result is wrong. For example:
Remove-StringSpecialCharacter -String "wow#@!`~)(|?/}{-=+" -SpecialCharacterToKeep "","","-","/" returns wow/_*
The solution is to escape minus sign. Something like this: IF ($Character -eq "-") {$Regex +="-"} else {$Regex += [Regex]::Escape($Character)}

Other problem is that the forward slash in front of the special characters seems unnecessary in line $Regex += "/$character"

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.