Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Best Reference

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 11-20-2007   #1 (permalink)
Bob
Guest


 

Best Reference

I am just starting to use powershell and what better way to learn than with
a real problem to solve.

We have just taken delivery of a large number of new workstations.

XP SP 2 has been installed on them, but only 30GB of 700GB has been
allocated to the C: drive

I want to create an E: drive in the unpartioned space on the drive

Where can I found out how to do this?

What is the best book to look in to learn this great tool

Thanks Heaps

Bob



My System SpecsSystem Spec
Old 11-20-2007   #2 (permalink)
Shay Levi
Guest


 

Re: Best Reference

You can script DISKPART.exe. It's installed by default on XP machines. I
did some scripting on it before.
I'll try to find it and post it here.

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com


Quote:

> I am just starting to use powershell and what better way to learn than
> with a real problem to solve.
>
> We have just taken delivery of a large number of new workstations.
>
> XP SP 2 has been installed on them, but only 30GB of 700GB has been
> allocated to the C: drive
>
> I want to create an E: drive in the unpartioned space on the drive
>
> Where can I found out how to do this?
>
> What is the best book to look in to learn this great tool
>
> Thanks Heaps
>
> Bob
>

My System SpecsSystem Spec
Old 11-20-2007   #3 (permalink)
Shay Levi
Guest


 

Re: Best Reference

You can take a look here:

Using Diskpart to create, extend or delete a disk partition
http://searchwincomputing.techtarget...241594,00.html

One thing this article doesn't mention is that you can write all diskpart
command in a text file (one command per line) and
use it as an input file to diskpart.exe:


#### diskpart.txt #####
CREATE PARTITION PRIMARY
ASSIGN LETTER=E
EXIT


diskpart.exe < diskpart.txt

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com


Quote:

> You can script DISKPART.exe. It's installed by default on XP machines.
> I
> did some scripting on it before.
> I'll try to find it and post it here.
> -----
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
Quote:

>> I am just starting to use powershell and what better way to learn
>> than with a real problem to solve.
>>
>> We have just taken delivery of a large number of new workstations.
>>
>> XP SP 2 has been installed on them, but only 30GB of 700GB has been
>> allocated to the C: drive
>>
>> I want to create an E: drive in the unpartioned space on the drive
>>
>> Where can I found out how to do this?
>>
>> What is the best book to look in to learn this great tool
>>
>> Thanks Heaps
>>
>> Bob
>>

My System SpecsSystem Spec
Old 11-21-2007   #4 (permalink)
Bob
Guest


 

Re: Best Reference

Thank-you
"Shay Levi" <no@xxxxxx> wrote in message
news:8766a944de1e8c9f9830bbbd41a@xxxxxx
Quote:

> You can take a look here:
>
> Using Diskpart to create, extend or delete a disk partition
> http://searchwincomputing.techtarget...241594,00.html
>
> One thing this article doesn't mention is that you can write all diskpart
> command in a text file (one command per line) and
> use it as an input file to diskpart.exe:
>
>
> #### diskpart.txt #####
> CREATE PARTITION PRIMARY
> ASSIGN LETTER=E
> EXIT
>
>
> diskpart.exe < diskpart.txt
>
> -----
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>
>
>
Quote:

>> You can script DISKPART.exe. It's installed by default on XP machines.
>> I
>> did some scripting on it before.
>> I'll try to find it and post it here.
>> -----
>> Shay Levi
>> $cript Fanatic
>> http://scriptolog.blogspot.com
Quote:

>>> I am just starting to use powershell and what better way to learn
>>> than with a real problem to solve.
>>>
>>> We have just taken delivery of a large number of new workstations.
>>>
>>> XP SP 2 has been installed on them, but only 30GB of 700GB has been
>>> allocated to the C: drive
>>>
>>> I want to create an E: drive in the unpartioned space on the drive
>>>
>>> Where can I found out how to do this?
>>>
>>> What is the best book to look in to learn this great tool
>>>
>>> Thanks Heaps
>>>
>>> Bob
>>>
>
>

My System SpecsSystem Spec
Old 11-21-2007   #5 (permalink)
Shay Levi
Guest


 

Re: Best Reference

You might also want to format the drive (assuming NTFS), test before executing
(use your own disk/partition numbers):

### SAMPLE ###

SELECT DISK 0
CREATE PARTITION PRIMARY
ASSIGN LETTER=E
SELECT PARTITION 1
FORMAT FS=NTFS LABEL="New Volume" QUICK
EXIT

Still trying to find my old diskpart scripts :-)

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com


Quote:

> Thank-you
> "Shay Levi" <no@xxxxxx> wrote in message
> news:8766a944de1e8c9f9830bbbd41a@xxxxxx
Quote:

