-
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 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…
-
PowerShell advanced function (cmdlet) to get all Active Directory Sites and Subnets
I wrote a simple function to get all AD sites and subnets. Using this function it is possible to easily report all sites and for example find sites without subnets. If there is more then on subnet in a site then the output is multiple objects with the same site and different subnet. Every object…
-
PowerShell advanced function (cmdlet) to modify existing shortcuts (links, LNK files) to start app in elevated mode (Run as Administrator)
I needed to modify tens of existing shortcuts to run referenced applications in elevated mode. It is possible to do it in properties of the shortcut (Advanced – [x] Run as administrator) but I prefer PowerShell (actually .NET Framework) to do bulk operations. I wrote this function for you. Function Set-RvShortcutToRunAsAdministrator { <# .SYNOPSIS Modify…