-
Notifications
You must be signed in to change notification settings - Fork 0
Get HostTag
external help file: ADAuditTasks-help.xml Module Name: ADAuditTasks online version: https://github.com/CriticalSolutionsNetwork/ADAuditTasks/wiki/Get-HostTag schema: 2.0.0
Creates a host name or tag based on predetermined criteria for as many as 999 hosts at a time.
Get-HostTag [-PhysicalOrVirtual] <String> [-Prefix] <String> [-SystemOS] <String> [-DeviceFunction] <String>
[[-HostCount] <Int32>] [<CommonParameters>]
A longer description of the function, its purpose, common use cases, etc.
Get-HostTag -PhysicalOrVirtual Physical -Prefix "CSN" -SystemOS 'Windows Server' -DeviceFunction 'Application Server' -HostCount 5
CSN-PWSVAPP001
CSN-PWSVAPP002
CSN-PWSVAPP003
CSN-PWSVAPP004
CSN-PWSVAPP005
This creates the name of the host under 15 characters and numbers them. Prefix can be 2-3 characters.
Use tab to cycle through the following options: "Application Server", "Backup Server", "Directory Server", "Email Server", "Firewall", "FTP Server", "Hypervisor", "File Server", "NAS File Server", "Power Distribution Unit", "Redundant Power Supply", "SAN Appliance", "SQL Server", "Uninteruptable Power Supply", "Web Server", "Management", "Blade Enclosure", "Blade Enclosure Switch", "SAN specific switch", "General server/Network switch", "Generic Function Device"
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseEnter a number from 1 to 999 for how many hostnames you'd like to create.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: 1
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseTab through selections to add 'P' or 'V' for physical or virtual to host tag.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseEnter the 2-3 letter prefix. Good for prefixing company initials, locations, or other.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUse tab to cycle through the following options: "Cisco ASA", "Android", "Apple IOS", "Dell Storage Center", "MACOSX", "Dell Power Edge", "Embedded", "Embedded Firmware", "Cisco IOS", "Linux", "Qualys", "Citrix ADC (Netscaler)", "Windows Thin Client", "VMWare", "Nutanix", "TrueNas", "FreeNas", "ProxMox", "Windows Workstation", "Windows Server", "Windows Server Core", "Generic OS", "Generic HyperVisor"
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Additional information about the function, usage tips, etc.
https://github.com/CriticalSolutionsNetwork/ADAuditTasks/wiki/Get-HostTag
https://criticalsolutionsnetwork.github.io/ADAuditTasks/#Get-HostTag