Skip to content

Instantly share code, notes, and snippets.

@kmondesir
kmondesir / SetAppPoolIdentity.ps1
Created August 24, 2022 02:20
Sets the Identity of Application Pool
Import-Module WebAdministration
# Please set password as an environment variable on the server
Set-ItemProperty IIS:\AppPools\$app -name processModel -value @{userName=$username;password=$password}
import logging
import json
from logging.handlers import RotatingFileHandler, TimedRotatingFileHandler
from time import gmtime
class JSONFormatter(logging.Formatter):
def __init__(self, fmt: dict, datefmt: str):
super().__init__(fmt, datefmt)
def format(self, record):
"""