PowerShell 7.0.1 Get-ADUser | Set-ADUser broken

Created on 5 Jun 2020  路  4Comments  路  Source: PowerShell/PowerShell

Steps to reproduce

Get-ADUser "Administrator" | Set-ADUser

alternative

Set-ADUser -Instance (Get-ADUser "Administrator")

Expected behavior

Allowing to modify attributes using set-aduser (this example obviously doesn't).

Actual behavior

Set-ADUser: Das Eingabeobjekt kann an keine Parameter des Befehls gebunden werden, da der Befehl keine Pipelineeingaben akzeptiert oder die Eingabe und deren Eigenschaften mit keinem der Parameter 眉bereinstimmen, die Pipelineeingaben akzeptieren.

and for the 2nd example:

Set-ADUser: Der Parameter "Instance" kann nicht gebunden werden. Der Wert "CN=<BLANK>,DC=<BLANK>" kann nicht in den Typ "Microsoft.ActiveDirectory.Management.ADUser"
konvertiert werden. Fehler: "Der Wert "CN=<BLANK>,DC=<BLANK>" vom Typ "Deserialized.Microsoft.ActiveDirectory.Management.ADUser" kann nicht in den Typ "Microsoft.ActiveDirectory.Management.ADUser" konvertiert werden."

Environment data


Name                           Value
----                           -----
PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Microsoft Windows 10.0.14393
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0


Issue-Question Resolution-Answered

Most helpful comment

I see this as a pretty regular question around the interweb and this is not the first time IIRC we've seen this here. You can close this issue but...

It would really be useful if there was a formal Microsoft KB article that explained the issue and had a direct link to install the latest module. @SteveL-MSFT ??

I am hoping that, in the months to come, Microsoft product teams covert their modules to work natively with PowerShell 7. AD is just the first of many - so a more generic way to collect all the updated modules in a single zip (a PowerShell 7 Admin PowerPak for WIndows 10?) to simplify.

Personally, I got the upgraded modules as part of upgrading to the latest version of Windows 10.Server 2019. But for many customers, upgrading (now) is not an option for good business reasons. Those organisations need a simple way to obtain updated RSAT tools.

All 4 comments

Only ActiveDirectory module from latest version of RSAT Windows Server 2019 works well on PowerShell 7.0.

Are they available from PSGallery so that I can apply them to other servers?

I see this as a pretty regular question around the interweb and this is not the first time IIRC we've seen this here. You can close this issue but...

It would really be useful if there was a formal Microsoft KB article that explained the issue and had a direct link to install the latest module. @SteveL-MSFT ??

I am hoping that, in the months to come, Microsoft product teams covert their modules to work natively with PowerShell 7. AD is just the first of many - so a more generic way to collect all the updated modules in a single zip (a PowerShell 7 Admin PowerPak for WIndows 10?) to simplify.

Personally, I got the upgraded modules as part of upgrading to the latest version of Windows 10.Server 2019. But for many customers, upgrading (now) is not an option for good business reasons. Those organisations need a simple way to obtain updated RSAT tools.

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ajensenwaud picture ajensenwaud  路  3Comments

JohnLBevan picture JohnLBevan  路  3Comments

manofspirit picture manofspirit  路  3Comments

HumanEquivalentUnit picture HumanEquivalentUnit  路  3Comments

rkeithhill picture rkeithhill  路  3Comments