Skip to content

Instantly share code, notes, and snippets.

View tjmichael81's full-sized avatar

Timothy Michael tjmichael81

View GitHub Profile
@davops
davops / Get-CertSettings.ps1
Created August 2, 2016 13:47
Retrieves all websites from IIS. Prints the hostname of the target server, the website name, whether or not SSL is enabled, the certificate expiration date, the certificate subject and the certificate subject alternative names (for multi-domain certificates).
<#
.NOTES
Name: Get-CertSettings.ps1
Author: Davina Fournier
Requires: PowerShell v3 or higher. The account running this script needs to have rights to access IIS settings on the target servers. Tested on 2012 servers in a single domain.
Last Updated: 7/31/2016
.SYNOPSIS
Retrieves all websites from IIS. Prints the hostname of the target server, the website name, whether or not SSL is enabled, the certificate expiration date, the certificate subject and the certificate subject alternative names (for multi-domain certificates).
.DESCRIPTION
A list of remote computer names should be entered into the Server_list.txt file currently located in the "Tools\Scripts" directory. The script creates a session to each remote computer, then queries IIS for the binding settings of each website. If the website has no SSL binding, then the "SSL Enabled" setting will be set to "Not Enabled" and the remaining values will be empty. If there is a SSL binding, the Local Machine stores are searched for the corresponding certif
@NickCraver
NickCraver / Windows10-Setup.ps1
Last active April 1, 2024 10:52
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@sofferm
sofferm / PublishServices.py
Created December 13, 2013 10:35
Publishes all mxd files in a folder to running arcgis services.
import arcpy
import os.path
# define local variables
wrkspc = r'C:\data\service_definitions'
arcpy.env.workspace = wrkspc
con = 'GIS Servers/arcgis on localhost_6080 (admin).ags'
for file in arcpy.ListFiles("*.mxd"):
file = os.path.join(wrkspc, file)
mapDoc = arcpy.mapping.MapDocument(file)