16 January 2012 0 Comments

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 3 functions those will be taking care of generating log files

27 March 2011 0 Comments

How to run FIM 2010 PowerShell Cmdlets from a remote machine?

Technorati Tags: FIM , XPath , PowerShell , Cmdlet Hi There, I am Syam Pinnaka, Dev in Identity and Access Management (IAM) team at Microsoft. In this blog post lets see an interesting learning that I came across in my current project. Did you ever wonder how to run the Forefront Identity Manager (FIM) 2010 PowerShell Cmdlet(s) from a remote machine

22 March 2011 0 Comments

User Profile Sync Service stuck on Starting, Multi Tenant version

Spent some quality time configuring a SharePoint 2010 Multi Tenant environment.  It’s a really cool feature for hosting scenarios in which you need to ensure client data is isolated at the service application level.  Check out Spencer Harbar’s Rational Guide to Multi Tenancy and the Microsoft Hosting Model Poster for info on setting it up. I ended up making a major mistake in the User Profile service application proxy command.  I was copying and pasting some of the PowerShell commands…( read more )

25 February 2011 0 Comments

How To: Update Site Collection Quotas For Existing Site Collections

Setting the default quota template for site collections in a web application is easy enough. But what do you do when you want to change the template associated with some or all of the site collection in a web application? Out of the box, there are no good tools to do this.

16 December 2010 0 Comments

Configuring Remote Desktop licensing settings on a Remote Desktop Virtualization Host server

This blog post introduces the Windows PowerShell cmdlets for configuring Remote Desktop licensing settings on a RemoteFX -enabled RD Virtualization Host server in Windows Server 2008 R2 SP1.

8 April 2010 0 Comments

Manage Remote Desktop Licensing by using Windows PowerShell

In Windows Server® 2008 R2, we introduced the Remote Desktop Services Provider for Windows PowerShell™ . This post gives examples of how you can use this new feature to manage Remote Desktop Licensing (RD Licensing). This post assumes that you have a basic understanding of Windows PowerShell

17 February 2010 0 Comments

BCS PowerShell: Introduction and Throttle Management

Your external list worked great when you tested it, but it’s not working on the deployment server! Reading the SharePoint logs , you see a message like one of these: Timeout expired. BDC Runtime Object Model has throttled the response. The response from the service took more than ’180000′ milliseconds

7 January 2010 0 Comments

WMIC 와 WMI Powershell cmdlets 비교

Windows Admin 이라면 Power shell을 공부해야할 때가 온 것 같습니다. Unix 의 shell을 부러워하고 있었는데 이제는 많은 것을 자동화 할 수 있을 것 같습니다.   우리 나라에서는 많이 사용되고 있지 않는 것 같은(많이 사용되는지 아닌지 저는 잘 모르겠습니다.) WMI 를 CMD 에서 제어할 수 있는 것이 wmic 입니다

20 November 2009 0 Comments

Automated SharePoint 2010 Install with PowerShell

In one of my previous posts , I walked through how to provision a SharePoint farm using PowerShell. You can also install SharePoint from a CD using PowerShell as well.  I use this in my lab at home so I don’t have to attend the installs when I am rebuilding my virtual machines

6 November 2009 0 Comments

How to: Run Expression Encoder 3 under PowerShell remoting

James  wanned me to explain the set of steps I use to enable Convert-Media under a PowerShell remoting. First a disclaimer: running these steps will lower the security settings of your PC, use with caution.  Here there are: In your encoding server (mine is called tv-server): Enable-PSRemoting  -force # Enables remoting set-item WSMan:localhostClientTrustedHosts * -force # I am not running a domain controller, so my server needs to trust everybody set-item wsman:localhostShellMaxMemoryPerShellMB 1024 -force # The default allowed memory is very low, we need to bump it so that Convert-Media have room to work.

18 August 2009 0 Comments

PowerShell for Non-N00bs: My Script Outline

In review, we learned a few things: 1) The PowerGUI Script Editor does syntax colouring, code block folding, and many more IDE features. And it’s free. 2) A PowerShell script can have an enormous amount of UI functionality

26 June 2009 0 Comments

Ed Wilson: Designing input for a script

Often when writing a script I follow a multistep process. The first thing to do, of course, is to come up with a bit of code that will perform the task that I am after. For example, if I want to obtain information about the BIOS on a computer, I will first figure out how to do this