Giter Site home page Giter Site logo

idata1 / powershell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jackbennett/powershell

0.0 1.0 0.0 626 KB

Every Powershell script I write that I could possibly share. Folders are more polished modules intended for re-use. Some other peoples modules are included. This is my one stop git clone ...; add to psModulePath repo

PowerShell 100.00%

powershell's Introduction

Powershell scripts development

What is this?

Every script in this root folder is either;

  • in development
  • a note
  • a reference
  • an abandoned project for later

All folders in the repo are modules intended for use or well on their way to it.

What's the difference? If it's a folder it should be at the point past requiring knowledge of assumptions made by the developer. i.e There should be help written.

How to use

Add the modules you're interested in to your session with

import-module <module name>

Add all of the modules by adding the above command to your profile with

if(test-path $profile){notepad $profle}else{new-item $profile -type File; notepad $profile}

There is a sample profile template in the repo as profile.template. This is an example of how I'm importing these scripts.

About the modules

Utils

Module that contains generic helper functions I've found useful to use every week.

Get-Command -Module util

Todo:

  • Set-Proxy currently sets a given proxy URL only when matching a hardcoded SSID string
  • Create a Get-Student cmdlet to wrap Get-ADUser with some custom properties from the AD that more more useful e.g. Year group, Form, email, home drive etc.
  • Modify Get-LogonHistory to accept an array of computernames an use jobs to make the Get-WinEvent call work in parrallel.

Application

Find and remove applications on a computer

get-command -Module Application

Exams

Subset of cmdlets for managing the examination accounts used on the domain.

Remove/Set OfficeRestrictions

Modify the users office install to control spelling and grammar corrections for use in exam conditions. Usually applied via logon/off script GPO

Get Candidate Data

Simple UI to run at logon to prompt a student for their name and candidate number

Repair ExamUser

Getting all members of the security group "examinations" do the following;

  • Mass reset passwords.
  • Batch clear the home directories.
  • Copy into the home directory new boilerplate documents.
  • Guarantee the exam account has full ownership of its home folder

Todo:

  • Copy the contents of the exam account to an archive
  • Basic GUI Prompt to get student full name and candidate number
  • Set Gui to run at first logon after archiving the existing account
  • Test account folder permission ACL before resetting to see if it's necessary

powershell's People

Contributors

jackbennett avatar

Watchers

 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.