Giter VIP home page Giter VIP logo

powershell's Introduction

Hi, This is Faris Malaeb. I enjoy automating manual processes, mainly infrastructure scripting. And PowerShell is the perfect platform for this.

You will find many scripts and posts on my site, www.powershellcenter.com.

Check the scripts over here. Feel free to pull and submit your changes. https://github.com/farismalaeb/Powershell

Feel free and contact me @farismalaeb

powershell's People

Contributors

farismalaeb 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

powershell's Issues

ADSecurityReporter error when running with no parameter

Running the Get-PscActiveDirectoryACL without any parameter returns the following error.

Get-PscActiveDirectoryACL: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.

To walkaround this, make sure to use the -ACLToInclude parameter.

Planned Exchange Maintenance Mode update 2.1

Features

  • Adding Switch to list a summary of the server's availability and which one is in maintenance mode.
  • Remove the need for the IP-Less DAG option and make it auto-detect
  • Detect New Updates

Bug Fixes

  • Check -IgnoreQueue timeout issue.

Test-EmmReadiness returns multiple errors.

Describe the bug
running Test-EmmReadiness returns multiple errors.

Checking SSL Certificate Validity Cannot index into a null array. At C:\Program Files\WindowsPoweTest-EmmReadinessrShell\Modules\EmmExDAGModule\2.2\EmmExDAGModule.psm1:542 char:18 + $cn = $matches[1] + ~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray

get-cluster : The cluster service is not running. Make sure that the service is running on all nodes in the cluster

Get-Cluster : An error occurred opening cluster 'DAG19'. No such host is known At C:\Program Files\WindowsPowerShell\Modules\EmmExDAGModule\2.2\EmmExDAGModule.psm1:615 char:19 + $Status=Get-Cluster (Get-DatabaseAvailabilityGroup)| Get-Cl ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Cluster], ClusterCmdletException + FullyQualifiedErrorId : Get-Cluster,Microsoft.FailoverClusters.PowerShell.GetClusterCommand WARNING: The number of available clusters is not enough, Please resume one node at least

To Reproduce
run Test-EmmReadiness

Expected behavior
able to check cluster and certificate.

Screenshots
image

PowerShell version:

  • 5.1

Running on Windows :

  • Windows Server 2019

Add Email Notifications to Clean-ExchangeLog script

Hello Faris,

I use a few different PS1 scripts I have found over the years to manage old exchange logs, and have recently found yours.

One "file delete" script I use has email notifications in its capability. This script is called "DeleteOld" and was written by Jaap Brasser. I am not sure if it can be found on the internet anymore, but I do have a copy of it. That script is not specific to Exchange. The reporting feature in it is useful though (log file is emailed, containing actions done, # files deleted, space recovered, etc). I am wondering if that feature could be added to your script. If interested, I can provide you with that PS1.

What are the licensing terms?

Is it allowed to use those scripts commercially?
Is it allowed to use modified versions of those scripts commercially?
What license they are licensed under?

Suppressing error message

Is there a way to suppress the no active session error message that comes up everytime when querying computers with no RDP active users?

Exchange Maint Mode update

  • Scan all DBs for Health
  • Make the report exportable
  • Add exclusion option for Certificate scanner.
  • report stretched cluster config

EMM Dag Module wont import the PSSnapin

Describe the bug
For some reason, PowerShell wont import the PS Module for Exchange server, even though its requested to do so once the module is imported to the PowerShell Session

To Reproduce
Steps to reproduce the behavior:

  1. Open PowerShell 5.1 (As Admin)
  2. Import the Module
  3. try typing Get-Mailbox.
  4. PowerShell return that the cmdlet is not exist

Expected behavior
The expected behavior is PowerShell should import the snapin and should be usable, typing Get-Mailbox, should return all the mailboxes

Running on Windows :

  • Windows 10/11
  • Windows Server 2016/2019
  • Windows Server 2012
  • Other

Workaroundt
If you face this issue, for now, manually add the Ps snapin by typing
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.snapin
Make sure that the snapin loaded by typing
(Get-PSSnapin).Name
Make sure that the Microsoft.Exchange.Management.PowerShell.snapin is listed

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.