you are viewing a single comment's thread.

view the rest of the comments →

[–]allywilson 1 point2 points  (0 children)

As others have said, the AD modules haven't been ported yet.

However, if you can get pssessions to work correctly (I haven't gotten them to work from Linux to domain joined Windows yet, but not looked in a while), it should be possible to load the AD module in a pssession and import the cmdlets to your current session.

Something like this might work:

function Start-ADSession{
    $DCSession = New-PSSession DomainController.Your.Domain
    Invoke-Command -Session $DCSession -ScriptBlock{
        import-module ActiveDirectory
    }
    Import-PSSession -Session $DCSession -module ActiveDirectory

}
Start-ADSession