password
username
Sponsored by CakeMail, an email marketing software.
Newsletter preview

Windows Tips & Tricks UPDATE
May 19, 2008
Forums Articles Blogs Events Resources Our Publications
IN THIS ISSUE
- Q. Can I make a partition larger than 2TB?
- Q. Why do I get logon errors while I migrate Windows Vista SP1 boxes to a new domain?
- Q. How can I use Windows PowerShell to update a file's media tags?
- Q. Can I keep a log of all the actions in a Windows PowerShell session?
- Q. How can I use the command line to configure iSCSI connections?
- Vote in the 2008 Windows IT Pro Community Choice Awards!
- Best Practices in Virtualization
- Gain Enhanced Insight Into and Control Over Your IT Systems
- So You Think You're Compliant . . . .
- Guide to Log Management: Comparing On-Premise and On-Demand Solutions
- Rev Up Your IT Know-How with Our Recharged Magazine!
- EXCHANGE 2007 Mastery Series -- May 29, 2008
- Windows IT Pro Master CD: Take the Experts with You!

SPONSORS

How to Archive Effectively, Be Compliant, and Save Money

Data Protection and Disaster Recovery Tips

Sponsor

GFI

How to Archive Effectively, Be Compliant, and Save Money

Compliance is a hot topic in the IT world, but it’s a broad topic too. Focusing on individual parts of the compliance elephant can be a good way to start. Archiving email is often desirable or even necessary, even for companies that don’t have explicit compliance requirements. In this web seminar, Paul Robichaux will describe how archiving strategies can help your business work more effectively and keep IT operating costs under control— while still preserving quick access to needed data.

www.windowsitpro.com/go/GFI/Compliance/?partnerref=t&ttop0519


Articles




Q. Can I make a partition larger than 2TB?
by John Savill

5.12.08
   

A. Yes, the Master Boot Record (MBR) format can support partitions as large as 2TB. However, the GUID partition table (GPT) disk type can support partitions far larger than 2TB and support as many as 128 primary partitions. The MBR format can support only four.

Windows Server 2003 (both 32-bit and 64-bit) and Windows 2003 x64 Editions support only GPT partitions as a data volume. Itanium computers support GPT for both boot and data volumes. Windows Vista and Windows Server 2008 (both 32-bit and 64-bit) support GPT disks with Extensible Firmware Interface (EFI)-based systems capable of booting from an EFI volume. Windows 2000 and prior Windows' versions won’t recognize GPT disks.

Microsoft has a GPT FAQ at Windows and GPT FAQ.






Q. Why do I get logon errors while I migrate Windows Vista SP1 boxes to a new domain?
by John Savill

5.13.08
   

A. I recently had a client in the middle of a domain migration and started to upgrade some Vista machines to SP1. After migrating the SP1 machines to the new domain, the computers couldn’t log on, and the screen displayed the error message The security database on the server does not have a computer account for this workstation trust relationship.

This is usually caused by Vista SP1's security changes and the computer DNS suffix not matching the new domain name. To match a computer's DNS suffix to the new domain name, add the workstation's Service Principal Name (SPN) in Active Directory (AD) using the following steps:

  1. Start adsiedit.msc by opening the Start menu, selecting Run, entering adsiedit.msc, then pressing Enter.
  2. Browse the domain partition, and select the machine to which you want to add the new SPN.
  3. Right-click the machine account, and select Properties.
  4. Double-click ServicePrincipleName.
  5. Add the new value with the format HOST/Client_mahine. and press Add, as Figure 1 shows.
  6. Click Apply, and press Enter.
To make the change for an entire domain, use the following steps:
  1. Start adsiedit.msc.
  2. Browse the domain partition, right-click the domain, and select Properties.
  3. Click msDS-AllowedDNSSuffixes.
  4. Add the suffixes for the old domain and the new domain, then click OK.
  5. Close adsiedit.msc.







Q. How can I use Windows PowerShell to update a file's media tags?
by John Savill

5.14.08
   

A. When I recently reviewed my music library, I found I had a lot of music videos, which I'd used the naming format <artist>-<song>.wmv. I also found that the files' media tags were blank, so if I tried to view the videos with Windows Media Player (WMP), I would just see blank names. I wanted to automate the media tag population in PowerShell through the filename but couldn't work out how to update the title and performer media tags.

