Add-PSUComputerTag
SINOSSI
Aggiunge un tag a un computer PowerShell Universal registrato.
SINTASSI
Id
Add-PSUComputerTag [-Id] <Int64> [-Name <String>] [-Value <String>] [-ComputerName <String>]
[-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
[-Cookies] [<CommonParameters>]Computer
Add-PSUComputerTag [-Computer] <Computer> [-Name <String>] [-Value <String>] [-ComputerName <String>]
[-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
[-Cookies] [<CommonParameters>]DESCRIZIONE
Aggiunge una nuova voce di tag a un computer esistente e scrive il tag creato nella pipeline. È possibile individuare il computer tramite Id oppure passare un oggetto computer esistente attraverso la pipeline.
ESEMPI
Esempio 1
Aggiunge il tag Environment=Production al computer con Id 42.
PARAMETRI
-AppToken
Specifica il token dell'app da utilizzare per l'autenticazione all'API di gestione di PowerShell Universal.
-Computer
Specifica il computer di destinazione.
-ComputerName
Specifica l'URL o il nome host dell'istanza PowerShell Universal di destinazione. I nomi host semplici vengono normalizzati in un URL http://<host>:5000.
-Cookies
Riutilizza e mantiene i cookie di autenticazione per la sessione PowerShell corrente.
-Credential
Specifica le credenziali da utilizzare per l'autenticazione Basic verso l'API di gestione di PowerShell Universal.
-Id
Specifica l'Id numerico della risorsa.
-Integrated
Utilizza il client di gestione integrato in-process quando il cmdlet viene eseguito all'interno di PowerShell Universal.
-Name
Specifica il nome della risorsa.
-TrustCertificate
Consente le connessioni a server con certificati TLS non attendibili.
-UseDefaultCredentials
Utilizza le credenziali Windows correnti per l'autenticazione all'API di gestione.
-Value
Specifica il valore da memorizzare o assegnare.
CommonParameters
Questo cmdlet supporta i parametri comuni: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable e -ProgressAction. Per maggiori informazioni, veda about_CommonParameters.
INPUT
PowerShellUniversal.Computer
OUTPUT
System.Object
NOTE
LINK CORRELATI
Ultimo aggiornamento
È stato utile?