|
1 | 1 | function Get-Uptime {
|
2 |
| - <# |
3 |
| - .SYNOPSIS |
4 |
| - The function Get-Uptime will get uptime of a local or remote machine. |
| 2 | +<# |
| 3 | +.SYNOPSIS |
| 4 | + The function Get-Uptime will get uptime of a local or remote machine. |
5 | 5 |
|
6 |
| - .DESCRIPTION |
7 |
| - The function Get-Uptime will get uptime of a local or remote machine. |
8 |
| - This function is compatible with CIM sessions and alternative credentials. |
| 6 | +.DESCRIPTION |
| 7 | + The function Get-Uptime will get uptime of a local or remote machine. |
| 8 | + This function is compatible with CIM sessions and alternative credentials. |
9 | 9 |
|
10 |
| - .PARAMETER ComputerName |
11 |
| - Specifies the computername |
| 10 | +.PARAMETER ComputerName |
| 11 | + Specifies the computername |
12 | 12 |
|
13 |
| - .PARAMETER Credential |
14 |
| - Specifies the credential to use |
| 13 | +.PARAMETER Credential |
| 14 | + Specifies the credential to use |
15 | 15 |
|
16 |
| - .PARAMETER CimSession |
17 |
| - Specifies one or more existing CIM Session(s) to use |
| 16 | +.PARAMETER CimSession |
| 17 | + Specifies one or more existing CIM Session(s) to use |
18 | 18 |
|
19 |
| - .EXAMPLE |
20 |
| - PS C:\> Get-Uptime -ComputerName DC01 |
| 19 | +.EXAMPLE |
| 20 | + PS C:\> Get-Uptime -ComputerName DC01 |
21 | 21 |
|
22 |
| - .EXAMPLE |
23 |
| - PS C:\> Get-Uptime -ComputerName DC01 -Credential (Get-Credential -cred "FX\SuperAdmin") |
| 22 | +.EXAMPLE |
| 23 | + PS C:\> Get-Uptime -ComputerName DC01 -Credential (Get-Credential -cred "FX\SuperAdmin") |
24 | 24 |
|
25 |
| - .EXAMPLE |
26 |
| - PS C:\> Get-Uptime -CimSession $Session |
| 25 | +.EXAMPLE |
| 26 | + PS C:\> Get-Uptime -CimSession $Session |
27 | 27 |
|
28 |
| - .EXAMPLE |
29 |
| - PS C:\> Get-Uptime -CimSession $Session1,$session2,$session3 |
| 28 | +.EXAMPLE |
| 29 | + PS C:\> Get-Uptime -CimSession $Session1,$session2,$session3 |
30 | 30 |
|
31 |
| - .NOTES |
32 |
| - Francois-Xavier Cat |
33 |
| - @lazywinadmin |
34 |
| - lazywinadmin.com |
35 |
| - .LINK |
36 |
| - https://github.com/lazywinadmin/PowerShell |
| 31 | +.NOTES |
| 32 | + Francois-Xavier Cat |
| 33 | + @lazywinadmin |
| 34 | + lazywinadmin.com |
| 35 | +.LINK |
| 36 | + https://github.com/lazywinadmin/PowerShell |
37 | 37 | #>
|
38 | 38 | [CmdletBinding()]
|
39 | 39 | PARAM (
|
|
0 commit comments