Windows Management Framewo...

I’ve just downloaded and installed on my Windows 7 workstation Windows Management Framework 3.0 – Beta. Before this I had Windows Management Framework 3.0 – CTP2 and there were some cool new features already. If you have installed Windows Management Framework 3.0 Community Technology Preview 1 or Community Technology Preview 2, you must uninstall it before installing Windows Management...

Visual Upgrade for all Sha...

I’ve got a challenge to make visual upgrade on our test environment and implement new branding feature on all its sites. For this I created this script. $WebApp = Get-SPWebApplication http://new-intranet foreach ($Site in $WebApp.sites) { $Site.VisualUpgradeWebs() Enable-SPFeature “CustomStyle” -Url $Site.Url -confirm:$false } P.S. This Script should be run using account which...

The Simplest Way to Get Gr...

Once I was asked for making our Group Policy Objects’ Report for Audit purposes I’ve started to search the best and the simplest way to do this. I have found SDM GPMC PowerShell Cmdlets 1.4 with which help it is possible to make the Report for each GPO with a prefix where it was linked. Get-GPO -All -Domain domain.com | foreach ` { $name = $_.DisplayName; $prefix = Get-SDMGPLink...

Get Currently Logged On Us...

Get Currently Logged On User
This is the most often used script. I am using it whenever someone wants to know who is logged on to that workstation or I need to do something on that workstation remotely. I simply put the workstation name and run the script. The result is in output window in comma separated view: workstation name, NT user account name, and user’s e-mail address taken from AD. Get-QADComputer -Name workstation...