Drake
Drake

Reputation: 13

Powershell Active Directory (Operating System)

How do I set the operating system to a value? Every time I run the following, the AD portion of 'Operating System' Tab is always missing.

 Import-Csv "C:\test.csv" | ForEach-Object {
    New-QADComputer -Name $_.FirstName `
    -ComputerName $_.FirstName `
    -OperatingSystem 'test' `
    -ParentContainer 'test/TheWorkstations/TestGroup'
    }

Upvotes: 0

Views: 268

Answers (1)

Miroslav Adamec
Miroslav Adamec

Reputation: 1138

What about using classic active directory powershell module(not New-QADComputer)? It works this way.

New-ADComputer 'testcomputer' -OperatingSystem 'test'

Upvotes: 1

Related Questions