Contact Info

Crumbtrail

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

Set-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 »

Set-Item

Description
Change the value of an item

Usage


Options


Example(s)
Set the AllScope and ReadOnly options for the "prompt" function:

PS C:\>set-item -path function:prompt -options "AllScope,ReadOnly"

Change the value of the "UserRole" environment variable to "Administrator":

PS C:\>set-item -path env:UserRole -value Administrator