Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ MD054: # link-image-style
inline: true
shortcut: false
url_inline: true
MD055: leading_and_trailing # table-pipe-style
MD055: # table-pipe-style
style: leading_and_trailing
MD056: true # table-column-count
# MD057 # undefined
MD058: true # blanks-around-tables
17 changes: 16 additions & 1 deletion .vscode/cspell/psdocs/dictionaries/psdocs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ autogenerated
autogenerates
autoload
autoloaded
autoloading
autoloads
autosave
autosaved
Expand All @@ -36,13 +37,15 @@ callstack
carmonm
ccontains
CentOS
Certmgr
cheatsheet
cheatsheets
checkboxes
cimv2
clike
cmatch
cmdlet
cmdletbinding
cmdlets
cnotcontains
cnotlike
Expand All @@ -57,10 +60,12 @@ coreclr
CoreOS
CredSSP
creplace
cscript
customizations
DACL
datacenter
datacenters
DCOM
Debian
deserialization
deserialize
Expand Down Expand Up @@ -94,6 +99,7 @@ frontmatter
glob
globbing
globs
gpedit
GUID
hardlink
hashtable
Expand Down Expand Up @@ -147,14 +153,17 @@ notmatch
nslookup
NTFS
NTLM
ntoskrnl
nuget
nupkg
onboarding
openpublishing
openSUSE
pageable
parameterless
PassThru
PATHEXT
pbpaste
pltfrm
POSIX
PowerShell
Expand All @@ -168,6 +177,7 @@ prerelease
prereleases
psadapted
psbase
pscredential
pscustomobject
PSES
psextended
Expand Down Expand Up @@ -196,6 +206,7 @@ remoting
reparse
RHEL
RIPEMD160
robocopy
runbook
runbooks
runspace
Expand Down Expand Up @@ -226,14 +237,14 @@ Snover
SPACEBAR
Sqlcmd
SQLPS
SQLSERVER
stepover
struct
subcontainer
subcontainers
subexpression
subexpressions
subfolder
subfolder
subfolders
subkey
subkeys
Expand All @@ -250,6 +261,7 @@ taskbar
timespan
Titlecase
TMPDIR
Traceroute
triaged
Ubuntu
UMCI
Expand All @@ -272,6 +284,7 @@ unregistering
unregisters
untrusted
updateable
UPDATECHECK
USERMODE
USERROLE
userspace
Expand All @@ -285,4 +298,6 @@ WinCompat
wmicimv2
workgroup
workgroups
wscript
wwwroot
xclip
8 changes: 4 additions & 4 deletions reference/5.1/CimCmdlets/Set-CimInstance.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ Set-CimInstance -InputObject $x -Property @{VariableValue="somevalue"} -PassThru
This example retrieves the CIM instance objects filtered by the Query parameter in to a variable
`$x` using `Get-CimInstance`, and then passes the contents of the variable to the `Set-CimInstance`
cmdlet. `Set-CimInstance` then modifies the **VariableValue** property to **somevalue**. Because the
**Passthru** parameter is used, This example returns a modified CIM instance object.
**PassThru** parameter is used, This example returns a modified CIM instance object.

### Example 4: Set the CIM instance property

This example retrieves the CIM instance object that is specified in the **Query** parameter into a
variable `$x` using the `Get-CimInstance` cmdlet, and changes the **VariableValue** property value
of the object to change. The CIM instance object is then saved using the `Set-CimInstance` cmdlet.
Because the **Passthru** parameter is used, This example returns a modified CIM instance object.
Because the **PassThru** parameter is used, This example returns a modified CIM instance object.

```powershell
$x = Get-CimInstance -Query 'Select * from Win32_Environment where name="testvar"'
Expand Down Expand Up @@ -138,7 +138,7 @@ Set-CimInstance -Query 'Select * from Win32_Environment where name LIKE "testvar
This example creates a CIM instance with the specified properties using the `New-CimInstance`
cmdlet, and retrieves its contents in to a variable `$x`. The variable is then passed to the
`Set-CimInstance` cmdlet, which modifies the value of **VariableValue** property to **somevalue**.
Because the **Passthru** parameter is used, This example returns a modified CIM instance object.
Because the **PassThru** parameter is used, This example returns a modified CIM instance object.

```powershell
$x = New-CimInstance -ClassName Win32_Environment -Property @{Name="testvar";UserName="domain\user"} -Key Name,UserName -ClientOnly
Expand Down Expand Up @@ -409,7 +409,7 @@ By default, this cmdlet returns no output.

### Microsoft.Management.Infrastructure.CimInstance

When you use the **Passthru** parameter, this cmdlet returns the modified CIM instance object.
When you use the **PassThru** parameter, this cmdlet returns the modified CIM instance object.

## NOTES

Expand Down
Loading