New-Item - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
New-Item
Short description Creates a new item. Syntax New-Item [-Path] <string[]> [-Credential <PSCredential>] [-Force] [-ItemType <string>] [-Value <Object>] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>] New-Item -Name <string> [[-Path] <string[]>] [-Credential <PSCredential>] [-Force] [-ItemType <string>] [-Value <Ob ject>] [-Confirm] [-WhatIf] [-UseTransaction] [<CommonParameters>] Description The New-Item cmdlet creates a new item and sets its value. The types of items that can be created depend upon the l ocation of the item. For example, in the file system, New-Item is used to create files and folders. In the registry , New-Item creates registry keys and entries. New-Item can also set the value of the items that it creates. For example, when creating a new file, New-Item can a dd initial content to the file.