< Back

Restore-NetSessionEnumPermission

Sat Jan 18, 2020 5:00 pm

NAME Restore-NetSessionEnumPermission



SYNOPSIS

Restore the default Net Session Enumeration permissions





SYNTAX

Restore-NetSessionEnumPermission [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Restore the default Net Session Enumeration permissions:



TranslatedSID SecurityIdentifier AccessMask AceType

------------ ------------------ ---------- -------

NT AUTHORITY\\Authenticated Users S-1-5-11 1 AccessAllowed

BUILTIN\\Administrators S-1-5-32-544 983059 AccessAllowed

BUILTIN\\Power Users S-1-5-32-547 983059 AccessAllowed

BUILTIN\\Server Operators S-1-5-32-549 983059 AccessAllowed





PARAMETERS

-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Restore-NetSessionEnumPermission -Whatif













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Restore-NetSessionEnumPermission -Verbose -Confirm:$false















RELATED LINKS