Giter VIP home page Giter VIP logo

powershell-scripts's Introduction

Powershell logo PowerShell Scripts

Useful PowerShell scripts to configure a basic Windows Server 2016. The purpose of this repository is to have a little working configuration that can be used to set up your own server.

Feel free to use the code for your own purposes and contribute to this repository if you notice any mistakes.


Supported roles and features [9/11]

  • AD (with ADRecycleBin)
  • Backups
  • Basic Firewall
  • Basic IPv4 and IPv6
  • Certificates
    • Authority-Signed
    • Self-Signed
  • DHCPv4 and DHCPv6
  • DNSv4 and DNSv6
  • GPO
  • Shadow Copies
  • Share
    • File screen
    • Permissions
    • Quotas
    • Scheme
  • Time Zone

Usage

After installing a Windows server, execute scripts according to the desired services to install.

Before use any script, specify the new execution policy to avoid errors related to script signatures.

PS> Set-ExecutionPolicy Bypass

Be careful that the scripts are made for Windows Server 2016 and may not work for earlier version.

Also, always check the examples in the scripts to know the syntax to use for the configuration.

Example for installing DHCP Server Role with Windows PowerShell:

PS> git clone [email protected]:rememberYou/powershell-scripts.git
PS> cd powershell-scripts/DHCP/
PS> .\Conf-DHCP.ps1 -StartRangeV4 192.168.1.2 -EndRangeV4 192.168.2.254 `
                        -ScopeIDV4 192.168.1.0 -SubnetMaskV4 255.255.0.0 `
                        -DnsServer 192.168.42.1 -ComputerName 'SRVDNSPrimary' `
                        -DnsDomain 'heh.lan' -PrefixV6 2001:db8:cafe:10::1 `
                        -LifeTime 2.00:00:00

After setting up the scripts, turn back the execution policy to AllSigned if you have set up the possibility for users to sign their scripts (or Restricted).

PS> Set-ExecutionPolicy AllSigned

License

Code is under the GNU General Public License v3.0

powershell-scripts's People

Contributors

harchytekt avatar rememberyou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.