-
PowerShell advanced function (cmdlet) to export CSV and serialize (join) all arrays and collections in input object
There are situations where you need to export object into CSV but the object has for example array or list (collection) of strings in one property and another array of complex objects in second property. In console view you can see {FirstObject, SecondObject} but after export will you get only full name of the object…
-
PowerShell advanced function (cmdlet) to get configuration, health, state and backlogs report for DFS-R
I decided to write Windows PowerShell Cmdlet (Advanced Function) to get report of configuration, status and health of Distributed File System Replication (DFS-R) in large enterprise environment (of course it is possible to use it for small deployment). I created this script because there are no native tools for such report and I did not…
-
PowerShell Tip – How to immediately access new disk after mount (Mount-VHD, Mount-DiskImage)
If you inside of a script mount a disk or do other operation that add another disk into system (unlock TrueCrypt protected volume) then you will not be able immediately access it. For example Get-ChildItem -Path X: will not work and you will get an error like you want to access a partition that does…
-
PowerShell advanced function (cmdlet) to create, format, mount and dismount VHD and VHDX files on local and remote computers
I often use Virtual Hard Disk (VHD or VHDX) files for different purposes then disks for virtual machines (VMs). A few examples: Container for temporary data It is possible to use it in home environment for file backups or for differential backups using Windows Server Backup. I like to use VHD as data disk (D:)…
-
PowerShell advanced function (cmdlet) to copy files and folders using Robocopy on a local or remote computer
I wrote Windows PowerShell Cmdlet (Advanced Function) to work with Robocopy. It is possible to use ComputerName (invoke all operations) or Session (use established session) to copy items on a remote computer. Results are not displayed as text but outputted as object. Some of the properties: Directories / Files / Bytes Total Directories / Files…