Bill Gates: How a Geek Changed the World [Video]
Just before he stepped down from Microsoft, BBC2’s “The Money Programme” put together a special on Bill Gates and how he made the company into a money making machine. Those of you who love geek history will definitely enjoy this hour long documentary video.
2011/06/25
2011/06/13
Powershell and Windows updates
#
# Functions from http://richardspowershellblog.wordpress.com/
#
# --- GET-UPDATE --- #
function get-update {
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0 and Type='Software'" )
$result.Updates | select Title, IsHidden
}
# --- GET-UPDATE --- # (updated)
function get-update2 {
[CmdletBinding()]
param (
[switch]$hidden
)
PROCESS{
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
# 0 = false & 1 = true
if ($hidden){
$result = $searcher.Search("IsInstalled=0 and Type='Software' and ISHidden=1" )
}
else {
$result = $searcher.Search("IsInstalled=0 and Type='Software' and ISHidden=0" )
}
if ($result.Updates.Count -gt 0){
$result.Updates |
select Title, IsHidden, IsDownloaded, IsMandatory,
IsUninstallable, RebootRequired, Description
}
else {
Write-Host " No updates available"
}
}#process
<#
.SYNOPSIS Discovers available updates
.DESCRIPTION Interrogates Windows updates for available software updates only. Optional parameter to display hidden updates
.PARAMETER hidden A switch to display the hidden updates
.EXAMPLE get-update Displays non-hidden updates
.EXAMPLE get-update -hidden Displays hidden updates #>
}
# --- GET-INSTALLEDUPDATE --- #
function get-installedupdate {
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=1 and Type='Software'" )
$result.Updates | select Title, LastDeploymentChangeTime
}
# --- INSTALL-UPDATE --- #
function install-update {
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$result = $searcher.Search("IsInstalled=0 and Type='Software' and ISHidden=0")
if ($result.Updates.Count -eq 0) {
Write-Host "No updates to install"
}
else {
$result.Updates | select Title
}
$downloads = New-Object -ComObject Microsoft.Update.UpdateColl
foreach ($update in $result.Updates){
$downloads.Add($update)
}
$downloader = $session.CreateUpdateDownLoader()
$downloader.Updates = $downloads
$downloader.Download()
$installs = New-Object -ComObject Microsoft.Update.UpdateColl
foreach ($update in $result.Updates){
if ($update.IsDownloaded){
$installs.Add($update)
}
}
$installer = $session.CreateUpdateInstaller()
$installer.Updates = $installs
$installresult = $installer.Install()
$installresult
}
2011/05/31
LazyWinAdmin 0.2
New version of LazyWinAdmin 0.2 (see the download section)
Download now
requires:
-PowerShell 2.0 on local machine
-Permissions on remote machines
Download now
requires:
-PowerShell 2.0 on local machine
-Permissions on remote machines
Tool - mRemoteNG 1.67 RC3
New version of one of my favorite Admin tool: mRemoteNG
Download it now!
Changes from 1.67 RC2 to 1.67 RC3
Changes from 1.67 RC2 to 1.67 RC3
- Added confirmation before closing connection tabs.
- Fixed bug 42 - Maximized location not remembered with multiple monitors.
- Improved loading and saving of window location.
- Removed flickering on start up.
- Fixed bug 43 - Creating a duplicate connection causes connection list to no longer be sorted ascending.
- Improvements to German translation.
- Added partial French translation to the application.
- Addded Thai translation to the installer.
- Updated graphics in the installer to mRemoteNG logo.
- Added buttons for Add Connection, Add Folder, and Sort Ascending (A-Z) to the Connections panel toolbar.
- Fixed rename edit control staying open when collapsing all folders.
- Changed sorting to sort all subfolders below the selected folder.
- Allow sorting of connections if a connection entry is selected.
- Fixed adding a connection entry if nothing is selected in the tree.
- Added 15-bit Color RDP setting.
- Fixed loading of RDP Colors setting from SQL.
- Added Font Smoothing and Desktop Composition RDP settings.
- Improved error handling when loading XML connection files.
- Added the mRemoteNG icon to the list of selectable icons for connection entries.
- Fixed migration of external tools configuration and panel layout from Local to Roaming folder.
- Disable ICA Hotkeys for Citrix connections. Fixes issue with international users.
- Added a language selection option so users can override the language if they don't want it automatically detected.
- Fixed RD Gateway default properties and RDP reconnection count setting not being saved.
- Fixed bug 33 - IPv6 doesn't work in quick Connect box.
- Moved the items under Tools in the Connections panel context menu up to the top level.
2011/05/17
Automating Active Directory Administration with Windows PowerShell
Technet Video
Don Jones
About This Video

