provisioning

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package provisioning provides Windows-specific functionality for joining hosts to a domain.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAccessDenied indicates an access-related error
	ErrAccessDenied = errors.New("access is denied")
	// ErrExists indicates that the specified account already exists
	ErrExists = errors.New("the account already exists in the domain and reuse is not enabled")
	// ErrInvalidParameter indicates that an invalid parameter was provided to the API
	ErrInvalidParameter = errors.New("a parameter is incorrect")
	// ErrNoSuchDomain indicates that an invalid domain was specified
	ErrNoSuchDomain = errors.New("the specified domain does not exist")
	// ErrNotSupported indicates that the request is not supported
	ErrNotSupported = errors.New("the request is not supported")
	// ErrWorkstationSvc indicates that the workstation service has not been started
	ErrWorkstationSvc = errors.New("the Workstation service has not been started")
)

Functions

func BinData

func BinData(hostname string, domain string, reuse bool) ([]byte, error)

BinData produces provisioning data in binary form for use with the NetRequestOfflineDomainJoin function.

func OfflineJoin

func OfflineJoin(metadata []byte) error

OfflineJoin uses provisioning metadata to conduct an offline domain join.

func TextData

func TextData(hostname, domain string, reuse, djoinCompat bool) ([]byte, error)

TextData produces provisioning data in string form for embedding in an unattended setup answer file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL