clemans/powershell
is a collection of Microsoft PowerShell resources that can be used to aid IT professionals in system administration, automation, and more. This project is comprised of:
A directory of functions for implementing Microsoft Windows infrastructure and other useful scripts for Development Operations.
An Azure function that automates the creation of external guest accounts and role assignments for Azure (IaaS) subscriptions.
An Azure (Az.*) script that automates the baseline implementation of an Azure infrastructure as a service (IaaS).
An Azure function that automates the removal of external guest accounts and role assignments for Azure (IaaS) subscriptions.
A directory of functions relating to the subject of IT security and useful scripts for maintaining a safe environment.
A collection of functions that assist with the deletion of browsing and explorer related history.
A directory of functions that aim to automate and assist in Microsoft Windows system administration.
Function that takes the input of a folder path and appends it to the existing $ENV:PATH variable.
A quick script that encrypts a password and outputs to a file.
A function that creates and establishes a Microsoft Exchange command-line connection allowing to import the Microsoft.Exchange module.
A basic function that by default iterates through a localhost's userprofiles and archives the Microsoft Office 365 user license tokens.
A function that attempts to return an Active Directory user object using string input such as a SQL record DisplayName string.
A workaround function that fixes DisplayName overlap in Active Directory.
See Main() for more information: Start-DatabaseSync.ps1
.
A custom function that attempts to find a user's computer when searching their name in the ADComputer's description attribute.
A group policy script that creates an HTTP/HTTPS WS-Man listener for PowerShell remoting.
A function that creates a new SQL connection, queries the specified MSSQL database, and outputs the specified tableset.
PowerShell remoting group policy object documentation.
Requires scripts: New-HttpsListener.ps1
& Set-PowerShell_SDDL.ps1
A custom function that sets a root folders' parents' ACLs on child objects. Useful if there are multiple parent folders with identical child objects. (Created as a workaround)
A group policy script that sets SDDLs on the PSSessionConfiguration of a client machine's PowerShell instance.
A function that sets administration ownership and adds full permission inheritance to a specified path file or folder. By default, the local system administrators group takes ownership and is provided full permissions.
A Main() script that updates Active Directory user accounts by constructing PSObjects using a provided MSSQL database table.
A multi-function custom script which aims to automate a specific company's disable user account process.
The repository and all individual scripts are under the GNU GENERAL PUBLIC LICENSE
The default computer-level module path is: "$Env:windir\System32\WindowsPowerShell\v1.0\Modules"
- Avoid Write-Host at all costs. PowerShell functions/cmdlets are not command-line utilities! Pull requests containing code that uses Write-Host will not be considered. You should output custom objects instead. For more information on creating custom objects, read these articles: