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 -Version 2.0 | |
<# | |
.SYNOPSIS | |
Starts the DFS service | |
.DESCRIPTION | |
Changes the Remote Registry service to Automatic start-up and Start the DFS NameSpace service dependencies, then start the DFS namespace service. | |
If the service does not start, it will retrieve the last 10 event log items from the DFS log. |
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: Luke Murray (Luke.Geek.NZ) | |
Version: 1.0 | |
requires -Version 1 | |
requires -PSSnapin VMware.VimAutomation.Core | |
Purpose: To remove all VMWare Snapshots on any Windows Server entered into the SnapshotRemoval.txt document. | |
The following Variables will need to be set for your environment: | |
$vsphereserver = Your vSphere Server Bane |
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 -Version 2 -Modules AppvClient | |
<# | |
Author: Luke Murray (Luke.Geek.NZ) | |
Version: 0.1 | |
Purpose: | |
The purpose of this script is to remove any App-V package data stored on a workstation (tested with Windows 7 X64 ENT). This script will delete all App-V locally stored package data so it could be redownloaded again. | |
This needs to be ran using an Elevated PowerShell ISE or PowerShell window. |
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
#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" |
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
<Configuration Product="Visio> | |
<PIDKEY Value="767HD-QGMWX-8QTDB-9G3R2-KHFG" /> | |
</Configuration> |
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
#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 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 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 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 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 |
OlderNewer