New-MSDevices

Create new Device record(s)

Syntax


New-MSDevices -Hostname (String) [-Domain (String)] [-OperatingSystem (String)] [-AdSId (String)] [-SmBiosGuid (String)] [-AssetTag (String)] [-Process (String)] [-SubProcess (String)] [-BatchSize (Int32)]

New-MSDevices -Devices (Array) [-DontMatchOnDeviceId] [-DontMatchOnHostname] [-DontMatchOnAssetTag] [-DontMatchOnAdSid] [-DontMatchOnSmBiosGuid] [-DontMatchOnAzObjectId] [-DontMatchOnAzDeviceId] [-DontMatchOnInTuneId] [-DontMatchOnLegacyId] [-LookupOnly] [-BatchSize (Int32)]

Examples


## Create a new Device with Hostname "APITesterDevice", Domain "APITesterDevice", OperatingSystem "Debian 12", AssetTag "ABC123" and return the new Device Id.
(New-MSDevices -Hostname "APITesterDevice" -Domain "APITesterDevice" -OperatingSystem "Debian 12" -AssetTag "ABC123").Id