CONTROL PANEL PowerShell Data Types And Common Parameters
Standard Data Types
The following standard data types are used:
- int
- string
- long
- bool
- dateTime.
All these data types and their format are defined in the standard.
Note: if the data type is marked as
Common parameters
Authentication Information
*These parameters are required (obligatory to input) in
# |
Parameter
|
Type
|
Mandatory (R/O) | Description |
Valid Values
|
---|---|---|---|---|---|
1 |
AccountID |
int | R/O* |
Account identifier. Inherited property* |
|
2 | Credential | PSCredential | R/O* | Login/Password. Inherited property* | |
3 | CredentialType | string | R/O* | The type of credentials. Inherited property* |
|
Force
Force parameter is used in some -Add, -New, -Remove, -Get, -Set, -Enable, -Disable, etc. cmdlets to skip the user's confirmation of the action (e.g. charge confirmation). It can be used in addition to standard Confirm parameter (see risk-mitigation parameters) or separately.
# |
Parameter |
Type |
Mandatory (R/O) |
Description | ||
---|---|---|---|---|---|---|
1 | Force | SwitchParameter | O | Parameter is used to skip the user's confirmation of the action |
Example
Disabling user without confirmation:
Disable-User -Identity "1F172792-5DE0-438E-80FF-3B4ED35E4ED2" -Confirm:$false -Force