Skip navigation

Windows Tips & Tricks UPDATE, January 8, 2006--Windows PowerShell Documentation

Subscribe to Windows IT Pro: https://store.pentontech.com/index.cfm?s=1&promocode=eu205xxL

====================

THESE COMPANIES HELP BRING YOU WINDOWS TIPS & TRICKS UPDATE FREE OF CHARGE.

Download a Tool that will Benefit any Sys Admin http://www.tntsoftware.com/010806wintips

NETWORK TESTING LABS COMPARES ARGENT TO MOM 2005 http://www.argent.com/w/whitepapers_mom.html?Source=WNT

7 Vista Tips and Tricks http://www.windowsitpro.com/go/essential/symantec/vistatricks/?code=T&Thot0108

==== Sponsor: TNT Software ====

Download a Tool that will Benefit any Sys Admin Are you searching for an affordable real-time monitoring toolset that will support your proactive system management objectives? Start NOW and download ELM Enterprise Manager from TNT Software. Within an hour, you will experience for yourself why ELM is recognized as the tool that will benefit any System Administrator. Before the 30 Day full feature trial is completed, the Monitoring, Alerting and Reporting will have saved you time and provided you the data for prompt corrective action. Be Proactive; and download ELM Enterprise Manager from the link below: http://www.tntsoftware.com/010806wintips

====================

FAQs
Q. Where can I find documentation about Windows PowerShell 1.0?
Q. How can I programmatically get the GUID of my machine? Q. What's the best way to add applications to a Microsoft Vista image?
Q. How can I easily start a program in elevated permission mode?

==== Sponsor: Argent Software ====

NETWORK TESTING LABS COMPARES ARGENT TO MOM 2005 Network Testing Labs, one of the world's leading independent research companies, concluded that "Argent's suite had a smaller footprint, was more scalable, supported more platforms, had a more responsive and intuitive user interface and gave us more useful reports," the report says. "Argent's suite of monitoring products emerged from our testing with flying colors."

Download this FREE Comparison Paper now: http://www.argent.com/w/whitepapers_mom.html?Source=WNT

====================

==== FAQs ====
by John Savill, FAQ Editor, [email protected]

Q. Where can I find documentation about Windows PowerShell 1.0?

A. Microsoft has released the PowerShell 1.0 documentation pack which is available for download at http://www.microsoft.com/downloads/details.aspx?FamilyId=B4720B00-9A66-430F-BD56-EC48BFCA154F&displaylang=en . It consists of these components:
- A getting started guide that goes over the basics of the PowerShell and some of the most common tasks you'll perform
- A foldable quick reference guide that gives basic information about the syntax and PowerShell commands
- A full user guide
- Release notes

After reading the getting started guide and the quick reference guide, you can really hit the ground running.

--------------------

Q. How can I programmatically get the GUID of my machine?

A. You can use the uuID attributes of the Win32_ComputerSystemProduct class to retrieve the machine's GUID, which is read from the BIOS, as the following sample code shows:

strComputer ="."

' --------------------------------------------
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery ("SELECT * FROM Win32_ComputerSystemProduct")

' On Error Resume Next
For Each objComputer In colItems Wscript.Echo "uuID: " & objComputer.uuID Next

WScript.Quit

For example:

D:\temp>cscript getuuid.vbs

produces the following result:

uuID: 4C4C4544-0051-5810-8039-B6C04F533931

--------------------

Q. What's the best way to add applications to a Microsoft Vista image?

A. As with previous deployment technologies, you can install applications onto a reference machine and capture the reference machine to an image that can then be installed to target machines. However, there are pros and cons to this approach.

With Vista, we have powerful facilities to mount the Windows Image (WIM) format images and modify files within the image, so we have two options:
1. Install applications onto a reference machine, then capture it to a WIM file.
2. Use the standard Vista WIM image from the media, mount the WIM file, and copy the installation files for the applications to the WIM file. When the WIM file is deployed, the local application installation files execute to install the applications

Although option 1 has the applications available straight away, once the image is deployed, it has a maintenance disadvantage: When you update an application, you can't slipstream the application fix into the image. With option 2, when a fix or update is available, you copy the files to the WIM image so future deployments have the update with no need to recreate a reference machine, apply the update, then recapture the WIM file.

