How to add Active Directory module in PowerShell in Windows 7

If you are planning to run a Powershell script with Active Directory commandlets on a Win 7 machine or any other machine that DOES NOT have AD role then you need to do some preliminary steps as listed below.   Step1:   By default one can not import Active Directory module in Powershell in Windows…

18

Creating log files in Powershell scripts

I was working on a project in which I had to create a script to do some solution deployment, site creations etc., and while doing these the script shoul create log file to log entire process. This is a sample script which i worked out and could be useful to all needy. This script has…


Powershell script to generate an excel report to list the applications and patches installed

This is a Powershell script to create a report in excel listing all the applications and patches installed  in the local machine. The report will have following information: 1st sheet will have Application Name and Application Version. 2ns sheet will have KB and Description The script is attached as a file to this blog, please…

4

"Failed to create sample data" – SharePoint 2010 PSConfig fails in Windows 7

ISSUE: While installing SharePoint 2010 on Windows 7 OS, it fails while running psconfig wizard at step 8th with below screen. [Failed to create sample data. An exception of type Microsoft.SharePoint.SPException was thrown.  Additional exception information: User cannot be found. Microsoft.SharePoint.SPException: User cannot be found.]  


Installing and Configuring SharePoint 2010 through Powershell

Installing and Configuring SharePoint 2010 through Powershell Scripting STEP1: Preparation Download the SPModule and add the same folder location to the PSModulePath in Environmental variables of respective server as shown below:     #Restart the server before installing SP2010 Restart-Computer -force   STEP2: Installation. I have named this file as SP1.PS1. ==================================== SP1.ps1 [PowerShell -File…