List/Grid Tips and Tricks Subscribe RSS feed of category Tips and Tricks

#PSTip Convert PowerShell Data File to an Object

#PSTip Convert PowerShell Data File to an Object

Note: This tip requires PowerShell 4.0 or later. Before PowerShell 4.0, if we had to convert the hash table in a PSD1 file into an object representation, we either used… Read more »

#PSTip Using PowerShell runspaces to find unassigned IPv4 addresses

#PSTip Using PowerShell runspaces to find unassigned IPv4 addresses

Note: This tip requires PowerShell 2.0 or later. We often come across infrastructure configuration scenarios where we need to find a free IP address before assigning the same to a… Read more »

#PSTip Validate Active Directory Credentials

#PSTip Validate Active Directory Credentials

Note: This tip requires PowerShell 2.0 or later. PowerShell let’s you tap into .NET Framework and do all kind of poking. Recently, while reading up this article on CodeProject ┬ácame… Read more »

#PSTip Find variables in a script

#PSTip Find variables in a script

Note: This tip requires PowerShell 3.0 or later. I had recently completed writing a PowerShell module for an internal project. Within this module, I ended up using variables in the… Read more »

#PSTip Convert .docx to .pdf using Word.Application

#PSTip Convert .docx to .pdf using Word.Application

The Word.Application object can be used to convert Word documents into PDF files. This requires Microsoft Word to be installed on the system on which the code is executed. Using… Read more »

#PSTip Determine compression ratio of compressed files

#PSTip Determine compression ratio of compressed files

In the previous #PSTip Compress files and folders with System.IO.Compression.FileSystem class, a .zip file was created and extracted. Now it might be good to know the compression ratio to see… Read more »

© 2016 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.