private/Functions/Axis/Set-AxisSDCard.ps1
Function Get-AxisDateTime { [cmdletBinding()] Param( [Parameter()] [hashtable]$Object ) <# Object Definition: @{ IP = [String(Mandatory)] Credential = [PSCredential(Mandatory)] Storage = [int] as [String(Optional)] } #> $StorageDevice = 1 if($Object.StorageDevice) { $StorageDevice = $Object.StorageDevice } #Set basic Paramters for Invoke-AxisCommand $CamCmd = @{ Arguments = @{ IP = $Object.IP Menu = 'system' SubMenu = 'storageinfo' Action = 'set' Parameters = @() } Credential = $Object.Credential } #Add Action Parameters $CamCmd.Arguments.Parameters += "Storage=$StorageDevice" $CamCmd.Arguments.Parameters += "Enable=$($Object.Enable)" Invoke-AxisCommand @CamCmd } |