About
Tag Archives: Microsoft Powershell
Powershell: Changing registry key value
After posting Pagefile size bigger than 4095MB on Windows Server 2003 I had the Idea to change this registry values with powershell. First start powershell You can get all PS Drives with the command Get-PSDrive Now you see the drive … Continue reading
Posted in IT, Microsoft, Powershell, Software, Windows, Windows Server, Windows Server 2003, Work
Tagged Changing, get-psdrive, HKLM, key value, Memory, Microsoft, Microsoft Powershell, PowerShell, registry, registry key value, Set-ItemProperty, Set-Location, Values, Windows, Windows Registry
1 Comment
Powershell: Count Sharepoint Sites on Sharepoint Server 2010
This is a very small line of code to count Sharepoint 2010 Site Collections with Powershell. (Get-SPSite -Limit all).Count By the way, we at Genotec AG are offering a Hosted Sharepoint 2010 solution based on Powershell automation.
Posted in Hosting, IT, Microsoft, Powershell, Sharepoint, Software, Web, Windows Server, Windows Server 2008 R2, Work
Tagged Genotec, Genotec AG, get-SPsites, Hosted Sharepoint, Hosted Sharepoint 2010, Hosting, Microsoft, Microsoft Powershell, PowerShell, Server, Sharepoint, Sharepoint 2010, Sharepoint Foundation Server 2010, Sharepoint Server 2010, Site Collections, Sites, SPSites, Windows Powershell, Windows Server
2 Comments
Powershell: Working with XML part 2
After my first post (Powershell: Parsing XML part 1) about working with XML and Powershell, I have create this second post which describes how to create a XML file, Add content to the XML file, remove content from the XML … Continue reading
Posted in IT, Microsoft, Powershell, Server Core, Software, Windows, Windows Server, Work
Tagged add, Add Data to XML, create, Microsoft, Microsoft Powershell, Object, PowerShell, Remove, Remove data from XML, Save, Save XML Object, Saving data to XML, Server, Windows, Windows Powershell, Working, XML, XML Powershell
Leave a comment
Powershell: Count your Code lines
After Coding some lines in a lot of different files you wanna know how much lines you have coded. There are two (I am sure there are even more) ways to do that. The first one is to get the … Continue reading
Posted in IT, Microsoft, Powershell, Software, Windows Server, Work
Tagged code, Count, Count lines, Get-ChildItem, Microsoft, Microsoft Powershell, PowerShell, ps1, Select-String, Windows, Windows Powershell
Leave a comment
Powershell: Simple retry logic
I am working at some larger powershell scripts right now and so I needed to create a simple retry logic for sending web request to a server.
Posted in Hosting, IT, Microsoft, Powershell, Software, Windows Server, Work
Tagged do while, logic, Loop, Microsoft, Microsoft Powershell, PowerShell, Retry, Windows, Windows Powershell
Leave a comment
Powershell: Get Sharepoint 2010 Site Collection Storage Usage
If you need to get the Storage Usage from a Sharepoint 2010 Site Collection, you can do this with Powershell. 1. Start SharePoint 2010 Management Shell or Powershell with the Sharepoint Snapin by: Add-PSSnapin “Microsoft.SharePoint.PowerShell” 2. Create a new Object … Continue reading
Posted in IT, Microsoft, Powershell, Sharepoint, Software, Windows Server, Work
Tagged Add-PSSnapin, get-member, get-spsite, Microsoft, Microsoft Powershell, Microsoft Sharepoint 2010, PowerShell, Sharepoint, Sharepoint 2010, SharePoint 2010 Management Shell, Site Collection Storage, Site Collection Usage, Usage.Storage, Windows Powershell
Leave a comment

