Giter Club home page Giter Club logo

powershell_syncfolder's Introduction

PowerShell script | SyncFolder

Synchronize a folder (with subfolder/files) in one direction - optional over a PSSession.

Description

Synchronize a folder (with subfolder/files) in one direction - optional over a PSSession. The follwoing options are available:

  1. Synchronize two folders on your lokal system
  2. Synchronize a folder from a remote PC over a PSSession with your local system
  3. Synchronize a folder to a remote PC over a PSSession with your local system

The advantage of the last 2 points is, that you can synchronize a folder with a remote PC which is not necessarily a member of an Active Directory domain and without connecting a network share . Only PowerShell-Remoting must be enabled and if you are not in the same subnet, you have to add on both sides the other client as TrustedHost (WinRM).

Screenshot

Requirements

  • PowerShell 5.0

Syntax

.\SyncFolder.ps1 [-Source] <String> [-Destination] <String> [<CommonParameters>]

.\SyncFolder.ps1 [-Source] <String> [-Destination] <String> [-ToSession] [-ComputerName] <String> [[-Credential] <PSCredential>] [<CommonParameters>]

.\SyncFolder.ps1 [-Source] <String> [-Destination] <String> [-FromSession] [-ComputerName] <String> [[-Credential] <PSCredential>] [<CommonParameters>]

Example 1

PS> .\SyncFolder.ps1 -Source E:\Temp\DemoSource\ -Destination E:\Temp\DemoDestination\ -Verbose

Example 2

PS> $Cred = Get-Credential $null
PS> .\SyncFolder.ps1 -Source E:\Temp\DemoSource\ -Destination C:\DemoDestination\ -ToSession -ComputerName TEST-DEVICE-01 -Credential $Cred -Verbose

powershell_syncfolder's People

Contributors

borntoberoot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.