Don Jones
![]() |
| VIDEO: Automating Active Directory Administration with Windows PowerShell |
Active Directory is one of the areas where administrators spend the most time: Adding users, changing users, managing computer accounts, removing users, managing organizational units, and more. Learn to automate many of these common tasks using Windows PowerShell, and both the new Active Directory cmdlets in Windows Server 2008 R2 as well as third-party Active Directory cmdlets. You’ll learn from one of the world’s most popular and respected PowerShell trainers, Don Jones, and you’ll have full access to Don’s sample scripts to use as starting points in your own environment. No scripting experience is necessary!
Session level: 300
Session level: 300
About the speaker
Don Jones
With more than fifteen years of IT experience, Don Jones is one of the world’s leading experts on the Microsoft business technology platform. He’s the author of more than 35 books, including Windows PowerShell: TFM, Windows Administrator’s Scripting Toolkit, VBScript WMI and ADSI Unleashed, PHP-Nuke Garage, Special Edition Using Commerce Server 2002, Definitive Guide to SQL Server Performance Optimization, and many more. Don is a top-rated and in-demand speaker at conferences such as Microsoft TechEd, Windows Connections, and TechMentor, and is an accomplished IT journalist with features and monthly columns in Microsoft TechNet Magazine, Redmond Magazine, and on Web sites such as TechTarget and MCPMag.com. Don is also a multiple-year recipient of Microsoft’s prestigious Most Valuable Professional (MVP) Award.
2011/05/05
Application command name for Windows System
Source (Technet Wiki)
If you encounter any problem launching some of the program, please try the following :
Press the Windows Key + R on your keyboard or click on Start > Start Search and type this command
Add/Remove Programs = appwiz.cpl
Administrative Tools = control admintools
Authorization Manager= azman.msc
Calculator = calc
Certificate Manager = certmgr.msc
Character Map = charmap
Check Disk Utility = chkdsk
Command Prompt = cmd.exe
Component Services = dcomcnfg
Computer Management = compmgmt.msc
Control Panel = control
Date and Time Properties = timedate.cpl
Defragment User Interface = dfrgui
Device Manager = devmgmt.msc
Direct X Troubleshooter = dxdiag
Disk Cleanup Utility = cleanmgr
Disk Management = diskmgmt.msc
Disk Parmelonion Manager = diskpart
Display Properties = control desktop or, alternatively desk.cpl
Ditilizer Calibration Tool = tabcal
Downloads = Downloads
DPI Scaling = dpiscaling
Driver Package Installer = dpinst
Driver Verifier Utility = verifier or, alternatively reset
DVD Player = dvdplay
Encryption File System = rekeywiz
Event Viewer = eventvwr.msc
2011/04/26
What Anti-Virus scanning exclusions should be considered for system and servers ?
Source
Consider the following file scanning exceptions for your Anti-Virus software where applicable:
NOTE: The %systemroot% is normally the C:\WINDOWS or C:\WINNT directory depending on your OS.
NOTE: the %systemroot% variable will not work as an exclusion for some OSs. So make sure to spell out full path in your exclusion files (GPO or via AntiVirus Server)
1.) %systemroot%\System32\Spool (and all the sub-folders and files)
2.) %systemroot%\SoftwareDistribution\Datastore
Refer to the following article for information:
KB822158 - Virus scanning recommendations for computers that are running Windows Server 2003, Windows 2000, or Windows XP http://support.microsoft.com/kb/822158
3.) Any Network Drives that are mapped.
Consider the following file scanning exceptions for your Anti-Virus software where applicable:
NOTE: The %systemroot% is normally the C:\WINDOWS or C:\WINNT directory depending on your OS.
NOTE: the %systemroot% variable will not work as an exclusion for some OSs. So make sure to spell out full path in your exclusion files (GPO or via AntiVirus Server)
1.) %systemroot%\System32\Spool (and all the sub-folders and files)
2.) %systemroot%\SoftwareDistribution\Datastore
Refer to the following article for information:
KB822158 - Virus scanning recommendations for computers that are running Windows Server 2003, Windows 2000, or Windows XP http://support.microsoft.com/kb/822158
3.) Any Network Drives that are mapped.
2011/04/25
Use PowerShell to Identify Non-Standard Windows Service Accounts
Source:Expert Solution for the 2011 Scripting Games Beginner Event 4
<#
.SYNOPSIS
Identifies services with nonstandard accounts
.DESCRIPTION
Retrieves services that use accounts other than LocalSystem, LocalService or NetworkService
.PARAMETER computername
one or more computernames or IP addresses
you will need local administrator privileges, and the firewall needs to allow access
to enable firewall access, run this command on target machines:
netsh firewall set service type = remoteadmin mode = enable
.EXAMPLE
Get-NonstandardService
lists services with nonstandard accounts on local machine
.EXAMPLE
Get-NonstandardService -computername 10.10.10.33
lists services with nonstandard accounts on remote machine with IP 10.10.10.33
.EXAMPLE
Get-NonstandardService -computername 10.10.10.33, 127.0.0.1, serv12-1, client3
lists services with nonstandard accounts on four machines (including local system)
.LINK
http://www.powershell.com
#>
function Get-NonstandardService {
param(
[String[]]
$computername = '127.0.0.1'
)
# server-side WMI query to minimize network traffic and maximize performance
$wql = 'Select Name, DisplayName, StartName, __Server From Win32_Service WHERE ((StartName != "LocalSystem") and (StartName != "NT Authority\\LocalService") and (StartName != "NT Authority\\NetworkService"))'
# examine all computers submitted:
$computername |
ForEach-Object {
Write-Progress 'examining computer:' $_
# create new object to return information
$rv = New-Object PSObject | Select-Object Computer, Result, Name, DisplayName
$rv.computer = $_
# search for nonstandard services
try {
# always return result as array
$result = @(Get-WmiObject -Query $wql -ComputerName $rv.computer -ErrorAction Stop | Sort-Object DisplayName)
# no results?
if ($result.Count -eq 0) {
# then all services use standard accounts, good:
$rv.Result = 'OK'
$rv
} else {
# return a result set for each nonstandard service
$result | ForEach-Object {
$rv.Computer = $_.__Server
$rv.Name = $_.Name
$rv.DisplayName = $_.DisplayName
$rv.Result = $_.StartName
$rv
}
}
}
catch {
# WMI was unable to retrieve the information
switch ($_) {
# sort out most common errors and return qualified information
{ $_.Exception.ErrorCode -eq 0x800706ba} { $rv.Result = 'WARN: Unavailable (offline, firewall)' }
{ $_.CategoryInfo.Reason -eq 'UnauthorizedAccessException' } { $rv.Result = 'WARN: Access denied' }
# return all other non-common errors
default { $rv.Result = 'WARN: ' + $_.Exception.Message }
}
# return error information
$rv
}
}
}
Subscribe to:
Posts (Atom)



