• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Stephanos Constantinou Blog

PowerShell Scripting

  • Home
  • Blogs
    • PowerShell Tutorials
    • PowerShell Scripts
    • PowerShell Modules
      • Modules Cmdlets
    • Software Reviews
  • About
  • Contact
You are here: Home / PowerShell Modules / PowerShell Module SysInfo v1.2.0

PowerShell Module SysInfo v1.2.0

15/03/2019 by Stephanos 1 Comment

PowerShell Module SysInfo v1.2.0

A new update of the module is here. It is being a while to write a post but I a back now. I have updated module to PowerShell Module SysInfo v1.2.0.
For those who have not seen the information about SysInfo module, you can find it here.

Let’s see the updates of this version.

Updates:

  • Added Credential parameter
  • Added Authentication parameter
  • Properties are now sorted in alphabetical order
  • Some internal functions have been renamed
  • Code improvements
  • Bug fixes

[adinserter name=”In Article”]

Credential Parameter

Credential parameter allows you to connect to a remote system a get the information without the need of running PowerShell with the specific user that has access to that machine.

Until version 1.1.3, in order to get the information from a remote system, you had to run PowerShell as the user that has access on that system. This version eliminates this issue. You are able to run PowerShell with any user that you want. When there is a need to get information from a system that your user does not have access to, you just need to use the credential parameter. Check the example.

Example 1

As you can see in the example below, by using the credential parameter, I am able to retrieve the local disk information.

PS C:\> Get-LocalDisk -ComputerName Server1 -Credential domain\admin_user

DeviceID            : C:
DriveType           : Local Disk
FreeSpace           : 34376413184
FreeSpacePercentage : 65
ProviderName        : 
Size                : 53092544512
SystemName          : Server1
VolumeName          : 

[adinserter name=”In Article”]

Authentication Parameter

In addition to the credential parameter, I have added also Authentication parameter. This parameter will allow you to specify the authentication mode that you like to use in order to connect to the remote system. you are not able to use Authentication parameter if Credential parameter is not used.

Authentication is able to accept the specific values:

  • Default
  • Digest
  • Negotiate
  • Basic
  • Kerberos
  • NtlmDomain
  • CredSsp

The below information is provided by Microsoft:

You cannot use the NtlmDomain authentication type for connection to the local computer. CredSSP authentication is available only in Windows Vista, Windows Server 2008, and later versions of Windows.

https://docs.microsoft.com/en-us/powershell/module/cimcmdlets/new-cimsession?view=powershell-6

Caution: Credential Security Service Provider (CredSSP) authentication, in which the user’s credentials are passed to a remote computer to be authenticated, is designed for commands that require authentication on more than one resource, such as accessing a remote network share. This mechanism increases the security risk of the remote operation. If the remote computer is compromised, the credentials that are passed to it can be used to control the network session.

https://docs.microsoft.com/en-us/powershell/module/cimcmdlets/new-cimsession?view=powershell-6

Check the example below.

[adinserter name=”In Article”]

Example 2

In the example below I will use the same server and cmdlet using the same credentials with different authentication method.

PS C:\> Get-LocalDisk -ComputerName Server1 -Credential domain\admin_user -Authentication Kerberos

DeviceID            : C:
DriveType           : Local Disk
FreeSpace           : 34376404992
FreeSpacePercentage : 65
ProviderName        : 
Size                : 53092544512
SystemName          : Server1
VolumeName          : 

Example 3

In this example I am using Negotiate value for authentication in order for the client and the server to negotiate what is the best way to establish the connection.

PS C:\> Get-LocalDisk -ComputerName Server1 -Credential domain\admin_user -Authentication Negotiate

DeviceID            : C:
DriveType           : Local Disk
FreeSpace           : 34376404992
FreeSpacePercentage : 65
ProviderName        : 
Size                : 53092544512
SystemName          : Server1
VolumeName          : 

