< Back

Update-omsAgentWorkSpaceKey

Sat Jan 18, 2020 5:48 pm

NAME Update-omsAgentWorkSpaceKey



SYNOPSIS

Updates the OMS workspace key on remote computers.





SYNTAX

Update-omsAgentWorkSpaceKey [[-computerName] <String[]>] [-Credential <PSCredential>] -workspaceid <String>

-workspacekey <String> [-WhatIf] [-Confirm] [<CommonParameters>]



Update-omsAgentWorkSpaceKey [[-computerName] <String[]>] [-Credential <PSCredential>] -workSpace <PSCredential>

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-computerName <String[]>



Required? false

Position? 1

Default value $env:COMPUTERNAME

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Credential <PSCredential>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-workspaceid <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-workspacekey <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-workSpace <PSCredential>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Written by Ben Taylor

Version 1.1, 09.01.2017



-------------------------- EXAMPLE 1 --------------------------



Update-omsAgwentWorkSpacekey -computerName 'computer1', 'computer2' -workspaceid '<workSpaceId>' -workspacekey

'<workSpaceKey>'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$workSpace = Get-Credential



Update-omsAgwentWorkSpacekey -computerName 'computer1', 'computer2' -workSpace $workSpace











RELATED LINKS