Initialize-ADDeviceRegistration is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Initializes the Device Registration Service configuration in the Active Directory forest.
Description
The Initialize-ADDeviceRegistration cmdlet initializes the Device Registration Service configuration in the Active Directory forest. To run this cmdlet, you must be logged in with enterprise administrator permissions and your Active Directory forest must have the Windows Server 2012 R2 schema. To join devices to a workplace, you must run the Enable-AdfsDeviceRegistration cmdlet on each Active Directory Federation Services (AD FS) server after this cmdlet has been run successfully.
Parameters
-Credential
Specifies a PSCredential object based on a user name and password. This account must be a member of the Enterprise Admins group. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-DeviceLocation <String>
Specifies the domain in which to store the device objects. Specify a domain in the current forest.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-DiscoveryName <String>
Specifies a discovery name.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Force <SwitchParameter>
Forces the command to run without asking for user confirmation.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-MaximumRegistrationInactivityPeriod <UInt32>
Specifies the maximum number of days to elapse before a device object is deleted due to inactivity.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-RegistrationQuota <UInt32>
Specifies the maximum number of devices that an individual user can register.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-ServiceAccountName <String>
Specifies the account to which to grant read and write access to the Device Registration service configuration and containers in Active Directory.
Required? true
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-Confirm <SwitchParameter>
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf <SwitchParameter>
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false
Syntax
Initialize-ADDeviceRegistration -ServiceAccountName <String> [-DeviceLocation <String>] [-RegistrationQuota <UInt32>] [-MaximumRegistrationInactivityPeriod <UInt32>] [-Credential <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
———————–Example 1———————–
Initialize the Device Registration Service
PS C:> Initialize-ADDeviceRegistration -ServiceAccountName “TOSSolution\svc_adfs” -DeviceLocation “TOSSolution.com” -RegistrationQuota 10 -MaximumRegistrationInactivityPeriod 90 -Credential TOSSolutionAdmin
This command initializes the Device Registration Service in the Active Directory forest.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Initialize-ADDeviceRegistration
You can also read about
- Enable-AdfsDeviceRegistration