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
## Define each computer you'd like to run the install on | |
$computers = 'COMP1','COMP2','COMP3' | |
## This is the path that contains the installer file for the software you'd like to install on the servers | |
$softwarePath = '\\MEMBERSRV1\Software' | |
## Read each of the computers in the $computers array defined above | |
foreach ($pc in $computers) { | |
## Copy \\MEMBERSRV1\Software to each target computers' C:\Windows\Temp folder | |
Copy-Item -Path $softwarePath -Destination "\\$pc\c$\Windows\Temp" |
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
#region Var setup | |
## Be sure to fill in your values here | |
$resourceGroupName = 'AcmeApp' | |
$region = 'xxxxxxx' | |
$localVMAdminPw = 'I like azure.' ## a single password for demo purposes | |
$sqlAdminUsername = 'sqladmin' | |
$sqlAdminPw = 'I like azure.' | |
$projectName = 'AcmeApp' ## common term used through set up |
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
$resourceGoupName = 'skylinespsdemo' | |
$azureRegion = 'East US' | |
$vmName = 'MYVM' | |
#region Create the resource group | |
New-AzResourceGroup -Name $resourceGoupName -Location $azureRegion | |
#endregion | |
#region Create the vNet for the VM | |
$newSubnetParams = @{ |
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> | |
var contentsTitle = "Table of Contents"; // Set your title here, to avoid making a heading for it later | |
var ToC = "<h2>"+contentsTitle+"</h2>"; | |
ToC += "<nav role='navigation' class='table-of-contents'><ul>"; | |
var first = false; | |
$("h2,h3").each(function() { | |
var el = $(this); | |
if (first === false) { | |
first = true; | |
$('<span id="dynamictoc"></span>').insertBefore(el); |
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.zip has iis_setup.ps1 inside | |
## iis_setup.ps1 | |
Configuration iis_setup { | |
Param ( [string] $nodeName = 'localhost' ) | |
Import-DscResource -ModuleName PSDesiredStateConfiguration |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> | |
<title>Mail Filters</title> | |
<updated>2019-10-23T14:41:44Z</updated> | |
<entry> | |
<category term='filter'></category> | |
<title>Mail Filter</title> | |
<id>tag:mail.google.com,2008:filter:1487958749986</id> | |
<updated>2019-10-23T14:41:44Z</updated> | |
<content></content> |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2018-05-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"webAppName": { | |
"type": "string" | |
}, | |
"sqlDbName": { | |
"type": "string" | |
} |
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
Matching: powershell | |
Excluding: Sharepoint Obfuscation obfuscator Payload mimikittenz exploits blackhat cybersec pentest metasploit exploit exploitation #pentesting penetration attack attacks trojan obfuscation pen hijacking logitech malware phishing infosec virus ransomware powerops offensive bsides reverse empire mimikatz |
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 Save-ConsoleOutputToClipBoard { | |
[OutputType('string')] | |
[CmdletBinding()] | |
param | |
() | |
if ($host.Name -ne ‘ConsoleHost’) { | |
write-host -ForegroundColor Red "This script runs only in the console host. You cannot run this script in $($host.Name)." | |
} |
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
Start-UDDashboard -Wait -Dashboard ( | |
New-UDDashboard -Title "Hello, Azure" -Content { | |
New-UDCard -Title "Hello, Azure" | |
} | |
) | |
$scriptblock = { | |
New-UdGrid -Title 'Courses' -DefaultSortColumn 'Completion Deadline' -Headers @('Name', 'Completion Deadline', 'Stage Name') -Properties @('Name', 'Completion Deadline', 'Stage Name') -Endpoint { | |
$params = @{ | |
BaseIdentity = 'Courses' |