Skip to content

Instantly share code, notes, and snippets.

View adbertram's full-sized avatar

Adam Bertram adbertram

View GitHub Profile
## 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"
#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
$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 = @{
<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);
## Script.zip has iis_setup.ps1 inside
## iis_setup.ps1
Configuration iis_setup {
Param ( [string] $nodeName = 'localhost' )
Import-DscResource -ModuleName PSDesiredStateConfiguration
<?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>
{
"$schema": "http://schema.management.azure.com/schemas/2018-05-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string"
},
"sqlDbName": {
"type": "string"
}
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
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)."
}
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'