Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » New-Item

New-Item - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Creates a new item.

New-Item [-Path] <String[]> [-Credential <PSCredential>] [-Force] [-ItemType <String>] [-Value <Object>] [-Confirm] [-W
hatIf] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
New-Item [[-Path] <String[]>] [-Credential <PSCredential>] [-Force] [-ItemType <String>] [-Value <Object>] -Name <Strin
g> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]

The New-Item cmdlet creates a new item and sets its value. The types of items that can be created depend upon the locat
ion of the item. For example, in the file system, New-Item is used to create files and folders. In the registry, New-It
em 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 add i
nitial content to the file.