How To Deploy Windows Powershell Community Extensions

Powershell Community Extensions

Web: http://pscx.codeplex.com/

Download: Pscx-2.0.0.1.zip

This variable contains the directory from which the script module is being executed. This variable allows scripts to use the module path to access other resources.

Cmd>set PSScriptRoot=T:\Trabajo\Powershell

This variable contains a list of module locations.

Cmd>set PSModulePath=T:\Trabajo\Powershell

Powershell> Import-Module Pscx

Back up a Site collection from a Sharepoint Server 2010 using Powershell Backup-SPSite

I got two files to perform the Site Collection Back Up of a Sharepoint Server.
 
My username have the same rights that the username who have installed Sharepoint Server.
 
Backup.bat start up Powershell script. 
Backup.ps1 adds the Sharepoint Powershell Snap-In to Powershell shell and performs the Site Collection Backup Up.
 
Backup.bat
 
IOF>>
 
Powershell Backup.ps1
 
<<EOF
 
Backup.ps1
 
IOF>>
 
Add-PSSnapin Microsoft.SharePoint.PowerShell
Backup-SPSite -Identity http://www.simonalsa.com -Path D:\Backup\Diario.bak -Force
 
<<EOF
 
MS Sharepoint Backup Procedures
Back up a farm (SharePoint Server 2010)

http://technet.microsoft.com/en-us/library/ee428316.aspx

Update WordPress siteurl and home database parameters

When you are moving or migrating a WordPress’s  solution between diferent web servers and domains you must update the dabatase parameters if your want work with WordPress in the new environment.

The database parameters are “siteurl” and “home” option. You can find this parameters into the table wp_options.

SQL> update wp_options set option_value=”http://www.simonalsa.com” where option_name=”siteurl” or option_name=”home”

How To manage Domain Security Groups and Users usign Powershell

Using Quest QAD cmdlets,

Make a new group

PS C:\> new-QADGroup -ParentContainer ‘OU=Users,DC=simonalsa,DC=com’ -Name ‘Group1′ -samAccountName Group1′ -GroupType ‘Security’ -GroupScope ‘Global’

Add user to the group

PS C:\> add-QADGroupMember Group1 SIMONALSA\User1

WordPress Themes