Then I ran across a tag library at http://developer.novell.com/wiki/index.php/TagLib_Sharp that allows access to various languages' media tags. I downloaded the tag library and saved it to my computer. Then I wrote the code

[Reflection.Assembly]::LoadFile("D:\Programs\taglib-sharp-1.9.75474-net20\Release\taglib-sharp.dll")
cd "D:\Multimedia\Film\Music Videos"
foreach ($f in dir)
{
$mediafile = [TagLib.File]::Create(“D:\Multimedia\Film\Music Videos\” + $f.ToString())
$splitName = $f.Name.Split(”-.")
write-host $splitname[0] $splitname[1]
$mediafile.Tag.Title = $splitname[0] + "-" + $splitname[1]
$mediafile.Tag.Performers = $splitname[0]
$mediafile.Save()
}

to parse my music-video folder files and populate the tags accordingly. Obviously, you can change how the script works and what it populates, but this script will give you a good start. You need to modify the script's first line (at minimum) to show where you saved the taglib DLL.

Once I executed the script, all my media files' title and performer tags were populated.






Q. Can I keep a log of all the actions in a Windows PowerShell session?
by John Savill

5.15.08
   

A. Yes, PowerShell can create a transcript of all session activity through the transcript cmdlets.

To start logging session information, execute the Start-Transcript command, run the commands you want to capture, then run the Stop-Transcript command. By default, PowerShell will store the transcripts in a Users\\Documents\PowerShell_transcript.<datetime>.txt folder. You can specify a different file by passing the new filename to the Start-Transcript command. The following code shows how to use the transcript cmdlets to create and store a PowerShell session transcript. The first command I entered was:

Users\john> Start-Transcript

The output was:

Transcript started, output file is C:\Users\john\Documents\PowerShell_transcript.20080504100855.txt

Then I entered:

Users\john> get-process w*

The output was:

Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
103 8 1932 5140 60 0.17 584 wininit
130 7 3092 7456 62 0.39 772 winlogon
938 47 27140 33196 168 2.65 2412 winss
136 12 5236 9020 85 0.39 4040 winssnotify
262 16 5432 9988 85 0.14 4784 WLLoginProxy
123 8 3744 7024 47 0.05 2200 WmiPrvSE
127 7 4004 8044 47 0.11 2956 WmiPrvSE
866 54 46980 69544 221 29.87 4816 wmplayer

Next I entered:

Users\john> date

The output was:

Sunday, May 04, 2008 10:09:23 AM

Then I entered:

Users\john> stop-transcript

The output was:

Transcript stopped, output file is C:\Users\john\Documents\PowerShell_transcript.20080504100855.txt

Next I entered:

Users\john> type
C:\Users\john\Documents\PowerShell_transcript.20080504100855.txt

The output was:

**********************
Windows PowerShell Transcript Start
Start time: 20080504100855
Username : SAVILLTECH\john
Machine : SAVDALWKS20 (Microsoft Windows NT 6.0.6001 Service Pack 1)
**********************
Transcript started, output file is C:\Users\john\Documents\PowerShell_transcript.20080504100855.txt

Then I entered:

Users\john> get-process w*

The output was:

Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
103 8 1932 5140 60 0.17 584 wininit
130 7 3092 7456 62 0.39 772 winlogon
938 47 27140 33196 168 2.65 2412 winss
136 12 5236 9020 85 0.39 4040 winssnotify
262 16 5432 9988 85 0.14 4784 WLLoginProxy
123 8 3744 7024 47 0.05 2200 WmiPrvSE
127 7 4004 8044 47 0.11 2956 WmiPrvSE
866 54 46980 69544 221 29.87 4816 wmplayer

Next I entered:

Users\john> date

The output was:

Sunday, May 04, 2008 10:09:23 AM

Next I entered:

Users\john> stop-transcript

The output was:

**********************
Windows PowerShell Transcript End
End time: 20080504100927
**********************







Q. How can I use the command line to configure iSCSI connections?
by John Savill

5.16.08
   

A. I recently had a client who tried to use iSCSI to connect Server Core to SAN storage but couldn't get it to work without the iSCSI Initiator Control Panel applet. You can use the Iscsicli command-line interface to manage iSCSI. The first thing you need to do is enable iSCSI service and set it to start automatically, as you’ll see in the following code and corresponding output. The first command I entered was:

Users\john>sc config msiscsi start= auto

The output was:

[SC] ChangeServiceConfig SUCCESS

Then I entered:

Users\john>net start msiscsi

The output was:

The Microsoft iSCSI Initiator Service service is starting.
The Microsoft iSCSI Initiator Service service was started successfully.

Then, you use the Iscsicli command-line interface to connect to an iSCSI Target and list the available targets. The command I entered was:

Users\john>iscsicli QAddTargetPortal 192.168.1.31

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

The operation completed successfully.

Next I entered:

Users\john>iscsicli ListTargets

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

Targets List:
quorum
data
The operation completed successfully.

You can then connect to a target using the following code as an example:

Users\john>iscsicli qlogintarget data

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

Session Id is 0xfffffa800626e018-0x4000013700000006
Connection Id is 0xfffffa800626e018-0x5
The operation completed successfully.

The following code checked to make sure the operation was successful:

Users\john>iscsicli reporttargetmappings

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

Total of 1 mappings returned
Session Id : fffffa800626e018-4000013700000006
Target Name : data
Initiator : Root\ISCSIPRT\0000_0
Initiator Scsi Device : \\.\Scsi4:
Initiator Bus : 0
Initiator Target Id : 0
Target Lun: 0x0 <--> OS Lun: 0x0

The operation completed successfully.

You log out by using the logouttarget switch with the session ID, as the following sample code shows:

Users\john>iscsicli logouttarget
fffffa800626e018-4000013700000006

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

The operation completed successfully.

To confirm the operation was successful, I entered the following code:

Users\john>iscsicli reporttargetmappings

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

No Mappings
The operation completed successfully.

The mappings obtained through the qlogintarget command aren’t persistent and will be lost at reboot. If you want a persistent connection, use the perssitenlogintarget switch, as the following code shows:

Users\john>iscsicli persistentlogintarget data T * * * * * * * * *
* * * * * * 0

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

The operation completed successfully.

To confirm that the operation was successful, I entered:

Users\john>iscsicli listpersistenttargets

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

Total of 1 peristent targets
Target Name : data
Address and Socket : 192.168.1.31 3260
Session Type : Data
Initiator Name : Root\ISCSIPRT\0000_0
Port Number :
++Security Flags : 0x0
++Version : 0
++Information Specified: 0x20
++Login Flags : 0x8
++Username :

The operation completed successfully.

Entering T * * * * * * * * * * * * * * * 0 specifies all the required switches. To remove a persistent target, apply the information obtained from the listpersistentargets command using the following code as an example:

Users\john>iscsicli removepersistenttarget Root\ISCSIPRT\0000_0
data * 192.168.1.31 3260

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

The operation completed successfully.

To confirm the success of the operation, I entered:

Users\john>iscsicli listpersistenttargets

The output was:

Microsoft iSCSI Initiator Version 6.0 Build 6000

Total of 0 peristent targets
The operation completed successfully.

You'll notice that I passed the initiator name first, then the target name, the port number (which is *), and last of all the iSCSI target server IP address and socket.




Sponsor

CA

Data Protection and Disaster Recovery Tips

Discover a wealth of information about how to protect and secure your data in the event of a disaster. You may not be able to predict the exact details of a disaster, but you can be prepared with a solid response for when one strikes. Disaster can strike anywhere – not just where severe weather can hit – so make sure you’re ready when it does.

www.windowsitpro.com/go/ebooks/ca/disaster/?code=t&tmid0519



Events & Resources




Vote in the 2008 Windows IT Pro Community Choice Awards!

Final voting for the Windows IT Pro Community Choice Awards is now open! Voting in this awards program is open to all Windows IT Pro Web site visitors, but vendors whose products are nominated are prohibited from voting. Click on the link below to enter the voting tool:

Windows IT Pro - Community Choice Awards

Voting will close on May 23rd, 2008 at 11:45pm MST.






Best Practices in Virtualization

Are you considering virtualizing your environment? This white paper examines the value of four types of virtualization software and discusses the challenges of managing mixed environments. It also includes a case study of a company moving to integrated management of virtual and physical machines. Understand the problems they faced and how virtualization solved those problems.
http://www.windowsitpro.com/go/wp/kace/virtualization/?code=051408er







Gain Enhanced Insight Into and Control Over Your IT Systems

Microsoft System Center Configuration Manager 2007 shipped recently. System Center Configuration Manager 2007 is the solution to comprehensively assess, deploy and update your servers, clients, and devices - across physical, virtual, distributed and mobile environments. View this web seminar for the latest and greatest features and product enhancements in the Systems Center Configuration Manager SP1 and R2.
http://windowsitpro.com/Downloads/Index.cfm?fuseaction=ShowDownload&uuid=af2d59de-1461-478a-827f-0b6963d64478&code=051408er







So You Think You're Compliant . . . .

According to Gartner, 30 percent of enterprises will experience at least one audit per year. There's no way for you to be entirely sure that your organization is in compliance with software regulations. Join this Web seminar to learn all about a new solution that can help you avoid audits, control licenses, maximize key user productivity, and more.
http://www.windowsitpro.com/go/seminars/macrovision/softwareregulations/?partnerref=51408e&r





Featured White Paper




Guide to Log Management: Comparing On-Premise and On-Demand Solutions

In the last five years both governmental and industry specific regulations have included log management as a required control within an infrastructure. This white paper examines and compares two methods to log management. Choosing a solution for something as complex and critical as log management is difficult and requires careful consideration. Read this paper today!
http://www.windowsitpro.com/Whitepapers/Index.cfm?fuseaction=ShowWP&WPID=96231bb9-0985-4d4b-96c9-b6f357a89e09&code=051408er





Announcements




Rev Up Your IT Know-How with Our Recharged Magazine!

The improved Windows IT Pro magazine is packed with trusted content and enhanced with a fresh new look! Subscribe today to:
  • Stay ahead of industry trends with comprehensive coverage of topics such as Vista, virtualization, and more
  • Solve tough technical problems with advice from veteran IT experts such as Guido Grillenmeier and Mark Minasi
  • Find real-world solutions easily with fast facts and quick tips
https://store.pentontech.com/index.cfm?s=9&promocode=EU2085R1&







EXCHANGE 2007 Mastery Series -- May 29, 2008

3 information-packed eLearning seminars for only $99! Hosted by Windows IT Pro

Join Mark Arnold, MCSE+M and Microsoft MVP, as he coaches you through server management in Exchange 2007:

  • Learn the Pros and Cons of Your Mailbox High-Availability Options
  • See Real-World Examples of Transport Rules You Can Implement in Your Environment
  • Windows PowerShell: Get Started with Basic Commands
For more information and to register, go to
http://windowsitpro.com/elearning/index.cfm?fuseaction=dynamic&v=5119&p=5161&code=&eventid=29&code=update







Windows IT Pro Master CD: Take the Experts with You!

Find the solutions you need within the thousands of searchable articles, helpful bonus content, and loads of expert advice on the Windows IT Pro Master CD.

A Master CD subscription buys you portable access to the entire Windows IT Pro article database plus exclusive access to all the new articles we publish only on WindowsITPro.com every day. It's like having a team of consultants in your pocket! Get real-world solutions fast -- order the Windows IT Pro Master CD today.
https://store.pentontech.com/index.cfm?s=1&promocode=EU2284WC&





If you use a product that has made a tremendous impact in your organization and is a product that you can't live without, tell us about it at whatshot@windowsitpro.com and we'll feature your review in a future issue of the magazine, under the "What's Hot" section.

Contact Us
==== Contact Us ====

About the newsletter -- letters@windowsitpro.com
About technical questions -- Technical Questions
About product news -- products@windowsitpro.com
About your subscription -- tipsandtricks@windowsitpro.com
About sponsoring UPDATE-- salesopps@windowsitpro.com

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

This email newsletter is brought to you by Windows IT Pro, the leading publication for IT professionals deploying Windows and related technologies. Subscribe today.
Subscribe

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

Manage Your Account

You are subscribed as tayllorcriss@gmail.com

You are receiving this email message because you subscribed to this
newsletter on our Web site. To manage your subscription click here.

To ***: click here

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 2008, Penton Media, Inc. All Rights Reserved.