Day: August 15, 2019

PowerShell: Scheduled Task to Backup Local Files to remote UNC Path

Set Script Execution Policy on Host PS H:\> Set-ExecutionPolicy RemoteSignedExecution Policy ChangeThe execution policy helps…

PowerShell: Use EMCOPY to Mirror a Directory

# Purpose: this PowerShell snippet is to demonstrate the use of Emcopy$source="C:\Users\tester\Desktop\Clients"$destination="C:\Users\tester\Desktop\Test"#$switches="/o /secforce /s /de…

PowerShell: File Copying Operation

2/11/20 Update: Version 0.1.8 is available here: https://blog.kimconnect.com/powershell-file-copy-script-using-emcopy-vss-legacy/ Version 0.1.6 <#.Description File_Copy_Script Version: 0.16Purpose: this…

Securing Windows Remote Desktop Services

secpol.msc > Local Policies > User Rights Assignments > double-click "Allow Log on through Remote…

PowerShell: Quick 1-Liner to Locate Path to Executable

PS C:\Users\tester> (get-command robocopy.exe) | select DefinitionDefinition----------C:\Program Files (x86)\Windows Resource Kits\Tools\robocopy.exeC:\Windows\system32\Robocopy.exe