Throw error if vars empty
Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
@@ -46,4 +46,8 @@ function Import-TeamsUsers {
|
|||||||
$GroupId = ""
|
$GroupId = ""
|
||||||
$File = ""
|
$File = ""
|
||||||
|
|
||||||
Import-TeamsUsers -GroupId $GroupId -File $File
|
If ($GroupId -And $File) {
|
||||||
|
Import-TeamsUsers -GroupId $GroupId -File $File
|
||||||
|
} Else {
|
||||||
|
Write-Host -ForegroundColor Red "`$GroupId and/or `$File missing."
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user