-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAdvancedFunctionShell.ps1
More file actions
47 lines (40 loc) · 1.15 KB
/
AdvancedFunctionShell.ps1
File metadata and controls
47 lines (40 loc) · 1.15 KB
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
38
39
40
41
42
43
44
45
46
47
Function Get-Blank
{
<#
.SYNOPSIS
A brief description of the Get-Blank function.
.DESCRIPTION
A detailed description of the Get-Blank function.
.PARAMETER ComputerName
A description of the ComputerName parameter.
.EXAMPLE
Get-Blank <ComputerName>
Explanation of this example
.EXAMPLE
Import-CSV .\computers.csv | Get-Blank
Explanation of this example where computers.csv had ComputerName as a header.
#>
[CmdletBinding()]
param
(
[Parameter(Mandatory=$True,
ValueFromPipeline=$True, ValueFromPipelinebyPropertyName=$true)]
[alias("CN","MachineName")]
[string]$ComputerName
)
Begin{}
Process
{
#Do Stuff
#If stuff can't create object on its own, create one.
#Use either if order doesn't matter. PS Version 2. Version 3 and up, can add [sorted] before $props.
#$props = @{ComputerName=$ComputerName}
#$Computers = New-Object -TypeName PSObject -Property $props
#$Computer | Add-Member -MemberType NoteProperty -Name ComputerName -Value $ComputerName
#$Computers
#$Object | Select @{name="PC";expression={$_.__Server}}
Write-Verbose "Getting today's date"
Get-Date
}
End{}
}