Powershell script to pre-download prerequisites

Hi guys,

I spotted this script on the web (http://autospinstaller.com) and wanted to share it with you all.

This script will download all files required by Prerequisiteinstaller.exe in advance, in order to support an ‘offline’ installation of SharePoint 2010 (that is, on a server without Internet connectivity, as is often the case). Normally it will attempt to download any missing files, which of course doesn’t help you if your server can’t browse the Internet. Thankfully, PrerequisiteInstaller.exe also accepts command-line switches to allow installation from a locally-accessible file for each respective hotfix/prerequisite.

The script contains a list (current as of this writing) of the URLs for each prerequisite, and attempts to download them all in sequence. It uses the BitsTransfer module included with Windows 7 and Win2008 (R2, at least), but hasn’t yet been tested on other OSes yet.

Download the powershell script and the AutoSPInstaller.

Just to make it clear I didn’t write these scripts but i found it on te web. Here’s a link to the creators website.

For more information about how to use the script and installer. Check this page.

That’s it for now and until next time.

Greetz
Jack

Check foldr size script

By default, Windows only show file size not folder size. We sometime have to click through the folders to find the “culprit.

Ying Li developed the below PS script to help smooth this process. What it does is to do a recurse scan of each sub folders inside target folder and calculate the total length of the files and write a report in excel. Continue reading “Check foldr size script”

Install a .REG file without using REGEDIT.EXE

This is pure VBScript code, that also works when access to REGEDIT is denied by policy. Can be easily called from loginscripts. Not feature-complete (only strings and DWORDs) but works with most .REG files. Continue reading “Install a .REG file without using REGEDIT.EXE”

Active Directory User Last Logon (PS Script)

This script was designed to answer the ever duanting question of: “When did a user last logon?” Since the attribute does not replicate to other domain controllers you are required to get the information from all domain controllers connnected to the domain. It uses command line arguments to pass user name and domain to be searched. Continue reading “Active Directory User Last Logon (PS Script)”