>> You can take a look here:
>>
>> Using Diskpart to create, extend or delete a disk partition
>> http://searchwincomputing.techtarget...id68_gci124159
>> 4,00.html
>>
>> One thing this article doesn't mention is that you can write all
>> diskpart
>> command in a text file (one command per line) and
>> use it as an input file to diskpart.exe:
>> #### diskpart.txt #####
>> CREATE PARTITION PRIMARY
>> ASSIGN LETTER=E
>> EXIT
>> diskpart.exe < diskpart.txt
>>
>> -----
>> Shay Levi
>> $cript Fanatic
>> http://scriptolog.blogspot.com
Quote:

>>> You can script DISKPART.exe. It's installed by default on XP
>>> machines.
>>> I
>>> did some scripting on it before.
>>> I'll try to find it and post it here.
>>> -----
>>> Shay Levi
>>> $cript Fanatic
>>> http://scriptolog.blogspot.com
>>>> I am just starting to use powershell and what better way to learn
>>>> than with a real problem to solve.
>>>>
>>>> We have just taken delivery of a large number of new workstations.
>>>>
>>>> XP SP 2 has been installed on them, but only 30GB of 700GB has been
>>>> allocated to the C: drive
>>>>
>>>> I want to create an E: drive in the unpartioned space on the drive
>>>>
>>>> Where can I found out how to do this?
>>>>
>>>> What is the best book to look in to learn this great tool
>>>>
>>>> Thanks Heaps
>>>>
>>>> Bob
>>>>

My System SpecsSystem Spec
Old 11-21-2007   #6 (permalink)
RichS
Guest


 

Re: Best Reference

In terms of the best book. I would recommend Bruce Payette's PowerShell in
Action. As he was co-designer of the language he knows an awful lot about it
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Shay Levi" wrote:
Quote:

> You might also want to format the drive (assuming NTFS), test before executing
> (use your own disk/partition numbers):
>
> ### SAMPLE ###
>
> SELECT DISK 0
> CREATE PARTITION PRIMARY
> ASSIGN LETTER=E
> SELECT PARTITION 1
> FORMAT FS=NTFS LABEL="New Volume" QUICK
> EXIT
>
> Still trying to find my old diskpart scripts :-)
>
> -----
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>
>
>
Quote:

> > Thank-you
> > "Shay Levi" <no@xxxxxx> wrote in message
> > news:8766a944de1e8c9f9830bbbd41a@xxxxxx
Quote:

> >> You can take a look here:
> >>
> >> Using Diskpart to create, extend or delete a disk partition
> >> http://searchwincomputing.techtarget...id68_gci124159
> >> 4,00.html
> >>
> >> One thing this article doesn't mention is that you can write all
> >> diskpart
> >> command in a text file (one command per line) and
> >> use it as an input file to diskpart.exe:
> >> #### diskpart.txt #####
> >> CREATE PARTITION PRIMARY
> >> ASSIGN LETTER=E
> >> EXIT
> >> diskpart.exe < diskpart.txt
> >>
> >> -----
> >> Shay Levi
> >> $cript Fanatic
> >> http://scriptolog.blogspot.com
> >>> You can script DISKPART.exe. It's installed by default on XP
> >>> machines.
> >>> I
> >>> did some scripting on it before.
> >>> I'll try to find it and post it here.
> >>> -----
> >>> Shay Levi
> >>> $cript Fanatic
> >>> http://scriptolog.blogspot.com
> >>>> I am just starting to use powershell and what better way to learn
> >>>> than with a real problem to solve.
> >>>>
> >>>> We have just taken delivery of a large number of new workstations.
> >>>>
> >>>> XP SP 2 has been installed on them, but only 30GB of 700GB has been
> >>>> allocated to the C: drive
> >>>>
> >>>> I want to create an E: drive in the unpartioned space on the drive
> >>>>
> >>>> Where can I found out how to do this?
> >>>>
> >>>> What is the best book to look in to learn this great tool
> >>>>
> >>>> Thanks Heaps
> >>>>
> >>>> Bob
> >>>>
>
>
>
My System SpecsSystem Spec
Old 11-21-2007   #7 (permalink)
Keith Hill [MVP]
Guest


 

Re: Best Reference

"RichS" <RichS@xxxxxx> wrote in message
news:4BB90A27-85A3-4E78-8A96-F92D578AA1C6@xxxxxx
Quote:

> In terms of the best book. I would recommend Bruce Payette's PowerShell
> in
> Action. As he was co-designer of the language he knows an awful lot about
> it
I recommend this one also. It is my favorite PowerShell book at the moment
(haven't seen Lee Holmes' book yet).

--
Keith

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference Material Dwarf General Discussion 0 05-28-2008 02:39 PM
Gadget reference Premier Vista General 1 08-16-2007 11:24 PM
Best reference for .NET for use with PS Marco Shaw PowerShell 7 10-23-2006 01:40 PM


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008