< Back

Add-omsAgentWorkSpace

Sat Jan 18, 2020 5:47 pm

NAME Add-omsAgentWorkSpace



SYNOPSIS

Adds a OMS workspace to remote computers.





SYNTAX

Add-omsAgentWorkSpace [[-computerName] <String[]>] [-Credential <PSCredential>] -workspaceid <String>

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



Add-omsAgentWorkSpace [[-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 --------------------------



Add-omsAgentWorkSpace -computerName 'computer1', 'computer2' -workSpaceId '<workSpace>' -workSpaceKey

'<workSpaceKey>'













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



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



Add-omsAgentWorkSpace -computerName 'computer1', 'computer2' -workSpace $workSpace











RELATED LINKS