diff --git a/Examples/Example-27-GPOLinks.ps1 b/Examples/Example-27-GPOLinks.ps1 new file mode 100644 index 0000000..87d3113 --- /dev/null +++ b/Examples/Example-27-GPOLinks.ps1 @@ -0,0 +1,3 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Get-GPOZaurrLink | Format-Table -AutoSize \ No newline at end of file diff --git a/Tests/GetAddRemoveGPOPermissions.Tests.ps1 b/Tests/GetAddRemoveGPOPermissions.Tests.ps1 index 41fb159..53bd107 100644 --- a/Tests/GetAddRemoveGPOPermissions.Tests.ps1 +++ b/Tests/GetAddRemoveGPOPermissions.Tests.ps1 @@ -1,6 +1,7 @@ Describe 'GPO Permissions Management - Simple' { BeforeAll { # just in case some tests failed before and added user stays + Import-Module $PSScriptRoot\..\*.psd1 -Force Remove-GPOZaurrPermission -GPOName 'TEST | GPOZaurr Permissions Testing' -PermissionType GpoEdit -Principal 'EVOTEC\przemyslaw.klys' -PrincipalType NetbiosName -Verbose } It 'Get-GPOZaurrPermission - Should return proper data' {