-
Notifications
You must be signed in to change notification settings - Fork 0
/
helpers.psm1
34 lines (31 loc) · 929 Bytes
/
helpers.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Function Show-Error
{
Param
(
[Parameter(Mandatory=$true)][String]$errorstring
)
"******************************************"
"Sharesniff : v1.0"
"******************************************"
""
"Error : $errorstring"
""
Exit
}
function Show-Help
{
"******************************************"
"Sharesniff : v1.0"
"******************************************"
""
"two arguments are required :"
" first argument : type of crawler (http|sharepoint|filesystem)"
" second argument : the repository to crawl :"
" for a website : an url like https://domain.com"
" for a sharepoint : the url of the site like https://sharepoint.domain.com/sites/repo"
" for a filesystem : the complete path of the file or folder like c:/folder/file.pptx"
" third optional argument : impersonate or not the crawl (default|impersonate)"
""
}
Export-ModuleMember -Function "Show-Error"
Export-ModuleMember -Function "Show-Help"