/powershell-automation

Powershell snippets for day to day web development task automation

Primary LanguagePowerShellGNU General Public License v3.0GPL-3.0

Automation

Powershell scripts to help automate day to day task.

Getting Started

You can grab any script file and run it in powershell.

Prerequisites

You might need to set execution policy

How to set execution policy

Set-ExecutionPolicy -ExecutionPolicy

Installing

Just to make sure script doesn't get blocked and execution policy is properly set

Unblock-File -Path "SearchAndLaunch.ps1"
Unblock-File -Path "GetUpdatedFileList.ps1"

Running the program

Search-And-Launch

Import-Module .\SearchAndLaunch.ps1
Search-And-Launch -SiteToSearch SITENAME
OR
Click on SearchAndLaunch.bat

Get-Updated-File-List

Import-Module .\GetUpdatedFileList.ps1
Get-Updated-File-List -UpdatesPath PATH -NumberOfDays 1

OR

Click on GetUpdatedFileList.bat

Coding style

I am still learning powershell any advice?