function Get-ObjectInformation{<#.SYNOPSISA function used to explore object type information..DESCRIPTIONThe Get-ObjectInformation function provides access to otherwiseburied .NET reflection functionality. There is a large collection ofswitch parameters to help give a large sample of the members foran object passed to the function..NOTESAuthor: Will Steele (wlsteele@gmail.com)Last edited date: 7/19/2012Version 1.0Some of these will return large collections, depending on the assemblybeing referenced, so, it is sometimes a good idea to write to a variablefirst, examine the object size (using .Count) and select -first 5. Onceyou have a small sample set you can then determine which fields you needfor the specific investigation you are using. The key to realize hereis that many of these are in depth .NET objects and they have verylarge property collections..PARAMETER ObjectA mandatory parameter indicating the object to examine..PARAMETER GetConstructorsA switch parameter indicating whether it should return the constructorinformation or not. Default is False..PARAMETER GetCustomAttributesA switch parameter indicating whether it should return the CustomAttributes or not. Default is False..PARAMETER GetCustomAttributesDataA switch parameter indicating whether it should return theCustom Attributes Data or not. Default is False..PARAMETER GetExportedTypesA switch parameter indicating whether it should return the ExportedTypes or not. Default is False. NOTE: These are exported types ofthe assembly as a whole, not just for the referenced type..PARAMETER GetGenericArgumentsA switch parameter indicating whether it should return the GenericArguments or not. Default is False..PARAMETER GetHashCodeA switch parameter indicating whether it should return the HashCode or not. Default is False..PARAMETER GetLoadedModulesA switch parameter indicating whether it should return the LoadedModules or not. Default is False..PARAMETER GetManifestResourceNamesA switch parameter indicating whether it should return theManifest Resource Names or not. Default is False..PARAMETER GetMembersA switch parameter indicating whether it should return the Membersor not. Default is False..PARAMETER GetMethodsA switch parameter indicating whether it should return the Methodsor not. Default is False..PARAMETER GetModulesA switch parameter indicating whether it should return the Modulesor not. Default is False..PARAMETER GetNameA switch parameter indicating whether it should return the Nameor not. Default is False..PARAMETER GetReferencedAssembliesA switch parameter indicating whether it should return the ReferencedAssemblies or not. Default is False..PARAMETER GetTypeA switch parameter indicating whether it should return the Typeinformation or not. Default is False..PARAMETER SummaryA switch parameter indicating whether it should return the functionsummary of which switches are $true. Default is False..INPUTSObject.OUTPUTSReturns a variety of output pertaining to the input objects typedata..EXAMPLE 1$string = "string"Get-ObjectInformation -Object $string -GetTypeSystem.String.EXAMPLE 2$psobject = New-Object -TypeName PSObjectGet-ObjectInformation -Object $psobject -GetExportedTypes | sort nameIsPublic IsSerial Name BaseType-------- -------- ---- --------True True ActionPreference System.EnumTrue True ActionPreferenceStopException System.Management.Automation.RuntimeExceptionTrue False AdapterCodeMethods System.Object...True False WSManConfigurationOption System.Management.Automation.PSTransportOptionTrue False WSManConnectionInfo System.Management.Automation.Runspaces.RunspaceConnection...True False WSManServerChannelEvents System.Object.EXAMPLE 3$contentservice = New-WebServiceProxy -Uri http://services.msdn.microsoft.com/ContentServices/ContentService.asmx -Namespace contentserviceGet-ObjectInformation -Object $contentservice -GetReferencedAssemblies -SummaryVersion Name------- ----4.0.0.0 mscorlib4.0.0.0 System.Web.Services4.0.0.0 System4.0.0.0 System.Xml--- Information Summary ---
Tuesday, October 25, 2016
PowerShell v3 Function Get ObjectInformation
Posted by
karjana
,
at
4:30 AM
Subscribe to:
Post Comments (Atom)
Blog archive
-
▼
2016
(1181)
-
▼
October
(109)
- AppMgr III App 2 SD v3 1 9 apk
- TYBSC IT Sem V Question Papers 2009 Mumbai University
- Smart Memory Booster Pro
- Home automation update
- Very easy to download youtube videos audio mp3 format
- Write VIRUS to computer in 5 minutes
- Gravity Guy v1 2
- PowerShell v3 Windows Management Framework 3 0
- X Construction 1 38
- HD Dark Desktop Background Wallpapers Download
- Launching the Quantum Artificial Intelligence Lab
- Android Defrag PRO
- Syrias children learn to code with the Raspberry Pi
- Intel Nehalem Launch
- 1 Android newbies 10 new apps worth checking out
- Running omxplayer from the command line easily usi...
- Download Grand Theft Auto 3 v1 3 Apk For Android
- PowerShell v2 Tracking Down Registry Tweaks
- Pixlr Express v2 0 apk
- PowerShell v3 Enable TSDuplicateToken
- Don Jones Month of Lunches Day 7
- Largest collection of Google Logos on the web Set 7
- PowerShell v3 Function Get ObjectInformation
- Collection of SQL queries with Answer and Output S...
- Prevent access to specific partition or drive
- Summer Games Learn to Program
- PiAUISuite Update and Voicecommand v3 1
- Adobe Photoshop CS6 Tutorials
- Windows Server 2008 The Definitive Guide Ebook
- Sign in to edx org with Google and Facebook and
- Large Scale Machine Learning for Drug Discovery
- Hacker Tricks from Insiders A Threat to ERP Systems
- The Next Chapter for Flu Trends
- Googler Moti Yung elected as 2013 ACM Fellow
- Puddle THD
- PowerShell v3 in a Year Day 14 Write Warning
- Powershell v2 Regular Expressions Extracting Dates...
- Forget Turing the Lovelace Test Has a Better Shot ...
- Powershell v2 Trace Cmdlets Step 2 Im intrigued en...
- T SQL Query Remote Servers
- HitFilm Community Tutorials
- Just for fun A Post cmd exe world your brain on Po...
- Best Android Apps Sleep as Android full for Android
- Download Go Launcher Apk
- Website Color Schemer
- Top 15 News readers
- You can not Rename Folder
- Computer Science Education Recharged!
- Farewell to Microsoft XP
- Loader Droid download manager v0 6
- Powershell v3 Tab Completion Takes Forever sometim...
- Asus P6X58 Premium Motherbard First USB 3 0 Support
- TSQL Get Count of All Records in All Tables
- PowerShell v3 Geolocation with PowerShell
- Binary Decimal and Hexadecimal Number Systems in H...
- BSc IT Internet Security Notes Mumbai
- X plore File Manager v3 37 01 apk
- Blender 2 74 Tutorial In Hindi By VFX Pipeline
- 2014 Google PhD Fellowships Supporting the Future ...
- BSc IT Sem 5 2009 2010 Result released
- The Untold Story of Women Who Code
- HD Windows Logo Wallpaper for Desktop
- Toshiba Qosmio X305 Gaming Notebook
- Temple Run 2 v1 4 1 apk
- A Billion Words Because todays language modeling s...
- Stickman Snowboarder 1 0 1
- Apple is building a car
- Yumm 1 2 2
- PowerShell v3 in a Year Day 15 Get Host
- Runtastic PRO v3 1 2
- A step closer to quantum computation with Quantum ...
- Throwing fireballs with the Kinect and Oculus Rift...
- Voice Command v3 0 for the Raspberry Pi
- The Web We Have to Save
- The IKEA BookBook ™
- Subway Surfers 1 15 0 apk
- Toshiba Satelit Pro U400
- Draw Breaker v1 1
- Battery Booster Full for Android
- PrinterShare Mobile Print Premium 7 6 0
- Recover the lost administrators password in Window...
- Groundbreaking simulations by Google Exacycle Visi...
- PowerShell v2 Playing with BOr and BAnd
- How to allow users to Run only specified programs ...
- PowerShell v2 Getting Active Node Information and ...
- Lenovo IdeaPad U110 PC
- Classifying everything using your RPi Camera Deep ...
- Password protect internet explorer8 Browser
- WMI Error Unable to connect to WMI locally – “Win3...
- Critical Strike Portable v2 321
- Introduction to Dreamweaver Tutorial CS6 version B...
- Easy Controller Control Center v1 0 0 5 apk
- Password protected folders with with out SOFTWARE
- What does Privacy Mean to New Zealanders in the In...
- Crumble Zone v1 08 Apk
- Making Sense of MOOC Data
- How To Make A Platform Game In Flash 8 By Game Dev...
- Hill Climb Racing v1 11 0
- How to Classify Images with TensorFlow
- Play With Spider Spider moves towards your Mouse
-
▼
October
(109)