This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires RunAsAdministrator | |
<# | |
.Author | |
Michael Maher on 2/2/16 | |
#> | |
Function Request-Address{ | |
<# | |
.DESCRIPTION | |
Reads in Office 365 required attributes and creates users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires RunAsAdministrator | |
<###################################################################################### | |
.AUTHOR | |
Michael Maher | |
.DATE | |
08/01/16 | |
.NOTE | |
Expects CSV in format of username, new password, old username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Send-EWSEmail | |
{ | |
<# | |
.SYNOPSIS | |
Sends email via Exchange Web Services | |
.DESCRIPTION | |
Must be run with parameters | |
.PARAMETER Username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Modules ConfigurationManager | |
# Needs Configuration Manager Cmdlets from . . . | |
# https://technet.microsoft.com/en-us/library/dn958404%28v=sc.20%29.aspx | |
$list = Invoke-Sqlcmd -Query "SELECT host FROM BUILD.DBO.SCCMBLOCK;" -ServerInstance "MYSQLSVR" | |
$collectionname = 'Blocked Clients' | |
Set-Location IRL: | |
foreach($c in $list.host) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Move Security Logs to Archive Point | |
.REQUIREMENTS | |
1. Create Shares | |
Invoke-Command -ComputerName dc1,dc3,dc4,dc5,dc2 -ScriptBlock { | |
New-SmbShare Seclog$ -Path E:\Seclog -fullaccess "CONTOSO\Domain Admins"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-AllTeams{ | |
<# | |
.SYNOPSIS | |
List all qualifying teams | |
.NOTES | |
Author: Michael Maher | |
Date: 14/2/16 | |
#> | |
[CmdletBinding()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$a = 348 | |
"{0:N2}" -f $a # Numeric to 2 decimal places = 348.00 | |
"{0:D8}" -f $a # Decimal 8 places = 00000348 | |
"{0:C2}" -f $a # Currency to two places = €348.00 | |
"{0:P0}" -f $a # Percentage x 100 = 34,800 % | |
"{0:X0}" -f $a # Hex = 15C | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<###################################################################################### | |
.AUTHOR | |
Michael Maher | |
.DATE | |
14/01/16 | |
.NOTE | |
Removes old home drives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Modules PSFTP | |
Function Connect-Camera | |
{ | |
<# | |
.SYNOPSIS | |
Connects to Security Camera to get video | |
.DESCRIPTION | |
Can wipe videos or download | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Michael Maher | |
# 25/9/15 | |
# Sign Script | |
# Usage: signScript.ps1 <path to script> | |
param ( | |
$myScript = $(throw "Please specify a path to the script | |
For Example: .\signScript c:\scripts\archiveSecLog.ps1") | |
) |
OlderNewer