r/PowerShell • • Mar 04 '20

New PowerShell Version - v7.0.0

https://github.com/PowerShell/PowerShell/releases/tag/v7.0.0
160 Upvotes

70 comments sorted by

View all comments

Show parent comments

9

u/BlitzThunderWolf Mar 04 '20

What about active directory stuff on non-windows systems?

5

u/oW_Darkbase Mar 04 '20

I was wondering that aswell, I've heard multiple times that the new PS core versions do not support Active Directory cmdlets and other server administration cmdlets that come with server features / RSAT?

8

u/halbaradkenafin Mar 04 '20

That's worked since 1809 and PS 6.1 on windows.

3

u/Mayki8513 Mar 04 '20

"That's worked since 1809..."

Why was my first reaction "a bit of an exaggeration..." Lol >.<

7

u/Emiroda Mar 04 '20

I've heard multiple times that the new PS core versions do not support Active Directory cmdlets and other server administration cmdlets that come with server features / RSAT?

You've heard lies, or the word of fools. It's worked since 6.1.1 on Windows 10 1809.

https://www.reddit.com/r/PowerShell/comments/f6qef2/psa_activedirectory_module_works_natively_with/

3

u/mryananderson Mar 04 '20

Yes it has I’m wondering about Linux and Mac support. I know that it has to do with some of the .net libraries but wasn’t sure if they are working on it.

0

u/[deleted] Mar 04 '20

[deleted]

2

u/mryananderson Mar 04 '20

Thanks for that! This is literally the only reason right now I run a VM in parallels on my MAC, to run AD commands. I really hope it gets ported because it would make life a lot easier for simple lookups as well as scripts.

4

u/Emiroda Mar 04 '20

They've made them Core-compatible, so in theory they should work on non-Windows systems, but I don't think they've published the module to PowerShell Gallery.

0

u/[deleted] Mar 04 '20

[deleted]

3

u/nick_nick_907 Mar 04 '20

This is the main point, IMO.

6 didn't really replace 5.1 because there were so many Windows Administration modules that weren't supported.

We had a cross-platform tool (Core/6) and a Windows admin tool (WindowsPS/5.1). Now we've got one tool for both.

2

u/rjmholt Mar 04 '20 edited Mar 04 '20

The AD module is still a Windows in-box module. It works with PowerShell 6.1 and up on newer Windows versions (because those versions have the version of the module that works with .NET Core), but Core-compatibility is not automatically cross-compatibility; the module probably has many assumptions about Windows in it still.

Cross-compatibility is a big work item. Taking PowerShell as an example, getting PowerShell to work and be useful on macOS and Linux took much more work than just porting it to .NET Core (although PowerShell started when .NET Core was much more constrained than it is now). Things like the filesystem, user management integration, cryptography libraries, all of that changes when you go between operating systems.

2

u/rjmholt Mar 04 '20

I should also say the AD module isn't part of PowerShell. I think a UserVoice issue like this one is the best place to let the relevant team know what you want.

1

u/halbaradkenafin Mar 04 '20

Still an issue I believe but you've got remoting as an option to be able to run that stuff so not a big problem really.

4

u/Emiroda Mar 04 '20

Not an issue. ActiveDirectory and most of the Windows modules are Core-compatible.

https://www.reddit.com/r/PowerShell/comments/f6qef2/psa_activedirectory_module_works_natively_with/

2

u/ihaxr Mar 04 '20

They can be core compatible and not work on Linux/Mac, though... which I'm fairly certain is still the case.