< Back

Test-AdminRights

Mon Jan 13, 2020 5:30 am

NAME Test-AdminRights



SYNTAX

Test-AdminRights





PARAMETERS

None





INPUTS

None





OUTPUTS

System.Object



ALIASES

None





REMARKS

None





examples : @{example=@{introduction=System.Management.Automation.PSObject[]; code=Test-ModuleLoaded

-RequiredModules "ActiveDirectory"; remarks=System.Management.Automation.PSObject[];

title=-------------------------- EXAMPLE 1 --------------------------}}

inputTypes : @{inputType=@{type=@{name=Requires at the very least, a string name of a module.}}}

alertSet : @{alert=System.Management.Automation.PSObject[]}

syntax : @{syntaxItem=@{name=Test-ModuleLoaded; parameter=System.Management.Automation.PSObject[]}}

parameters : @{parameter=System.Management.Automation.PSObject[]}

details : @{name=Test-ModuleLoaded; description=System.Management.Automation.PSObject[]}

description : {@{Text=Receives an array of strings, which should be the module names.

The function then checks that these are loaded. If the required

modules are not loaded, the function will try to load them by name

via the default module path. Function returns a failure if it's

unable to load any of the required modules.}}

relatedLinks : @{navigationLink=@{uri=https://github.com/masters274/}}

returnValues : @{returnValue=@{type=@{name=Returns success or failure code ($true | $false), depending on if required

modules are loaded.}}}

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

Name : Test-ModuleLoaded

Category : Function

Synopsis : Checks that all required modules are loaded.

Component :

Role :

Functionality :

ModuleName : core