[adinserter name=”In Article”]

Properties Order

When you use * to get all properties of the specific information, properties are now sorted in alphabetical order to find them easier.

Check the example below

Example 4

As you can see below all properties of the local disk information are sorted alphabetically.

PS C:\> Get-LocalDisk -ComputerName Server1 -Credential domain\admin_user -Properties *

Access                       : 
Availability                 : 
BlockSize                    : 
Caption                      : C:
Compressed                   : False
ConfigManagerErrorCode       : 
ConfigManagerUserConfig      : 
Description                  : Local Fixed Disk
DeviceID                     : C:
DriveType                    : Local Disk
ErrorCleared                 : 
ErrorDescription             : 
ErrorMethodology             : 
FileSystem                   : NTFS
FreeSpace                    : 34376392704
FreeSpaceGB                  : 32.02
FreeSpaceKB                  : 33570696
FreeSpaceMB                  : 32783.88
FreeSpacePercentage          : 65
InstallDate                  : 
LastErrorCode                : 
MaximumComponentLength       : 255
MediaType                    : Fixed hard disk media
Name                         : C:
NumberOfBlocks               : 
PowerManagementCapabilities  : 
PowerManagementSupported     : 
ProviderName                 : 
Purpose                      : 
QuotasDisabled               : True
QuotasIncomplete             : False
QuotasRebuilding             : False
Size                         : 53092544512
SizeGB                       : 49.45
SizeKB                       : 51848188
SizeMB                       : 50633
Status                       : 
StatusInfo                   : 
SupportsDiskQuotas           : True
SupportsFileBasedCompression : True
SystemName                   : Server1
UsedSpacePercentage          : 35
VolumeDirty                  : False
VolumeName                   : 
VolumeSerialNumber           : E07896D6

Other Changes

Other changes that have been made in this version is the code improvement to improve stability and speed, bug fixes and renaming of some internal functions in order to avoid any conflicts with default system cmdlets.

PowerShell Module Cmdlets List

Once more I am providing you below the list of all cmdlets included currently in the module.

  • Get-1394Controller
  • Get-BaseBoard
  • Get-Battery
  • Get-BIOS
  • Get-Bus
  • Get-CacheMemory
  • Get-CDROMDrive
  • Get-CompactDisc
  • Get-Desktop
  • Get-DesktopMonitor
  • Get-DiskDrive
  • Get-DiskPartition
  • Get-Fan
  • Get-FloppyController
  • Get-FloppyDrive
  • Get-GlidePoint
  • Get-HeatPipe
  • Get-IDEController
  • Get-InfraredDevice
  • Get-Keyboard
  • Get-LocalDisk
  • Get-LogicalDisk
  • Get-MemoryArray
  • Get-MemoryDevice
  • Get-MotherboardDevice
  • Get-Mouse
  • Get-NetworkAdapter
  • Get-NetworkAdapterConfiguration
  • Get-NetworkDrive
  • Get-OperatingSystem
  • Get-OpticalSensor
  • Get-PhysicalMemory
  • Get-PhysicalMemoryArray
  • Get-PointingDevice
  • Get-PortableBattery
  • Get-PrinterConfiguration
  • Get-PrinterInfo
  • Get-Processor
  • Get-RAMDisk
  • Get-Refrigeration
  • Get-RemovableDisk
  • Get-SCSIController
  • Get-SoundDevice
  • Get-SystemEnclosure
  • Get-TapeDrive
  • Get-TemperatureProbe
  • Get-TouchPad
  • Get-TouchScreen
  • Get-TrackBall
  • Get-TrackPoint
  • Get-USBController
  • Get-VideoController
  • Get-VoltageProbe

Hope you like SysInfo module and the additional features.

You feedback and recommendations are appreciated.

If you have any questions or anything else please let me know in the comments below.

[adinserter name=”In Article”]

