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
#This is the name of the zip file in the component. Make sure that the PowerShell App Deployment Toolkit is zipped. | |
$ZipFile = "DesktopSOE.zip" | |
#This will create a folder called: C:\Temp (these folders can be changed to suit your requirements) | |
Mkdir c:\Temp -Force | |
#This will create a folder called: C:\Temp\DesktopSOE\ (these folders can be changed to suit your requirements) | |
Mkdir C:\Temp\DesktopSOE\ -Force | |
#This will then copy your PowerShellAppDeployment Toolkit to a folder, outside of the CentraStage Packagestore location. | |
Copy-Item -Path "$ZipFile" -Destination "C:\Temp\$ZipFile" -Recurse | |
$DestinationFolder = $ZipFile.Split(".")[0] | |
#This will then extract your PowerShell App Deployment Toolkit and run it. |
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
<# | |
.SYNOPSIS | |
Installs the Az.ResourceGraph Module and has example queries | |
.NOTES | |
Version: 1.0 | |
Author: Luke Murray (Luke.Geek.NZ) | |
Website: https://luke.geek.nz/azure-resource-graph-explorer-and-the-powershell-azure-resource-graph | |
Creation Date: 09.04.21 | |
Change History: | |
09.04.21 - Intital script development |
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 Get-AzureBlogUpdates { | |
<# | |
.SYNOPSIS | |
Retrieves the latest Updates of Azure, from the Azure Blog RSS feed. | |
.DESCRIPTION | |
Retrieves the latest Updates of Azure, from the Azure Blog RSS feed. | |
.NOTES | |
Version: 1.0 | |
Author: Luke Murray (Luke.Geek.NZ) | |
Website: https://luke.geek.nz/keep-up-to-date-with-latest-changes-on-azure-using-powershell |
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
Param ( | |
## The directory into which the user wishes to download the files. | |
[string]$directory = $PSScriptRoot, | |
## Optional parameter allowing the user to specifiy the code (or comma seperated codes) of the video(s) they wish to download. | |
[string]$sessionCodes = "" | |
) | |
### Variables ### | |
$api = 'https://api.myignite.microsoft.com/api/session/all' |
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 2.0 -Modules Az.Accounts, Az.Resources, CredentialManager | |
function New-AzureResourceGroup | |
{ | |
<# | |
.SYNOPSIS | |
Creates Azure Resource Group | |
.DESCRIPTION | |
Creates Azure Resource Group function, created as a test function for Universal Automation Desktop |
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 |