Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
jsclmedave

Administrator
Registered:
Posts: 501
Reply with quote  #1 
WARNING: Module activedirectory is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell Core please use 'Import-Module -SkipEditionCheck' syntax.

What does this mean   "will be deserialized objects" ..?

This is using PowerShell 7.0.0-rc.1 trying to load the original AD module used in 5.1




__________________
Tim Bolton @jsclmedave
Email: [string](0..20|%{[char][int](32+('527377347976847978324785847679797514357977').substring(($_*2),2))}) -replace ' '  

New to the forum? Please Read this
0
cj_berlin

Avatar / Picture

Senior Member
Registered:
Posts: 420
Reply with quote  #2 
A 'serialized' object is a textual representation of that object. In PowerShell, Export-CLIXML is one example of serializing. Propertiy names and values are converted to XML-like structured text, methods are gone. If you deserialize the serialized object by Import-CLIXML, the methods are still gone and sometimes the properties do not quite have the original type, especially if that type was an object having methods as members.

This is what the message means. You might get the data structures back, but not rich objects you'd expect on Windows PowerShell.

__________________
Evgenij Smirnov

My personal blog (German): http://www.it-pro-berlin.de/
My stuff on PSGallery: https://www.powershellgallery.com/profiles/it-pro-berlin.de/
0
jsclmedave

Administrator
Registered:
Posts: 501
Reply with quote  #3 
Quote:
Originally Posted by cj_berlin
A 'serialized' object is a textual representation of that object. In PowerShell, Export-CLIXML is one example of serializing. Propertiy names and values are converted to XML-like structured text, methods are gone. If you deserialize the serialized object by Import-CLIXML, the methods are still gone and sometimes the properties do not quite have the original type, especially if that type was an object having methods as members.

This is what the message means. You might get the data structures back, but not rich objects you'd expect on Windows PowerShell.


Thanks CJ !



__________________
Tim Bolton @jsclmedave
Email: [string](0..20|%{[char][int](32+('527377347976847978324785847679797514357977').substring(($_*2),2))}) -replace ' '  

New to the forum? Please Read this
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.