Get-WmiObject -Namespace root\dell\sysinv dell_softwareidentity -ErrorAction Stop | Select-Object VersionString, ElementName | Where-Object ElementName -like "WD19" | Sort-Object ElementName
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
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment | |
$OSDComputerName = $tsenv.Value("_SMSTSMachineName") | |
function Show-OverrideOptionsPrompt_psf { | |
#---------------------------------------------- | |
#region Import the Assemblies | |
#---------------------------------------------- | |
[void][reflection.assembly]::Load('System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') | |
[void][reflection.assembly]::Load('System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') |
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
# | |
# LET'S ENCRYPT SSL EXAMPLE SETTINGS | |
# | |
# This include was copied from a functioning Certbot installation on Linux. | |
# Its presence makes the SSL certs issued by Certbot behave on <Windows> | |
# | |
SSLEngine on | |
# Intermediate configuration, tweak to your needs | |
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 | |
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384 |
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 exportEmailToPDF() { | |
// Script Variables to Set | |
var drivePath = DriveApp.getFolderById("LongStringOfTheDestinationFolderIdentifier"); | |
var plaintextPath = DriveApp.getFolderById("LongStringOfTheIntermediateFolderIdentifier"); | |
var label = GmailApp.getUserLabelByName("YourLabelNameGoesHere"); | |
// End of Script Variables to Set | |
var sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
//Logger.log(label.getName()); // Write to log the name of the label (can help identify label typos) | |
var threads = label.getThreads(); |
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
#!/bin/bash | |
certbot certonly --manual --manual-public-ip-logging-ok -d superdomain.net -d www.superdomain.net | |
read -n1 -r -s -p "Press any key to load certificate...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/cert.pem | |
read -n1 -r -s -p "Press any key to load private key...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/privkey.pem | |
read -n1 -r -s -p "Press any key to begin renewal process for superdomain.com...`echo $'\r\n\r\n'`" | |
certbot certonly --manual --manual-public-ip-logging-ok -d superdomain.com -d www.superdomain.com | |
read -n1 -r -s -p "Press any key to load certificate...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.com/cert.pem |
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
#!/bin/bash | |
certbot certonly --manual --manual-public-ip-logging-ok -d superdomain.net -d www.superdomain.net | |
read -n1 -r -s -p "Press any key to load certificate...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/cert.pem | |
read -n1 -r -s -p "Press any key to load private key...`echo $'\r\n\r\n'`" | |
more /etc/letsencrypt/live/superdomain.net/privkey.pem | |
read -n1 -r -s -p "Press any key to end certificate renewal process...`echo $'\r\n\r\n'`" |
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
# Update Ubuntu and obtain/install/update Certbot | |
sudo apt-get update | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository universe | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
# Make a manual certificate request | |
sudo certbot certonly --manual -d superdomain.net |
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
Column A | Column B | Column C | Formula | |
---|---|---|---|---|
1 | 2 | 5 | =SUM(A2:C2) | |
5 | 3 | 10 | =A3*C3+B3 | |
2 | 2 | 4 | =COUNTIF(A:C,2) | |
0 | 0 | No | =IF(and(A5=0,B5=0,C5="Yes"),1,0) | |
0 | 0 | Yes | =IF(and(A6=0,B6=0,C6="Yes"),1,0) | |
1 | 0 | 1 | =IF(AND(A7=1,B7=0),"UPDATE",IF(AND(A7=0,B7=1),"CHECK","No Change")) | |
0 | 1 | 1 | =IF(AND(A8=1,B8=0),"UPDATE",IF(AND(A8=0,B8=1),"CHECK","No Change")) | |
0 | 0 | 0 | =IF(AND(A9=1,B9=0),"UPDATE",IF(AND(A9=0,B9=1),"CHECK","No Change")) |
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
sudo certbot certonly --manual --manual-public-ip-logging-ok -d domainnamehere.com -d www.domainnamenere.com |
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
$groups = Get-ADGroup -Filter 'Name -like "PATTERNGOESHERE*"' | Select-Object Name, SamAccountName; | |
"There are "+ $groups.Count +" matching groups."; | |
$groupDetails = ForEach ($grp in $groups) { | |
New-Object PSObject -Property @{'Group Name'=$grp.Name;Count=(Get-ADGroupMember $grp.SamAccountName -Recursive).Count}; | |
} | |
$groupDetails | Sort-Object -Property Count -Descending | Select-Object 'Group Name', Count; |
NewerOlder