wiki.getshifting.com

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

User Tools

Site Tools


start

SHIFT-WIKI - Sjoerd Hooft's InFormation Technology

This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.


Bash: Function: Offsitecopy

Summary: A bash function to copy files to a different location.
Date: Around 2018
Refactor: 8 March 2025: Checked links and formatting.

This is an external function used in several other scripts. The point is that you can use the same external functions within multiple scripts.

function offsitecopy {
        COPY=`echo ${1}`
        TOUSER="${2}"
        TOHOST="${3}"
        TODIR="${4}"
        LOGFILE="${5}"
        WHATAMI="${6}"
        HOSTNAME="${7}"
        MAILTOSUCCESS="${8}"
        MAILTOFAIL="${9}"
        DATESTAMP=`date +%Y"-"%m"-"%d" "%H":"%M`
        echo >> $LOGFILE
        echo "Starting Copy of $COPY[@] to ${TOHOST}..." >> $LOGFILE
        echo >> $LOGFILE
        if scp ${COPY} $TOUSER@$TOHOST:$TODIR  ;then
           echo "Copy of ${COPY[@]} " >> $LOGFILE
           echo "to $TOUSER@$TOHOST:$TODIR Success" >> $LOGFILE
           echo >> $LOGFILE
           cat $LOGFILE | mail -s "Succes ${WHATAMI} copy on $HOSTNAME" $MAILTOSUCCESS
        else
           echo "Copy of ${COPY[@]} " >> $LOGFILE
           echo "to $TOUSER@$TOHOST:$TODIR FAILED" >> $LOGFILE
           echo >> $LOGFILE
           cat $LOGFILE | mail -s "FAILED ${WHATAMI} copy on $HOSTNAME" $MAILTOFAIL
        fi
}

→ Read more...

2025/06/01 11:59

Office 2007 Installation

Summary: This is a small tutorial on how to create a managed installation of MS Office 2007.
Date: Around 2008
Refactor: 4 January 2025: Checked links and formatting.

Covered topics are:

  • Creating an adminfile
  • Using the adminfile
  • Compatibilitymode
  • Removing Office 2007
  • Visio 2007

→ Read more...

2025/06/01 11:59

Office365 Health Status and Licenses

Summary: How to create a graph displaying Office 365 Health history and your License trends and usage.
Date: 20 March 2019
Refactor: 1 March 2025: Checked links and formatting.

This page will show you a way to use the Office 365 management API, Microsoft Graph, Powershell and PowerBI to create a graph displaying Office 365 Health history and your License trends and usage.

→ Read more...

2025/06/01 11:59

Manage Office 365 Group Creation

Summary: How to manage who can create groups in Office 365.
Date: Around 2018
Refactor: 8 March 2025: Checked links and formatting.

I followed these steps to restrict users from creating Office 365 Groups:

→ Read more...

2025/06/01 11:59

<< Newer entries | Older entries >>

This wiki has been made possible by:

start.txt · Last modified: by sjoerd