Tag
PowerShell
298 articles · Page 29
-
Random Numbers in Powershell
In one of my last scripts I needed random numbers in Powershell. Now this Blog post should show you how you can generate random numbers in Powershell very simple. To create random numbers in Powershell you…
-
Simple Bean Machine program done in Powershell
In the last article I posted the C++ Code for a simple Bean Machine output. Now I did the same in Powershell. I know this is not really a fantastic Powershell script, but its good to…
-
Create Cisco VLAN Config with Powershell
Small Script for creating a simple CISCO VLAN config. # Create Cisco VLANs Config # # www.thomasmaurer.ch # (c) 2010 Thomas Maurer # # # First VLAN which should be created? [int]$VLAN = 1201 # How…
-
Powershell: Create a new Sharepoint 2010 WebApplication and Site collection
Microsoft Sharepoint 2010 is one of the new products which supports Windows Powershell commands. Its really easy to do the most tasks you do normally in the Sharepoint Central Administration with PowerShell. Microsoft created a PowerShell…
-
Powershell: How to rename all files in a folder
Sometimes you need a fast way to rename a lot of file. With Powershell this is pretty easy. You list all files in the directory and you can use this object with a foreach loop. This…
-
How to create a Powershell v2 Module
If you need some functions a lot in different scripts you create maybe external function files. This is a good way to clean up your code. To get this functions running in your mainscript.ps1 you can…
-
Still love my iPad
I still love my iPad. Now I really start to work with it. It keeps my life simple and easy. First I start with a daily briefing with my todos (Things) and events for today. I also…
-
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…
-
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…
-
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…
