We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Test if a share exists.
Uses the Win32_Share WMI class to test if a share exists.
Win32_Share
The share name to test for. Eg 'C$' or 'MyShare'.
[Parameter(Mandatory, Position=1)] [Alias('Name')]
A Script Block defining a Pester Assertion.
[Parameter(Mandatory, Position=2)]
Assertions: -BeNullOrEmpty
Share 'MyShare' { Should -Not -BeNullOrEmpty }
Share 'BadShare' { Should -BeNullOrEmpty }
Getting Started
Contributing
Functions