Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Clear-Item

Clear-Item - Powershell 1.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 »

Clear-Item

Description
Remove content from a variable or an alias

Usage


Options


Example(s)
Delete the content of a MyTestVariable:

   PS C:>clear-item Variable:MyTestVariable
or
   PS C:> Set-location Variable:
   PS Variable:\> clear-item MyTestVariable

Remove the aliases: ss64demo1, ss64demo2:

   PS C:>clear-item Alias:ss64* -include *demo*

Remove all the registry entries under : hklm\Software\SS64\DemoKey:

   PS C:>clear-item registry::HKLM\Software\SS64\DemoKey