header image

Archive for February, 2019

Testing the operating system

Posted by: | February 18, 2019 Comments Off on Testing the operating system |

Saw a question about testing the operating system and decided that the easiest way was to use the Version property from Win32_OperatingSystem. By easiest I mean least typing and string testing.   $os = Get-WmiObject -Class Win32_OperatingSystem switch ($os.Version) { {$_ -like ‘10.0*’} {$osv = “Windows 10”; break} {$_ -like ‘6.3*’} {$osv = “Windows 8.1”; […]

under: PowerShell

PowerShell v6 experimental features

Posted by: | February 13, 2019 Comments Off on PowerShell v6 experimental features |

The ability to have PowerShell v6 experimental features surfaced in the PowerShell v6.2 previews. In preview 4 there are two experimental features.   PSImplicitRemotingBatching – Batch implicit remoting proxy commands to improve performance   PSUseAbbreviationExpansion – Allow tab completion of cmdlets and functions by abbreviation   The available experimental features can be viewed with Get-ExperimentalFeature […]

under: PowerShell v6

« Newer Posts