-
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…
-
How to manage and configure BitLocker Drive Encryption – Group Policy and backup and restore to and from Active Directory
It is very simple to configure automatic backup of a recovery password in pure server environment. If you have clients then you will probably want to configure self-service portal to get recovery passwords (or at least delegation for Service Desk) but in server environment it is usually enough to use default configuration that only Domain…