Monthly Archives: November 2012

Redirect output from powershell script

powershell.exe -version 2  -noexit -command “& {D:\Scripts\Psh\Examples\NTFSGroupsSimpleV2.ps1 | out-file -FilePath c:\temp\text.txt}”

Epos – A Free Text to Speech Synthesis System

Epos – A Free Text to Speech Synthesis System.

Epos is a language independent rule-driven Text-to-Speech (TTS) system primarily designed to serve as a research tool. Epos is (or tries to be) independent of the language processed, linguistic description method, and computing environment.

Informace o TTS systému Epos v českém jazyce.

About Epos

Stable version 2.4.85 and development version 2.5.37 is now available for research, educational and individual use for free. It has the following features

  • Czech and Slovak text to speech synthesis configuration
  • LPC and time domain speech synthesizers
  • Prosody modelling driven by rules, prosody models and artificial neural networks
  • All languange dependencies are defined in the configuration files, as opposed to the source code
  • Documentation in English included in the distribution

PowerShell v3 – Creating Objects With [pscustomobject] – it’s fast! @ Jonathan Medd’s Blog

PowerShell v3 – Creating Objects With [pscustomobject] – it’s fast! @ Jonathan Medd’s Blog.

How to View / Disconnect Remote Desktop Sessions from Commandline

in an elevated command prompt

to query:
qwinsta /server:servername

or

query session /server:servername
to disconnect:
rwinsta /server:servername SessionID
( for example: rwinsta /server:servername 3)

or

reset session SESSIONID /server:servername

SessionID is the ID that yout query had produced

Missing the WDS (Windows Deployment Services) snapin from RSAT on Windows Vista? – Windows Server (2008 R2) blog by Kurt Roggen [BE]

Missing the WDS (Windows Deployment Services) snapin from RSAT on Windows Vista? – Windows Server (2008 R2) blog by Kurt Roggen [BE].

Automate BIOS configuration for HP clients

First install the HP CMI Interface providers. It’s an exe file that extract itself in a path of your choice (C:\Program Files\Hewlett-Packard\HPProviderUtilities beeing the default) as a HPCMIProviders.msi. For some reason on my laptop it would  not install by just double-clicking the msi (or right-clicking and then clicking Install in the context menu). The following command installed the msi package fine though

msiexec.exe /i "C:\SwSetup\sp38117\HPCMIProviders.msi" /qn REINSTALLMODE=vomus REINSTALL=ALL

Then open Powershell and run this command for a list of available settings:
 Get-WmiObject HP_BIOSSetting -Namespace "root\HP\InstrumentedBIOS" | Format-Table -AutoSize -Property Name, Value 

the same the V3 way:

 Get-CimInstance -ClassName HP_BIOSSetting -Namespace "root\HP\InstrumentedBIOS" | Format-Table -AutoSize -Property Name, Value 
Determine if  computer setup password is set:
 if (gwmi HP_BIOSPassword -Namespace "root\HP\InstrumentedBIOS" -Filter "Name = 'Setup Password' AND IsSet = 1") {"setup password set"} else {"setup password not set"} 
Determine and set the Numlock state at boot property in setup
Get-CimInstance -ClassName hp_biossetting -Namespace "root\hp\instrumentedbios" | where name -eq "Numlock state at boot"

DisplayInUI              : 1
IsReadOnly               : 0
Name                     : Numlock state at boot
Path                     : \System Configuration\Device Configurations
Prerequisites            : { ,  ,  }
PrerequisiteSize         : 3
RequiresPhysicalPresence : 0
SecurityLevel            : 2
Sequence                 : 315
Value                    :   On, *Off
CurrentValue             : Off
PossibleValues           : {On, Off,  ,  …}
Size                     : 12
Active                   : True
InstanceName             : ACPI\PNP0C14_61
PSComputerName           :

 $s = gwmi -class hp_biossettinginterface -Namespace "root\hp\instrumentedbios"
 $s.SetBIOSSetting("Numlock state at boot","On","")

__GENUS          : 2
__CLASS          : __PARAMETERS
__SUPERCLASS     :
__DYNASTY        : __PARAMETERS
__RELPATH        :
__PROPERTY_COUNT : 1
__DERIVATION     : {}
__SERVER         :
__NAMESPACE      :
__PATH           :
Return           : 0
PSComputerName   :

Zero in the returned object Return property means the change went OK

ADMIN PS> Get-CimInstance -ClassName hp_biossetting -Namespace "root\hp\instrumentedbios" | where name -eq "Numlock state at boot"

DisplayInUI              : 1
IsReadOnly               : 0
Name                     : Numlock state at boot
Path                     : \System Configuration\Device Configurations
Prerequisites            : { ,  ,  }
PrerequisiteSize         : 3
RequiresPhysicalPresence : 0
SecurityLevel            : 2
Sequence                 : 315
Value                    :  *On, Off
CurrentValue             : On
PossibleValues           : {On, Off,  ,  …}
Size                     : 12
Active                   : True
InstanceName             : ACPI\PNP0C14_61
PSComputerName           :

U may find useful also the HP CMI Administrator Toolkit which extracts itself into path “C:\Program Files\Hewlett-Packard\HPProviderUtilities\HPCMIUtilities.msi” as a msi package. You need to doubleclick it to install itself into the same path. It contains few simple samples and utilities.

Explanation of some of the most usefull values used when talking to HP support

Serial Number An identifier unique to the individual computer. The product number, along with the serial number, are the two most important pieces of information that you can give to a customer service agent when contacting HP.
Product Name The model name of the computer.
Product Number/SKU Number An identifier unique to this product line. Use this number to find product specification information and updated drivers on HP.com. The SKU number, along with the serial number, are the two most important pieces of information you can give to a customer service agent when contacting HP. The SKU number (also known as the product number) usually follows a format similar to 12345#aba.
Warranty Start Date The start date of the warranty for the computer. If the computer was manufactured prior to 2008, the warranty start date may be called a Service ID for your particular model.If the warranty start date is different from what you expected to see, note that this date is set the first time that you start up the computer. Your receipt is always the final proof of purchase for warranty services.
Service ID This field may be empty. IT departments in some companies use these numbers to keep track of the many computers they manage.

Sources:
Automate BIOS configuration for HP clients « Anything about IT.

http://h20331.www2.hp.com/Hpsub/cache/284014-0-0-225-121.html?jumpid=reg_R1002_USEN

 

HP Client Management Interface Technical Whitepaper HP Client Management Interface Provider for Monitors HP Backup and Recovery Instrumentation HP Client Management Interface Provider for Plug and Play Devices

OMCI Sample Scripts – Systems Management – Wiki – Systems Management – Dell Community

OMCI Sample Scripts – Systems Management – Wiki – Systems Management – Dell Community.

smsagent

Tips, tricks and time-savers for the Windows and ConfigMgr administrator

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?