My esteemed coworker Derek just told me about SPMetal, a utility from Microsoft that can turn a SharePoint list into a C# class that can be manipulated like a normal LINQ object...
http://msdn.microsoft.com/en-us/library/ee538255.aspx
More details to follow...
Wednesday, April 11, 2012
Tuesday, April 10, 2012
Change windows 7 key after install
Plucked this gem off the interwebs just now:
"Do you need to change your product key so you can activate Windows Vista or Windows 7 properly? You can use a great command line tool that will help you do this very easily. Just follow these steps:
Click on the Start Button and type in command prompt so that it shows up on your start menu search list. Right click on the Command Prompt shortcut and select Run As Administrator.
At the administrator command prompt, type in "slmgr.vbs -ipk"
To activate windows after changing the key, run "slmgr.vbs -ato"
Credit: http://tweaks.com/windows/39026/change-windows-product-key-after-install/
"Do you need to change your product key so you can activate Windows Vista or Windows 7 properly? You can use a great command line tool that will help you do this very easily. Just follow these steps:
Click on the Start Button and type in command prompt so that it shows up on your start menu search list. Right click on the Command Prompt shortcut and select Run As Administrator.
At the administrator command prompt, type in "slmgr.vbs -ipk
To activate windows after changing the key, run "slmgr.vbs -ato"
Credit: http://tweaks.com/windows/39026/change-windows-product-key-after-install/
Monday, March 26, 2012
Change User's email in SharePoint site
The Set-SPUser command lets you change
Set-SPUser -Identity 'domain\user' -DisplayName 'John Doe' -Email 'john.doe@nowhere.com' -Web http://myweb/path/to
Set-SPUser -Identity 'domain\user' -DisplayName 'John Doe' -Email 'john.doe@nowhere.com' -Web http://myweb/path/to
Reset services on a SharePoint Farm
Came across this today that lets you restart whatever services you want on all the servers in your farm...
IISRESET all servers in farm using PowerShell
--- snip ---
IISRESET all servers in farm using PowerShell
--- snip ---
if((Get-PSSnapin -Name Microsoft.Sharepoint.PowerShell -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin Microsoft.Sharepoint.PowerShell } function Reset-Services{ # Connect to the farm $Farm = Get-SPFarm foreach ($Server in $Farm.Servers) { $ServerName = $Server.Name $ServerRole = $Server.Role if ($Server.Role -ne "Invalid") { Write-Host "Restarting IIS Services on $ServerName." IISReset $ServerName IISReset $ServerName /Status } } } Reset-Services-- snip --if((Get-PSSnapin -Name Microsoft.Sharepoint.PowerShell -ErrorAction SilentlyContinue) -eq $null) { Add-PSSnapin Microsoft.Sharepoint.PowerShell } function Reset-Services{ # Connect to the farm $Farm = Get-SPFarm foreach ($Server in $Farm.Servers) { $ServerName = $Server.Name $ServerRole = $Server.Role if ($Server.Role -ne "Invalid") { Write-Host "Restarting IIS Services on $ServerName." IISReset $ServerName IISReset $ServerName /Status Write-Host "Restarting Timer Job on $ServerName." $Service = Get-WmiObject -Computer $ServerName Win32_Service -Filter "Name='SPTimerV4'" if ($Service -ne $nll) { $Service.InvokeMethod('StopService',$null) Start-Sleep -s 7 $service.InvokeMethod('StartService',$null) Start-Sleep -s 7 Write-Host "Timer Job successfully restarted on $ServerName." } } } } Reset-ServicesWednesday, March 7, 2012
Tuesday, September 27, 2011
Saturday, September 10, 2011
Friday, September 9, 2011
Wednesday, August 10, 2011
Tuesday, August 9, 2011
Thursday, August 4, 2011
Open source performance testing tools
Open source performance testing tools: "y designed for testing Web Applications but has since expanded to other test functions. Apache JMeter may be used to test performance both on static and dynamic resources (files, Servlets, Perl scripts, Java Objects, Data Bases and Queries, FTP Servers and more). It can be used to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types. You can use it to make a graphical analysis of performance or to test your server/script/object behavior under heavy concurrent load."
Friday, July 22, 2011
Code Book (Learn asp.net from example): Asynchronous GridView in 5 simple steps
http://aspdotnetcodebook.blogspot.com/2008/07/asynchronous-gridview-in-5-simple-steps.html
Monday, July 18, 2011
Tuesday, July 12, 2011
Monday, July 11, 2011
Using programmatic Impersonation from an ASP.NET Page - Rick Strahl's Web Log
Using programmatic Impersonation from an ASP.NET Page - Rick Strahl's Web Log
I want to start a blog called "Rick Strahl's a genius" -- another gem from him.
Thursday, June 30, 2011
Tuesday, June 28, 2011
Subscribe to:
Posts (Atom)