SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Recently Changed Pages:

View All Pages


View All Tags


LinkedIn




WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Pages with comments

View All Comments

scriptheader

Standard Header for Scripts

# Author: Sjoerd Hooft / https://www.linkedin.com/in/sjoerdhooft/
 
### Versioning and Functionality ##################################################################
### Information on Script or Application ###
# Name
# url
# Admin portal 
# etc
### Script & Application key users ###
# Script maintained by Sjoerd Hooft
# Key users: Enduser 1 & Enduser 2
### Versioning ###
### 2019 06 14 - Sjoerd Hooft - First Version ###
# Functionality 1
# Functionality 2
# etc 
###################################################################################################
 
### Requirements ##################################################################################
### Powershell
# Command line: -Executionpolicy Bypass -nologo -noninteractive -command "& {location + scriptname; can be on network}"
# Powershell: set-executionpolicy bypass
### Account to run script with (sa_application):
# IE Enhanced Security Configuration -> Off
# Add sharepoint online to trusted sites: company.sharepoint.com
# Visit site company.sharepoint.com
### Scheduled Tasks
# Run whether user is logged on or not
# Run with highest privileges
# Configure for Windows Server 2016 (highest)
# No Power Conditions
# Run task as soon as possible after a scheduled start is missed
### Printing
# The print option requires a default printer installed on the system where the script runs
###################################################################################################
 
### Bugs ##########################################################################################
### No script bugs known yet 
# 
###################################################################################################
 
### How-To ########################################################################################
# 
### When changing and testing ###
# Change the mailto var to a testvalue
###################################################################################################
 
### Script Overview ###############################################################################
### Fase 1 ########################################################################################
# Set script variables
# Start Logging
# Check for required modules
# Reporting Variables 
# Application Variables 
# Default functions 
# Application functions
### Fase 2 ########################################################################################
# Run script
### Fase 3 ########################################################################################
# Create output 
# Send email report
### Fase 4 ########################################################################################
# Cleanup temporary files
# Stop Logging 
###################################################################################################
 
########################################## Start Fase 1 ###########################################
 
### Script Variables ###
You could leave a comment if you were logged in.
scriptheader.txt · Last modified: 2021/09/24 00:25 (external edit)