forked from sergey-s-betke/ITG.Outlook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ps1
37 lines (35 loc) · 902 Bytes
/
test.ps1
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
35
36
37
[CmdletBinding(
SupportsShouldProcess=$true,
ConfirmImpact="Medium"
)]
param (
[Parameter(
Mandatory=$false,
Position=0,
ValueFromPipeline=$false,
HelpMessage="Полный путь к файлу, из которого будем импортировать."
)]
[System.IO.FileInfo]
$csvFile = `
(join-path `
-path ( ( [System.IO.FileInfo] ( $myinvocation.mycommand.path ) ).directory ) `
-childPath 'users.csv' `
)
)
Import-Module `
(Join-Path `
-Path ( Split-Path -Path ( $MyInvocation.MyCommand.Path ) -Parent ) `
-ChildPath 'ITG.Outlook' `
) `
-Force `
-PassThru `
| Get-Readme -OutDefaultFile;
#get-content `
# -path $csvFile `
#| convertFrom-csv `
# -UseCulture `
#| New-Contact -Force -PassThru `
#| Select-Object Subject, EMail1DisplayName, EMail1Address `
#| Out-GridView `
#;
#