Powershell


To download a web page using powershell and a scheduled task you must do the following : 1. Open Task Scheduler 2. Right click where your existing Tasks are and click Create a new task 3. Give it a name, and description 4. By default the job will run as whatever user you’re logged in as.  If you don’t want this click the “Change User or Group” button to select the user you’d like the job to run as. 5....

Read More

[message_box type=”info” icon=”yes”] Pull 10 newest Application logs: get-eventlog application -newest 10 -message “*www.domaingoeshere.org*” | format-list * Pull 10 newest System logs: get-eventlog system -newest 10 -message “*www.domaingoeshere.org*” | format-list * If you want to take the output of the get-eventlog cmdlet and pipe to a txt file do the following: Pull 10 newest...

Read More

I wrote this script so you can loop through a CSV which contains a list of IP’s or Hostnames and allows you to verify whether a specific Registry Key and Value exist. Of course this can be modified for further granularity. [message_box type=”info” icon=”yes”] # Filename: checkreg.ps1 # Description: Imports a list of computers from a CSV file and then checks each of the # computersa particular registry...

Read More

Ok so I decided to use my brain to write a cool PowerShell script that allows you to check all nodes within your cluster to ensure that the Temporary ASP.NET Files exists. This script can be easily modified for many other uses such as finding any directory ect. Please let me know your thoughts as I’d be happy to update to provide additional functionality. # Filename: asptempfoldercheck.ps1 # Description: Imports a list of...

Read More