Learn PowerShell Scripting in a Month of Lunches: Write and organize scripts and tools, 2nd Edition James Petty 2024 scribd download
Learn PowerShell Scripting in a Month of Lunches: Write and organize scripts and tools, 2nd Edition James Petty 2024 scribd download
com
https://textbookfull.com/product/learn-powershell-
scripting-in-a-month-of-lunches-write-and-
organize-scripts-and-tools-2nd-edition-james-
petty/
https://textbookfull.com/product/learn-windows-powershell-in-a-month-
of-lunches-donald-w-jones/
textbookfull.com
https://textbookfull.com/product/learn-windows-powershell-in-a-month-
of-lunches-third-edition-don-jones/
textbookfull.com
https://textbookfull.com/product/learn-linux-in-a-month-of-
lunches-1st-edition-steven-ovadia/
textbookfull.com
https://textbookfull.com/product/the-mahabharata-unabridged-
complete-10-volumes-for-kindle-bibek-debroy/
textbookfull.com
https://textbookfull.com/product/spring-security-robert-winch-mick-
knutson-peter-mularien/
textbookfull.com
https://textbookfull.com/product/investing-for-growth-1st-edition-
terry-smith/
textbookfull.com
https://textbookfull.com/product/structures-of-indifference-an-
indigenous-life-and-death-in-a-canadian-city-mary-jane-logan-mccallum/
textbookfull.com
Disney Princess Belle s Royal Wedding 1st Edition Andrea
Posner Sanchez
https://textbookfull.com/product/disney-princess-belle-s-royal-
wedding-1st-edition-andrea-posner-sanchez/
textbookfull.com
SECOND EDITION
LEARN
POWERSHELL
SCRIPTING
IN A MONTH OF LUNCHES
Write and organize scripts and tools
• Avoiding bugs
• Scripting language • Basic function
• Scripting environment • Advanced functions • Objects
• PowerShell pipeline • Script module • Filling out a manifest
• Parameter binding • .net framework
• Pipelines
• Errors
• Source control with git
• Comments
• Professional-grade
scripting
MANNING
Objectives of the Book
A great resource for those who want to create scripts for task automation.
Real-world examples, best practices, and tips from two of the most respected PowerShell MVPs.
It makes you stop and think, not just “read and nod.”
The book to read, if you want to become an informed expert in PowerShell Scripting.
MANNING
SHELTER ISLAND
For online information and ordering of this and other Manning books, please visit
www.manning.com. The publisher offers discounts on this book when ordered in quantity.
For more information, please contact
Special Sales Department
Manning Publications Co.
20 Baldwin Road
PO Box 761
Shelter Island, NY 11964
Email: [email protected]
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning Publications
was aware of a trademark claim, the designations have been printed in initial caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have
the books we publish printed on acid-free paper, and we exert our best efforts to that end.
Recognizing also our responsibility to conserve the resources of our planet, Manning books
are printed on paper that is at least 15 percent recycled and processed without the use of
elemental chlorine.
The authors and publisher have made every effort to ensure that the information in this book
was correct at press time. The authors and publisher do not assume and hereby disclaim any
liability to any party for any loss, damage, or disruption caused by errors or omissions, whether
such errors or omissions result from negligence, accident, or any other cause, or from any usage
of the information herein.
ISBN: 9781633438989
Printed in the United States of America
To Kacielynn, my unwavering source of support and encouragement, thank you for your
boundless patience and understanding. Your love has been my anchor, providing the
stability and inspiration to undertake ambitious projects like this one. This book
stands as a testament to the strength of our partnership.
To our two daughters, whose laughter and curiosity fill our home with joy, you
are my constant reminder of the importance of simplicity and the beauty of learning.
May this book inspire you to pursue your passions with the same enthusiasm
that you approach the world.
—James Petty
contents
preface xvii
acknowledgments xviii
about this book xix
about the authors xxii
PART 1 ........................................................................ 1
2.2 PowerShell 10
vii
viii CONTENTS
4.4 ByPropertyName 29
Let’s trace ByPropertyName 30 ■
When ByPropertyName fails 32
Planning ahead 33
Wildcards 35 Collections
■
36 ■
Troubleshooting
comparisons 36
5.2 The If construct 36
5.3 The ForEach construct 39
5.4 The Switch construct 42
5.5 The Do/While construct 42
5.6 The For construct 43
5.7 Break 44
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
CONTENTS ix
PART 2 ...................................................................... 65
18 Professional-grade scripting
18.1 Using source control 181
181
signatures 230
23 Squashing bugs
23.1
243
The three kinds of bugs 243
23.2 Dealing with syntax bugs 244
23.3 Dealing with results bugs 245
23.4 Dealing with logic bugs 245
Setting breakpoints 247 Setting watches
■
251 ■
So much
more 251 Don’t be lazy 253
■
output objects 263 Creating a new view file 264 Adding the
■ ■
index 303
preface
As someone who has experienced the transformative power of PowerShell firsthand, I
am excited to guide you through a monthlong exploration of its scripting capabilities.
Whether you’re a seasoned IT professional or a newcomer to the scripting world, this
book is designed to make your learning journey informative and enjoyable.
In the spirit of the Month of Lunches series, each chapter is crafted to be consumed
during your lunch break, making it convenient for even the busiest schedules. The
goal is to empower you to become proficient in PowerShell scripting, one step at a
time and one lunch break at a time.
Throughout these pages, you’ll find practical examples, hands-on exercises, and
real-world scenarios that will enhance your PowerShell skills and equip you with the
confidence to apply them in your daily tasks. This book covers various topics, from
the fundamentals to advanced scripting techniques, to ensure a comprehensive
understanding of PowerShell.
As you delve into the world of PowerShell scripting, keep in mind the dedication
to my family. They have been my inspiration and motivation to create a resource that
is informative but also accessible and enjoyable.
Wishing you a fulfilling and rewarding journey as you Learn PowerShell Scripting in a
Month of Lunches.
—James Petty
xvii
acknowledgments
I extend my heartfelt gratitude to those who supported and contributed to the cre-
ation of this book. Special thanks to my daughters and my wife for their unwavering
encouragement.
I am also grateful to Manning Publications for the opportunity to share my knowl-
edge and for all the support they have shown me during the course of writing this book.
In particular, I’d like to thank my development editor Frances Lefkowitz, technical
proofreader Krzysztof Kamyczek, and all members of the production team for their
support with Learn PowerShell Scripting in a Month of Lunches, Second Edition.
Special thanks go to technical editor Wes Stahler, CISSP, GCWN, GCIH, GSTRT,
MCSD, who is an associate director at The Ohio State University Wexner Medical Cen-
ter. He enjoys evangelizing PowerShell’s merits and has presented nationally at the
Microsoft Health Users Group, as well as locally for the Central Ohio PowerShell
Users Group and Central Ohio ISSA chapter.
Thank you to all the reviewers: Al Pezewski, Dave Corun, Glen Thompson, Jeffrey
Yao, Keith Kim, Kent Spillner, Maria Ana, Oliver Korten, Peter A. Schott, Piti
Champeethong, Ranjit Sahai, Roman Levchenko, and Satej Kumar Sahu—your sug-
gestions helped make this a better book.
—James Petty
xviii
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
about this book
Learn PowerShell Scripting in a Month of Lunches is a comprehensive guide that navigates
readers through a transformative journey in the intricate world of scripting. Divided
into four parts, the book systematically builds and enhances PowerShell scripting
skills. Part 1 serves as a foundational gateway, laying prerequisites and considerations
for script creation. Transitioning to Part 2, readers move from foundational concepts
to practical implementation, crafting robust PowerShell scripts focusing on design
principles and strategic thinking. Part 3, the sophisticated phase, explores advanced
techniques and professional-grade practices, challenging conventional thinking and
emphasizing security. The concluding Part 4 delves into advanced scripting intrica-
cies, defining mastery in the scripting domain.
Catering to IT professionals, system administrators, developers, and enthusiasts,
the book’s companion website offers code examples and resources, fostering a com-
prehensive learning experience. Engage in dynamic discussions in the liveBook forum
and benefit from real-world insights from James Petty. The acknowledgments express
gratitude to supporters and recognize reviewers’ valuable contributions. Learn Power-
Shell Scripting in a Month of Lunches is more than a book; it’s a transformative journey,
empowering readers to overcome challenges, present scripts with finesse, and embrace
perpetual growth in the scripting realm. Let the pursuit of mastery begin!
xix
xx ABOUT THIS BOOK
xxii
ABOUT THE AUTHORS xxiii
career-focused Own Your Tech Career (Manning). Don is also the author of over a dozen
fantasy and sci-fi novels and can be contacted at DonJones.com/.
FOOTNOTES
[31] She is the author of a remarkably bold “Manuel du Voyageur” en
Six Langues. Paris, Barrois, 1810. Framed to meet every conceivable
occasion.
[32] Day was honest in his intentions, however mistaken his policy may
have been. Sabrina finally married a Mr. Bicknell, who willingly
allowed her to accept support, meagre as it was, from Day.
[33] Mrs. Godwin [Mary Wollstonecraft] (1759–1797) began, as an
exercise, to translate “The Elements of Morality, for the Use of
Children,” written by the Reverend Christian Gotthilf Salzmann (1744–
1811), who won no small renown for the excellence of his school,
founded upon the principles set down by Rousseau. “The design of this
book,” says the worthy master, “is to give birth to what we call a good
disposition in children.” The chief delight of the 1782 edition, published
in three volumes, are the copperplates which represent in the most
graphic way, by pose, gesture, expression, and caption, all the ills that
juvenile flesh is heir to. No one, after having once viewed the poor little
figure seated on a most forbidding-looking sofa, can quite resist the
pangs of sympathy over his exclamation: “How sad is life without a
friend!” Life is indeed a direful wilderness of trials and vexations. The
prismatic colors of one’s years shrivel up before such wickedness as is
expressed by the picture “I hate you!” And yet how simple is the remedy
for a boy’s bad disposition, according to the Reverend Mr. Salzmann!
“Teach him,” so the philosopher argues in his preface, “that envy is the
vexation which is felt at seeing the happiness of others: you will have
given him a just idea of it; but shew him its dreadful effects, in the
example of Hannah in chap. 29, vol. II, who was so tormented by this
corroding passion, at her sister’s wedding, that she could neither eat,
drink, nor sleep, and was so far carried away by it as to embitter her
innocent sister’s pleasure; this representation has determined the child’s
disposition—he will hate envy.” Elements of Morality ... Translated
from the German.... 3d ed. (3 vols.) London, 1782.
[34] Charles Lamb has recorded his vivid impressions of this book in
“Witches and Other Night Fears.”
[35] It is interesting to note the longevity of many of the women writers
of this period. Both Miss Edgeworth and Mrs. Barbauld died in their
eighty-second year, while Miss More reached the ripe age of eighty-
eight. Mrs. Trimmer, nearing seventy, was thus comparatively young at
the time of her death. A glimpse of Miss More at seventy-nine is left in
the reminiscences of the original Peter Parley, who visited her, circa
1823, much as a devout pilgrim would make a special journey. He
wrote: “She was small and wasted away. Her attire was of dark-red
bombazine, made loose like a dressing-gown. Her eyes were black and
penetrating, her face glowing with cheerfulness, through a lace-work of
wrinkles. Her head-dress was a modification of the coiffure of her earlier
days—the hair being slightly frizzled, and lightly powdered, yet the
whole group of moderate dimensions.”
[36] Vide the lay sermon by Samuel McCord Crothers, “The Colonel in
the Theological Seminary.”—Atlantic, June, 1907. Also Emerson’s essay
on “Spiritual Laws.”
[37] Vide Miss Strickland’s “Lives of the Seven Bishops.”
[38] For Jane Taylor, vide “Contributions of Q Q;” “Essays in Rhymes
on Morals and Planners.” For Ann Taylor, vide “Hymns for Infant
Schools.”
[39] Frederic Harrison, in his “The Choice of Books,” (Macmillan,
1886) writes:
“Poor Lamb has not a little to answer for, in the revived relish for
garbage unearthed from old theatrical dung-heaps. Be it just or earnest, I
have little patience with the Elia-tic philosophy of the frivolous. Why do
we still suffer the traditional hypocrisy about the dignity of literature,—
literature I mean, in the gross, which includes about equal parts of what
is useful and what is useless? Why are books as books, writers as
writers, readers as readers, meritorious, apart from any good in them, or
anything that we can get from them?”
[40] The reader is referred to “The Moral Instruction of Children,” by
Felix Adler, New York: Appleton, 1892. Besides considering the use to
be made of fairy tales, fables, and Bible stories, the author discusses
fully the elements in the Odyssey and the Iliad which are valuable
adjuncts in moral training.
IV. CONCERNING NOW AND THEN
Ce que je vois alors dans ce jardin, c’est un petit bonhomme qui,
les mains dans les poches et sa gibecière au dos, s’en va au collège
en sautillant comme un moineau. Ma pensée seule le voit; car ce
petit bonhomme est une ombre; c’est l’ombre du moi que j’étais il y
a vingt-cinq ans. Vraiment, il m’intéresse, ce petit: quand il existait,
je ne me souciais guère de lui; mais, maintenant qu’il n’est plus, je
l’aime bien. Il valait mieux, en somme, que les autres moi que j’ai
eus après avoir perdu celui-là. Il était bien étourdi; mais il n’était
pas méchant et je dois lui; rendre cette justice qu’il ne m’a pas
laissé un seul mauvais souvenir; c’est un innocent que j’ai perdu: il
est bien naturel que je le regrette; il est bien naturel que je le voie en
pensée et que mon esprit s’amuse à ranimer son souvenir.... Tout ce
qu’il voyait alors, je le vois aujourd’hui. C’est le même ciel et la
méme terre; les choses ont leur âme d’autrefois, leur âme qui
m’égaye et m’attriste, et me trouble; lui seul n’est plus.—Anatole
France, in “Le Livre de mon Ami.”
“I prefer the little girls and boys ... that come as you call them,
fair or dark, in green ribbons or blue. I like making cowslip fields
grow and apple-trees bloom at a moment’s notice. That is what it is,
you see, to have gone through life with an enchanted land ever
beside you....”—Kate Greenaway to Ruskin.
ENGLISH TABLE
Mrs. Priscilla Wakefield. 1751–1832. Member of Society of Friends;
philanthropic work among the poor. Author: Juvenile Anecdotes;
Juvenile Travellers; Conversations; Introduction to Botany; Introduction
to Insects; Present Condition of Female Sex, with Suggestions for Its
Improvement; Life of William Penn. Reference: D. N. B.[42]
Frances Burney (Madame D’Arblay). 1752–1840. Reference: D. N. B.
William Fordyce Mavor. 1758–1837. Ed. 1799, juvenile periodical for
Walker, Newbery. Reference: D. N. B.
Joanna Baillie. 1762–1851. Work among the poor made her known as
Lady Bountiful. Reference: D. N. B.
Jeremiah Joyce. 1763–1816. Author: Lectures on the Microscope.
Mrs. Jane Marcet. 1769–1858. Macaulay wrote: “Every girl who has read
Mrs. Marcet’s little dialogues on political economy could teach
Montague or Walpole many fine lessons in finance.” Author: Scientific
text-books; Conversations on Chemistry intended for the Female Sex;
Conversations on Political Economy, imitated by Harriet Martineau in
her Illustrations of Political Economy. Reference: D. N. B.
Mrs. Barbara Hofland. 1770–1844. Imitated the Edgeworth style.
Author: Emily; The Son of a Genius; Tales of a Manor; Young Crusoe.
Reference: D. N. B.
Mrs. Mary Martha Sherwood. 1775–1851. Stories and tracts evangelical
in tone. With her sister, Mrs. Cameron, invented a type of story for rich
and for poor. Author: The Fairchild Family (intended for the middle
classes); Little Henry and His Bearer. Reference: New Review (May 18,
1843); Life of Mrs. Sherwood by her daughter; D. N. B. An edition of
The Fairchild Family, New York, Stokes, $1.50.
Jane Porter. 1776–1850. Reference: D. N. B.
Maria Hack. 1778–1844. Quaker parentage. A believer in the “walk”
species of literature. Author: Winter Evenings, or Tales of Travellers;
First Lessons in English Grammar; Harry Beaufoy, or the Pupil of
Nature. Reference: D. N. B.
Mrs. Elizabeth Penrose. 1780–1837. Pseud. Mrs. Markham. Daughter of
a rector. One critic wrote: “Mrs. Penrose adapted her history to what she
considered the needs of the young, and omitted scenes of cruelty and
fraud, as hurtful to children, and party politics after the Revolution as too
complicated for them to learn.” Author: Began school histories in 1823;
these were brought up to date afterward by Mary Howitt. Moral Tales
and Sermons for Children. Reference: D. N. B.
John Wilson Croker. 1780–1857. One of the founders of the Quarterly
Review; reviewed abusively Keats’s Endymion. Author: Stories from the
History of England, 1817, which supplied Scott with the idea for his
Tales of a Grandfather; Irish Tales. Reference: Jenning’s Diaries and
Correspondence of Croker (London, 1884); Internat. Encyclo.
Lady Maria Callcott. 1785–1842. Author: Little Arthur’s History of
England. Reference: D. N. B.
Mary Russell Mitford. 1787–1855. Careful detail of description, akin to
Dutch style of painting. Author: Tragedies; Village Stories; Juvenile
Spectator. She was among the first women to adopt writing as a
profession. Miss Yonge speaks of her “writing so deliciously of
children,” but she “could not write for them.” Reference: D. N. B.;
Recollections; Letters.
Agnes Strickland. 1796–1874. “With the exception of Jane Porter, whom
she visited at Bristol, and with whom she carried on a frequent
correspondence, and a casual meeting with Macaulay, whom she found
congenial, she came little in contact with the authors of the day.” Author:
Lives of the Queens of England; Two Rival Crusoes. [Note the hybrid
type of story that sprung up around the real Robinson Crusoe.] Edited
Fisher’s Juvenile Scrap Book, 1837–1839. Reference: D. N. B.
Mrs. May Sewell. 1797–1884. Left Society of Friends for the Church of
England. Wrote homely ballads. Vide daughter, Anna Sewell. Author:
Her ballad, Mother’s Last Words, circulated about 1,088,000 copies when
it first appeared. Reference: Mod. Biog.
Mary Howitt. 1799–1888. Authorship linked with that of her husband. In
1837 began writing children’s stories and poems. Her daughter, Anna
Mary, also was a writer of children’s books. Author: Translator of
Fredrika Bremer’s novels; editor, Fisher’s Drawingroom Scrap Book.
Reference: Reminiscences of My Later Life (Good Words, 1886); D. N.
B.
Catherine Sinclair. 1800–1864. Fourth daughter of Sir John Sinclair. Her
work considered the beginning of the modern spirit. A friend of Scott.
Author: Holiday House; Modern Accomplishment; Modern Society;
Modern Flirtations. Reference: A Brief Tribute to C. S. (Pamphlet); D. N.
B.
G. P. R. James. 1801–1860. Influenced by Scott and encouraged by Irving.
Thackeray parodied him in Barbazure, by G. P. R. Jeames, Esq., in
Novels by Eminent Hands; also in Book of Snobs (chaps. ii and xvi).
Author of a long list of novels.
Harriet Martineau. 1802–1876. Reference: D. N. B.
Mrs. Margaret Scott Gatty. 1809–1873. She was forty-two before she
began to publish. Vide Ewing. Author: Aunt Judy Tales; Parables of
Nature; 1866—Aunt Judy Magazine (monthly), continued after her death,
with her daughter as editor; stopped in 1885. Reference: Life in ed.
Parables (Everyman’s Library); Illustrated London News, Oct. 18, 1873;
Athenæum, Oct. 11, 1873, p. 464; D. N. B.
Anna Sewell. 1820–1878. Author: Black Beauty (1877). Reference: D. N.
B.
Charlotte M. Yonge. 1823-. Author: Heir of Redclyffe; The Kings of
England; The Chaplet of Pearls.
Mrs. Mary Louisa Whateley. 1824–1889. Went to Cairo and lived from
1861–1889, where she had a Moslem school. Wrote chiefly about Egypt.
Fairy tale influence. Author: Reverses; or, the Fairfax Family. Reference:
Hays’ Women of To-day; London Times (March 12, 1889).
Mrs. Dinah Maria Mulock Craik. 1826–1887. Pseudo-fairy tale writer.
Author: Adventures of a Brownie, etc.
Juliana Horatio Ewing. 1841–1885. Reference: J. H. Ewing and Her
Books, by Horatia K. T. Gatty; D. N. B.
Ann Fraser Tytler. Daughter of Alexander Fraser Tytler, Lord
Woodhouselel. Author: Leila on the Island; Leila in England; Leila at
Home.
AMERICAN TABLE
Noah Webster. Ct. 1758–1843. Cf. Mavor in England. Author: New
England Spelling Book; American Dictionary. Reference: Memoir by
Goodrich (in Dictionary); Life by H. E. Scudder; Appleton.[45]
Jedidiah Morse. Ct. 1761–1826. Congregational minister; wrote first
school text-books of any importance in America. His son was S. F. B.
Morse. Author: Geography Made Easy, etc. He is called the “Father of
American Geography.” Reference: Life by Sprague; Appleton.
Thomas Hopkins Gallaudet. Ct. 1787–1851. Minister. Educator of deaf
mutes; in this work assisted by wife, Sophia Fowler (1798–1877), and
two sons. Author: The Child’s Book of the Soul; The Youth’s Book of
Natural Theology; Bible Stories for the Young. Reference: Life by
Humphrey; Tribute to T. H. G. by Henry Barnard (Hartford, Conn.,
1852); Appleton.
Eliza Leslie. Pa. 1787–1857. Wrote cook books, girls’ books, and juvenile
tales for The Pearl and The Violet, which she edited annually. She also
edited The Gift. One of her brothers, a well-known artist. Author: The
Young Americans; Stories for Adelaide; Stories for Helen; The
Behaviour Book. The Wonderful Traveller consisted of altered versions
of tales from Münchausen, Gulliver, etc. Reference: Appleton.
Mrs. Sarah Josepha (Buell) Hale. N. H. 1788–1879. It was through her
efforts that Thanksgiving became an American national observance. Her
son, Horatio, was an author. Author: The famous “Mary had a little
lamb.” Edited Lady’s Book for forty years from 1837. Reference:
Appleton.
Catherine Maria Sedgwick. Mass. 1789–1867. Author: The Boy of
Mount Rhigi, a tale of inspired goodness; Beatitudes and Pleasant
Sundays; The Poor Rich Man and the Rich Poor Man; A Love Token for
Children; Morality of Manners; Lessons without Books. Reference:
Hart’s Female Prose Writers of America; Life and Letters, ed. Mary E.
Dewey; Appleton.
Mrs. Susan (Ridley) Sedgwick. Mass. 1789–1867. Author: Walter
Thornley; Morals of Pleasure; The Young Emigrants. Reference:
Appleton.
Mrs. Lydia Howard (Huntley) Sigourney. Ct. 1791–1865. Author:
Letters to Young Ladies; Poetry for Children; Tales and Essays for
Children. Reference: Griswold’s Female Poets; Hart’s Female Prose
Writers; Life and Letters; Parton’s Eminent Women; Appleton.
Mrs. Caroline (Howard) Gilman. Mass. 1794–1888. Took great pride in
her children’s books. Began writing in Southern Rosebud (Charleston),
afterward called Southern Rose (1832–1839). This magazine has been
credited as the first juvenile weekly in the United States. Her daughter,
Caroline H. (b. S. C. 1823), also wrote for the young. Author: Oracles for
Youth; Mrs. Gilman’s Gift Book. Reference: Autobiographical sketch in
Hart’s Female Prose Writers; Recollections; Appleton.
Mrs. Louisa C. (Huggins) Tuthill. Ct. 1798–1897. Wrote moral tales;
with others prepared Juvenile Library for Boys and Girls; her daughter,
Cornelia (T.) Pierson (1820–1870), wrote Our Little Comfort; When Are
We Happiest? Author: I will be a Gentleman; I will be a Lady; I will be a
Sailor; Onward, Right Onward. Edited the Young Ladies Reader (New
Haven, 1840). Reference: Hart; Appleton.
John Todd. Vt. 1800–1873. Invented Index Rerum. Author: Religious
works, mainly for young people; also educational works. Reference: Life;
Harper’s Magazine, Feb., 1876.
Lydia Maria Child. Mass. 1802–1880. Foremost in the ranks of anti-
slavery; influenced by Garrison. In 1826, founded the Juvenile
Miscellany, forerunner of Harper’s Young People. Author: Flowers for
Children (graded). Reference: Hart; Nat. Cyclo. Am. Biog.
Maria J. McIntosh. Ga. 1803–1878. Quiet and domestic tone to her books.
Author: Series known as the Aunt Kitty Tales, the first one being Blind
Alice, published in 1841. Reference: Hart.
Dr. Harvey Newcomb. Mass. 1803–1866. Congregational clergyman.
Wrote moral and religious books for young. Author: How to be a Man;
How to be a Lady; Young Ladies’ Guide. Reference: Appleton.
Rev. Jacob Abbott. Me. 1803–1879. Divinity school; Professor at
Amherst; Congregationalist. Travelled extensively. Author: Rollo books
(28 vols.); Lucy books (6 vols.); Jonas books (6 vols.); Franconia books
(10 vols.); histories with brother (vide p. 160). Reference: A Neglected N.
E. Author (N. E. Mag., n. s. 30:471); Writings (Lit. and Theol. R., 3:83);
(Chr. Exam., 18:133; 21:306); Appleton.
Rev. Abijah Richardson Baker. Mass. 1805–1876. Congregationalist.
Graduate of Amherst; a teacher. With his wife, Mrs. H. N. W. Baker,
edited The Mother’s Assistant and The Happy Home. Author: School
History of the U. S.; Westminster Shorter Catechism—Graduated
Question Book. Reference: Appleton.
J. S. C. Abbott. Me. 1805–1877. Brother of Jacob Abbott. Congregational
minister. Author: The Mother at Home; histories with brother. Reference:
Cong. Q., 20:1; Appleton.
Sarah Towne (Smith) Martyn. 1805–1879. Wife of a minister. Wrote
Sunday-school books and semi-historical stories. Published through
American Tract Society. Established Ladies’ Wreath, and edited it, 1846–
1851. Author: Huguenots of France; Lady Alice Lisle. Reference:
Appleton.
Mrs. Elizabeth Oakes (Prince) Smith. Me. 1806–1893. One of the first
women lecturers in America. Moved later to South Carolina. By her
book, The Newsboy, public attention was drawn to that class of child.
Supervised, circa 1840, annual issuance of the Mayflower (Boston).
Author: The Sinless Child; Stories for Children; Hints on Dress and
Beauty. Reference: Hart; Nat. Cyclo. Am. Biog.
Mary Stanley Bunce (Palmer) (Dana) Shindler. S. C. 1810–1883. Wife
of a clergyman, Episcopal. Author: Charles Morton; or, The Young
Patriot; The Young Sailor. Reference: Appleton.
Harriet Beecher Stowe. Ct. 1811–1896. Author: Dred; Uncle Tom’s
Cabin. Reference: Life work of,—McCray; E. F. Parker in Parton’s
Eminent Women; Life compiled from letters and journals by C. E. Stowe;
Life and Letters, ed. Annie Fields.
Elijah Kellogg. Me. 1813-. Congregational minister. Famed for “The
Address of Spartacus to the Gladiators.” Author: Elm Island series;
Forest Glen series; Good Old Times series; Pleasant Cove series.
Reference: Bibliog. Me.; Appleton.
Mary Elizabeth Lee. S. C. 1813–1849. Not a distinctive juvenile writer,
but contributed many juvenile tales to The Rosebud. (Vide Gilman.)
Reference: Hart.
Rev. Zachariah Atwell Mudge. Mass. 1813–1888. Methodist-Episcopal
minister; teacher. Fiction for Sunday-schools. Author: Arctic Heroes; Fur
Clad Adventurers. Reference: Appleton.
Mrs. Harriet V. Cheney. Mass. Circa 1815. Daughter of Hannah Foster,
an early American novelist. Her sister, Mrs. Cushing, wrote Esther, a
dramatic poem, and “works” for the young. Author: A Peep at the
Pilgrims; The Sunday-school; or, Village Sketches. Reference: Appleton.
Mrs. Harriette Newell (Woods) Baker. Mass. 1815–1893. Pseud.
Madeline Leslie. Wife of Rev. A. R. B. Author: About two hundred moral
tales, among them Tim, the Scissors Grinder. Reference: Appleton.
Lydia Ann Emerson (Porter). Mass. 1816-. Second cousin of Ralph
Waldo Emerson. Contributed mostly to the Sunday-school type of book.
Author: Uncle Jerry’s Letters to Young Mothers; The Lost Will.
Reference: Appleton.
Catherine Maria Trowbridge. Ct. 1818-. Author: Christian Heroism;
Victory at Last; Will and Will Not; Snares and Safeguards.
Susan Warner. N. Y. 1818–1885. Pseud. Elizabeth Wetherell. Books noted
for strained religious sentimentality. With her, the school of Hannah
More came to an end. Author: The Wide, Wide World (1851); Queechy
(1852); Say and Seal (in collaboration with her sister). Reference:
Appleton.
Rev. William Makepeace Thayer. Mass. 1820–1898. Congregational
minister; member of legislature. Author: Youth’s History of the
Rebellion; The Bobbin Boy; The Pioneer Boy; The Printer Boy; Men
Who Win; Women Who Win. Edited The Home Monthly and The
Mother’s Assistant. Reference: Appleton.
William Taylor Adams. Mass. 1822–1897. Pseud. Oliver Optic. In early
life ed. Student and School-Mate. In 1881, ed. Our Little Ones. Then ed.
Oliver Optic’s Magazine. Author: About one hundred volumes; first one
published 1853, Hatchie, the Guardian Slave. Reference: Appleton.
Charles Carleton Coffin. N. H. 1823–1896. Self-educated. Varied career
as a war correspondent during the Civil War. Author: The Boys of ’76.
Reference: Life by Griffis; Appleton.
William Henry Thomas. 1824–1895. Belonged to the school of dime
novelists. Boys in the 60’s eagerly devoured the Beadle and (later)
Munro books. Author: The Belle of Australia; Ocean Rover; A
Whaleman’s Adventure. Reference: Appleton.
Mrs. Alice (Bradley) (Neal) Haven. N. Y. 1828–1863. Pseud. Alice G.
Lee. Wrote for Sunday-schools. Author: No such Word as Fail;
Contentment Better Than Wealth. Reference: Memoir in Harper’s
Magazine, Oct., 1863; Appleton.
Jane Andrews. Mass. 1833–1887. Author: Seven Little Sisters who live on
the Round Ball that Floats in the Air; The Stories Mother Nature Told.
Charles A. Fosdick. N. Y. 1842-. Pseud. Harry Castlemon. Went through
the Civil War. Author: Gunboat series; Rocky Mountains series;
Roughing It series; Frank series; Archie series.
Mrs. Annie M. Mitchell. Mass. 1847-. Religious books for children.
Author: Martha’s Gift; Freed Boy in Alabama.
Mrs. Mary L. Clark. Fairford, Me. 1831-. Religious juveniles. Author:
The Mayflower series; Daisy’s Mission.
Mrs. Caroline E. Davis. Northwood, N. H. 1831-. Sunday-school tales,
about fifty or more. Author: No Cross, No Crown; Little Conqueror
Series; Miss Wealthy’s Hope; That Boy; Child’s Bible Stories. Reference:
Appleton.
Sara H. Browne. Author: Book for the Eldest Daughter (1849).
Maria J. Browne. Author: The Youth’s Sketch Book (1850). Reference for
both: Hart (Bibl.).