This is a PowerShell module that uses the GitHub API to interact and manipulate Gist.
PS GitHub:\> Get-Command -Module PSGist | Sort-object -Property Name
| <# | |
| .SYNOPSIS | |
| Test a Domain Targeted PSCredential Object for valid Username and Password. | |
| .DESCRIPTION | |
| Simulates an Authentication Request in a Domain envrionment using a PSCredential Object. | |
| Returns $true if both Username and Password pair are valid. | |
| .EXAMPLE | |
| Test-Credential | |
| .NOTES | |
| Expansion from Stack Overflow Artical: http://stackoverflow.com/questions/10802850/validating-powershell-pscredential |
| <# | |
| .SYNOPSIS | |
| Creates a new username with AD DS Validation. | |
| .DESCRIPTION | |
| Create a new username with the following order until a unique Username is found. | |
| 1. First Initial Last Name. | |
| 2. First Initial First Middle Intial Last Name. | |
| 3. Itterates First Name adding Char until a unique Username is found. | |
| .EXAMPLE | |
| New-Username -FirstName John -LastName Doe |
| Param ( | |
| [Parameter( | |
| Mandatory = $true | |
| )] | |
| [String] | |
| $SourcePackageCreationPath, | |
| [Parameter( | |
| Mandatory = $true | |
| )] |
| <# | |
| .SYNOPSIS | |
| Retrives DNS Servers from a computer. | |
| .DESCRIPTION | |
| Retrives primary, secondary, tertiery DNS Servers from on online system with Windows Management Instrimentation. | |
| .INPUTS | |
| System.String. | |
| .OUPUTS | |
| System.Management.Automation.PSObject. | |
| .PARAMETER ComputerName |
| <# | |
| .SYNOPSIS | |
| Displays matching PowerBall numbers from a Csv file. | |
| .DESCRIPTION | |
| Imports a csv file, with each number in it own column, then compares it to the PowerBall Numbers. | |
| Outputs highlighted matching numbers in each row. | |
| .INPUTS | |
| System.String | |
| .OUTPUTS | |
| None. |
| #requires -Modules ActiveDirectory | |
| # Gets all currently protected groups and users. | |
| $protectedGroups = Get-ADGroup -LDAPFilter '(adminCount=1)' | |
| $protectedUsers = Get-ADUser -LDAPFilter '(adminCount=1)' | |
| # Gets all the users that are actually members of the current protected groups. | |
| $usersFromProtectedGroups = $protectedGroups | ForEach-Object { | |
| Get-ADGroupMember -Identity $_ | Where-Object { | |
| $_.ObjectClass -eq 'User' |
| # Fix for missing Sophos Web Intelligence Service. | |
| # https://www.sophos.com/en-us/support/knowledgebase/121905.aspx | |
| <# WQL Query for SCCM collection to target computers with Sophos Anti-Virus but missing the Sophos Web Intelligence Service. | |
| SELECT SMS_R_SYSTEM.ResourceID, | |
| SMS_R_SYSTEM.ResourceType, | |
| SMS_R_SYSTEM.Name, | |
| SMS_R_SYSTEM.SMSUniqueIdentifier, | |
| SMS_R_SYSTEM.ResourceDomainORWorkgroup, | |
| SMS_R_SYSTEM.Client |
| <# | |
| .SYNOPSIS | |
| Gets the current status of BitLocker. | |
| .DESCRIPTION | |
| Tests the current status of BitLocker Drive Encryption on an Encryptable Volume. Only returns true if the volume is fully encrypted and the protection status is on. | |
| .INPUTS | |
| System.String. | |
| .OUTPUTS | |
| System.Management.Automation.PSObject | |
| .PARAMETER ComputerName |
This is a PowerShell module that uses the GitHub API to interact and manipulate Gist.
PS GitHub:\> Get-Command -Module PSGist | Sort-object -Property Name
| <# | |
| .SYNOPSIS | |
| Ensures proper configuration of targeted Registry Key Property Values to prevent the LogMeIn Patch Management feature from interfering with the Windows Update subsystem. | |
| .DESCRIPTION | |
| There is a limitation on the WUAUSERV application that makes it a single user application. During the Patch Cycle of LabTech, if another application (LogMeIn) tries to invoke a call to it, | |
| It will cause the LabTech Patch Cycle to fail. This registry configuration will prevent the LogMeIn service from using the Windows Update subsystem. | |
| .INPUTS | |
| None. | |
| .OUTPUTS | |
| None. |