Giter Site home page Giter Site logo

save-only's Introduction

Description

Use this module to backup a users profile to a network location or a local (USB device). The module will copy everything in the target user's C:\Users[User Name] directory except for in the AppData directory. The only things copied from the AppData directory are the contents of the following directory:

'\AppData\Local\Microsoft','\AppData\Local\Google','\AppData\Roaming\Microsoft\Excel','\AppData\Roaming\Microsoft\Outlook', '\AppData\Roaming\Microsoft\PowerPoint','\AppData\Roaming\Microsoft\Word','\AppData\Roaming\Mozilla'.

Once the contents of the target user's directory is copied to your specified directory it will zipup the content with 7zip, using the specified password as the encryption key.

The save-only module will be the entry point to execute a profile backup. The zipup module will zip up the target users profile, the logwrite module will allow logging to be outputted to a log file in the directory that the module is ran from.

Save-Only Cmdlet Options

-userpath - The path to the target user you want to backup.

-pass - Password to be used when the profile is zipped up and encrypted.

-raw_profile - Storage location of copied profile information.

-profile_store - Location to store zipped profile.

-Logfile - Log file location by default this will be in the location that the script is executed from.

Zipup Cmdlet Options

-location - path to directory/file that will be zipped. This is passed in from the save-only module if the save-only module is ran.

-PlainPassword - password string in plaintext. This is passed in from the save-only module if the save-only module is ran.

-securepath - path to a securestring password file by default this looks at a file called passtime.txt in the root directory for where the module was executed.

-store_loc - storage location for zipped file. This is passed in from the save-only module if the save-only module is ran.

-isprofile - switch to determine whether the location param is a file or directory, by default this is set to true and will run as a directory.

-Logfile - location of where the logfile is stored.

LogWrite Cmdlet Options

-logstring - String that is passed in to be written to the logfile.

-logfile - location of logfile.

Examples

save-only -userpath C:\Users\TargetUser -pass EncryptionPass -raw_profile Locationtostorecopiedprofile -profile_store zipfilestorelocation

Requirements

7zip application is required to run this script.

This script must be ran as an admin user on the target machine.

The modules must all be in the same directory in order for the save-only module to work correctly.

save-only's People

Contributors

dianomaly 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.