Related Links

  • PowerShell Scripts
  • PowerShell Tutorial
  • PowerShell Modules
  • Modules Cmdlets
  • PowerShell Gallery | SysInfo
  • GitHub – SConstantinou/SysInfo

[adinserter name=”Matched-Content”]

Summary
PowerShell Module SysInfo v1.2.0
Article Name
PowerShell Module SysInfo v1.2.0
Description
PowerShell Module SysInfo v1.2.0. Here you will find information about PowerShell Module SysInfo v1.2.0 and its use. Stephanos Constantinou Blog
Author
Stephanos
Publisher Name
Stephanos Constantinou Blog
Publisher Logo
Stephanos Constantinou Blog

Filed Under: PowerShell Modules Tagged With: Win32_1394Controller, Win32_BaseBoard, Win32_Battery, Win32_Bios, Win32_Bus, Win32_CacheMemory, Win32_CDROMDrive, Win32_ComputerSystem, Win32_Desktop, Win32_DesktopMonitor, Win32_DiskDrive, Win32_DiskPartition, Win32_Fan, Win32_FloppyController, Win32_FloppyDrive, Win32_HeatPipe, Win32_IDEController, Win32_InfraredDevice, Win32_Keyboard, Win32_LogicalDisk, Win32_MemoryArray, Win32_MemoryDevice, Win32_MotherboardDevice, Win32_NetworkAdapter, Win32_NetworkAdapterConfiguration, Win32_OperatingSystem, Win32_PhysicalMemory, Win32_PhysicalMemoryArray, Win32_PointingDevice, Win32_PortableBattery, Win32_Printer, Win32_PrinterConfiguration, Win32_Process, Win32_Processor, Win32_Product, Win32_Refrigeration, Win32_SCSIController, Win32_Service, Win32_SoundDevice, Win32_SystemEnclosure, Win32_TapeDrive, Win32_TemperatureProbe, Win32_USBController, Win32_VideoController, Win32_VoltageProbe, Win32Reg_AddRemovePrograms

Reader Interactions

Comments

  1. Rodrigo Mesa says

    02/07/2020 at 23:26

    hola como puedo ejecutar el script o import modules

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Footer

Recent Posts

  • ICS Cube Product Review 26/04/2019
  • PowerShell Module SysInfo v1.2.0 15/03/2019
  • PowerShell Module SysInfo v1.1.2 13/11/2018
  • PowerShell Module SysInfo 24/10/2018
  • Get-VoltageProbe 24/10/2018
  • Get-VideoController 24/10/2018
  • Get-USBController 24/10/2018
  • Get-TrackPoint 24/10/2018
  • Get-TrackBall 24/10/2018
  • Get-TouchScreen 24/10/2018
Planet PowerShell

Categories

  • Modules Cmdlets (57)
  • PowerShell Modules (5)
  • PowerShell Scripts (38)
  • PowerShell Tutorials (35)
  • Software Reviews (2)

Archives

  • April 2019 (1)
  • March 2019 (1)
  • November 2018 (1)
  • October 2018 (56)
  • September 2018 (13)
  • August 2018 (9)
  • July 2018 (6)
  • June 2018 (8)
  • May 2018 (7)
  • April 2018 (9)
  • March 2018 (4)
  • February 2018 (6)
  • January 2018 (12)
  • December 2017 (4)
Top 10 PowerShell 2018

Blogroll

  • Planet PowerShell
  • Reddit – PowerShell
  • PowerShell Magazine
  • PowerShell.org
  • PowerShell Team Blog
  • Hey, Scripting Guy! Blog
  • Mike F Robbins
  • PowerShell Explained with Kevin Marquette
  • Mike Kanakos – Network Admin
  • The Lonely Administrator
  • AskME4Tech
PowerShell Blogs Sysadmin Blogs Banners for Top 20 Programming Blogs

© 2023 · Stephanos Constantinou Blog

  • Home
  • Blogs
  • About
  • Contact