This file contains hidden or 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 -Version 3.0 -Modules Az.Network | |
| <# | |
| .SYNOPSIS | |
| Custom script to update your Azure Local Network Gateway with your Public IP | |
| .DESCRIPTION | |
| Updates the Azure Local Network Gateway with your Public IP | |
| Version: 1.0 | |
| Author: Luke Murray (Luke.Geek.NZ) | |
| If no Public IP parameter is set, it will automatically grab the Public IP of the computer running it and set it. | |
| The intention of this script is to run as as a scheduled task on your network, which connects to Azure and updates. Intended for Homelabs and scenarios which have Dynamic IPs. |
This file contains hidden or 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 -Version 4.0 | |
| <# | |
| Author: Luke Murray (Luke.Geek.NZ) | |
| Version: 0.1 | |
| Purpose: Windows 10 Baseline Hardening using DSC per DoD DISA STIG recommendations 22/06/18. | |
| #> | |
| Configuration 'Win10' | |
| { | |
| Import-DscResource -ModuleName PSDesiredStateConfiguration |
This file contains hidden or 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 -Version 4.0 | |
| <# | |
| Author: Luke Murray (Luke.Geek.NZ) | |
| Version: 0.1 | |
| Purpose: Windows Server 2016 Baseline Hardening using DSC per DoD DISA STIG recommendations 22/06/18. | |
| #> | |
| Configuration 'Server2016' | |
| { |
This file contains hidden or 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 -version 3.0 | |
| <# | |
| .SYNOPSIS | |
| Connect-Azure | |
| .DESCRIPTION | |
| Loads the Azure Resource Manager modules, then connects to Azure and opens a Window allowing you to select what subscription. | |
| .NOTES | |
| Version: 1.1 |
This file contains hidden or 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 -Version 3.0 -Modules Dism | |
| <# | |
| .SYNOPSIS | |
| Disables SMB1 | |
| .DESCRIPTION | |
| This script disables SMB1. If Windows 10 or greater it will use the PowerShell cmdlet to disable SMB1 with no restart, if the OS is | |
| less than Windows 10 - such as Windows 7 it will set the services to be disabled manually. Needs to be run as Administrator. | |
| Main script hosted on the following repository: https://github.com/lukemurraynz/PowerOfTheShell/blob/master/Other/Disable-SMB1.ps1 |
This file contains hidden or 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 Connect-Azure | |
| { | |
| <# | |
| .SYNOPSIS | |
| Connect-Azure Function to login to Azure - using Resource Groups. | |
| .DESCRIPTION | |
| Prompts for Azure user credentials, prompts to select Azure Subscription and passes through to select an Azure subscrption. | |
| .EXAMPLE | |
| Connect-Azure | |
| .VERSION: 0.1 |
This file contains hidden or 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
| $url ='https://www.subway.co.nz/sub-of-the-day' | |
| $response = Invoke-WebRequest -Uri $url | |
| $Date = Get-Date | |
| $week = $response.ParsedHtml.body.getElementsByClassName('day') | Select-Object -ExpandProperty innerText | |
| foreach ($day in $week) | |
| { | |
| if ($Date.DayOfWeek -eq $day) |
This file contains hidden or 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
| #Script written by Vlad Catrinescu | |
| #Modifed for NZ Ignite 2016 - Luke Murray (www.luke.geek.nz) | |
| #Visit my site www.absolute-sharepoint.com | |
| #Twitter: @vladcatrinescu | |
| #Originally Posted here: https://absolute-sharepoint.com/2016/10/the-ultimate-script-to-download-microsoft-ignite-2016-videos-and-slides | |
| Param ( | |
| [string]$keyword, | |
| [string]$session | |
| ) |
This file contains hidden or 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
| <Configuration Product="Visio> | |
| <PIDKEY Value="767HD-QGMWX-8QTDB-9G3R2-KHFG" /> | |
| </Configuration> |
This file contains hidden or 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
| #App-V Discovery Script for SCCM Configuration Baseline | |
| #requires -Modules AppvClient | |
| #requires -Version 2.0 | |
| $Now = Get-Date | |
| $Days = 30 | |
| $TargetFolder = "$env:ProgramData\App-V" | |
| $LastAccessTime = $Now.AddDays(-$Days) | |
| $Files = Get-ChildItem -Path $TargetFolder | Where-Object -FilterScript { | |
| $_.LastAccessTime -lt "$LastAccessTime" |