Use whichever option works best in your environment, but don't forget options beyond putting applications in the deployment image. Combination solutions such as using WIM files for the OS deployment and Microsoft Systems Management Server (SMS) to deploy applications is often the best solution.

--------------------

Q. How can I easily start a program in elevated permission mode?

A. You can usually start a program with elevated privileges by right-clicking the application and selecting "Run as Administrator" from its context menu. Alternatively, you can start an application from the Search menu and press Ctrl+Shift+Enter to execute in elevated mode. For example, in Search, type cmd (for command prompt), and press Ctrl+Shift+Enter. You'll be prompted to confirm to run with elevated credentials and when you do, you'll have an elevated command prompt.

--------------------

==== Hot Release ====

7 Vista Tips and Tricks Getting started with Vista? Learn 7 key tips and tricks for Vista, including such tidbits as its hardware requirements, upgrade paths, taskbar thumbnail descriptions, and more! Download our free guide now!

http://www.windowsitpro.com/go/essential/symantec/vistatricks/?code=T&Thot0108

==== Events and Resources ==== http://www.windowsitpro.com/events

Prevent installation and execution of unauthorized software on the computers on your network. Download this free white paper today for a comparison of techniques for detecting and preventing unauthorized code. Protect against emerging risks today!
http://www.windowsitpro.com/go/whitepapers/bit9/lockdown/?code=0108er

Discover a wealth of information about how to protect and secure your data in the event of a disaster. You might not be able to predict disasters, but you can be prepared with a solid response when one strikes. Disaster can strike anywhere, so make sure you're ready when it does. Download your free copy of this eBook today!
http://www.windowsitpro.com/go/ebooks/ca/disaster/?code=0108er

Do you have visibility and control over your software licenses? Most organizations face serious challenges, including understanding vendor licensing models, cost overruns, missed deadlines and business opportunities, and lost user productivity. Learn to address these challenges and prepare for audits. Register for this free on-demand Web seminar, available now!
http://www.windowsitpro.com/go/seminars/macrovision/softwarelicensing/?partnerref=0108er

==== Featured White Paper ====

Branch offices need flexibility and autonomy in implementing IT solutions; corporate requirements call for centralized management, security, and compliance. Learn to resolve these conflicts and reduce operational costs for branch offices with limited IT resources. Download this free white paper today!
http://www.windowsitpro.com/go/whitepapers/microsoft/branchoffice/?code=0108featwp

===== Announcements ====

Ring in the New Year with SQL Server Magazine Don't miss SQL Server Magazine in 2007! As a subscriber, you'll have full access to must-have coverage of high availability, SQL Server & Office integration, business intelligence, clustering, reporting services, and much more. Order now and save 58% off the cover price:
https://store.pentontech.com/index.cfm?s=9&promocode=eu216cus

Vote for the Next IT Pro of the Month! Your vote counts! Take the time to reward excellence in a deserving IT pro. The first 100 readers to cast a vote will receive a one-year subscription to Windows IT Pro, compliments of Microsoft. Voting takes only a few seconds, so don't miss out. Cast your vote now at http://www.windowsitpro.com/go/itpromonth

====================

==== Contact Us ====

About the newsletter -- [email protected] About technical questions -- http://www.windowsitpro.com/forums About product news -- [email protected] About your subscription -- [email protected] About sponsoring UPDATE-- [email protected]

====================

This email newsletter is brought to you by Windows IT Pro, the leading publication for IT professionals deploying Windows and related technologies. Subscribe today.
https://store.pentontech.com/index.cfm?s=1&promocode=eu205xxb

Make sure your copy of Windows Tips & Tricks UPDATE isn't mistakenly blocked by antispam software! Be sure to add [email protected] to your list of allowed senders and contacts.

Manage Your Account You are subscribed as %%$email%%

You are receiving this email message because you subscribed to this newsletter on our Web site. To unsubscribe, click the unsubscribe link:

http://list.windowsitpro.com/u?id=%%SUBSCRIBER_ID_TAG%%

View the Windows IT Pro Privacy policy at http://www.windowsitpro.com/AboutUs/Index.cfm?action=privacy

Windows IT Pro, a division of Penton Media, Inc. 221 East 29th Street, Loveland, CO 80538, Attention: Customer Service Department

Copyright 2007, Penton Media, Inc. All Rights Reserved.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish