Quantcast
Channel: Mauricio Schaepers » script
Viewing all articles
Browse latest Browse all 6

ShareFile Reset Script

$
0
0

As I am including ShareFile in my trainings and I want to give to each student the same experience I share a couple of demonstration accounts.
As I’m lazy and I don’t want to connect to each sharefile account afterwards in order to delete the provisioned user accounts out I decided to write up an script.

The Script does fetch all users and storagezonecontrollers and removes them.
Make sure you don’t run this script in your productive environment

You can download the script here:
ShareFileResetScript

#Workdir
#This is where the Script and all Credentials are stored
$workDir = "D:\CloudStation\Scripts\ShareFile"

#Load Accounts
$colLabs = Import-Csv "$workDir\ADNLabAccounts.csv"

You need to modify these lines in order to get the script running.

The CSV needs to be setup as follows

"Account","Login Name","Password","Web Site"
"lab01.sharefile.com","lab01@mauricio-schaepers.de","Test123","https://lab01.sharefile.com"

Pre-Requirements
The Script uses the ShareFile Powershell Snapin available here


Viewing all articles
Browse latest Browse all 6

Trending Articles