-
Notifications
You must be signed in to change notification settings - Fork 33
Function Share
Mark Wragg edited this page Jun 17, 2019
·
1 revision
Test if a share exists.
Uses the Win32_Share
WMI class to test if a share exists.
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