This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function New-Password { | |
<# | |
.SYNOPSIS | |
Generates a pseudo-random password. | |
.DESCRIPTION | |
This function generates a password with support for upper, and lower-case | |
characters, numbers, and symbols. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VmsFisheyeLens { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory, ValueFromPipeline, ParameterSetName = 'Camera')] | |
[VideoOS.Platform.ConfigurationItems.Camera] | |
$Camera, | |
[Parameter(Mandatory, ValueFromPipelineByPropertyName, ParameterSetName = 'Id')] | |
[Guid] | |
$Id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VmsCameraMotion { | |
<# | |
.SYNOPSIS | |
Gets the motion detection settings for one or more cameras. | |
.DESCRIPTION | |
The `Get-VmsCameraMotion` cmdlet gets the motion detection settings for one or more cameras. The MotionDetection | |
object for a camera can be accessed using $camera.MotionDetectionFolder.MotionDetections[0]. This command can be | |
considered a PowerShell-friendly shortcut for accessing these settings. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Set-VmsDeviceStorage { | |
<# | |
.SYNOPSIS | |
Set the target storage configuration for a device in XProtect. | |
.DESCRIPTION | |
The `Set-VmsDeviceStorage` cmdlet sets the target storage configuration for a device in XProtect. | |
.PARAMETER Device | |
Tge one or more devices returned by the Get-VmsCamera, Get-Microphone, Get-Speaker, or Get-Metadata cmdlets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ConvertFrom-HexString { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory, Position = 0, ValueFromPipeline)] | |
[string] | |
$InputObject | |
) | |
process { | |
$bytes = [byte[]]::new($InputObject.Length / 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Watch-CameraStream { | |
<# | |
.SYNOPSIS | |
Stream the current video stream properties for the provided camera stream. | |
.DESCRIPTION | |
The `Watch-CameraStream` cmdlet uses MilestonePSTools and the MIP SDK to | |
retrieve the current video stream properties for the provided camera stream | |
from the recording server using the GetVideoDeviceStatistics method of the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Milestone Systems A/S. | |
# Licensed under the MIT License. | |
function ConvertFrom-LenelCsv { | |
<# | |
.SYNOPSIS | |
Convert a CSV export from from Lenel's migration tool into a CSV format for MilestonePSTools. | |
.DESCRIPTION | |
The `ConvertFrom-LenelCsv` cmdlet converts a CSV file created using Lenel's migration tool into a CSV format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-VmsHotfixes { | |
[CmdletBinding()] | |
param( | |
[Parameter()] | |
[string] | |
$Version | |
) | |
process { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Start-HttpListener { | |
<# | |
.SYNOPSIS | |
Starts a local HTTP server and returns information about HTTP requests. | |
.DESCRIPTION | |
This function starts a local HTTP server, by default on http://localhost:10123/, | |
and returns information about the first HTTP request received. | |
To test this simple HTTP listener, try opening a second PowerShell session and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-MipKind { | |
<# | |
.SYNOPSIS | |
Gets all matching Milestone Integration Platform types or "Kinds". | |
.DESCRIPTION | |
The `Get-MipKind` cmdlet gets all matching Milestone Integration Platform | |
types or "Kinds". The term "Kind" in MIP integrations represents a type of | |
configuration object. Cameras for example have a "Kind" with the ID | |
'5135ba21-f1dc-4321-806a-6ce2017343c0', and both first and third party |
NewerOlder