This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cmdletbinding(SupportsShouldProcess=$true,DefaultParameterSetName="User")] | |
Param( | |
[Parameter(Mandatory=$true, | |
Position=0, | |
ParameterSetName="User", | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[Microsoft.ActiveDirectory.Management.ADUser[]] | |
[Parameter(Mandatory=$true, | |
Position=0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Clear-CCTV{ | |
Param( | |
# Directory to clear | |
[parameter(mandatory=$true)] | |
[string]$Path | |
, # Archive Directory Path | |
[parameter(mandatory=$true)] | |
[string]$ArchivePath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS P:\VSCode\1.30.2-inside> .\Code.exe --verbose | |
PS P:\VSCode\1.30.2-inside> | |
[main 12:04:33 PM] Starting VS Code | |
[main 12:04:33 PM] from: p:\VSCode\1.30.2-inside\resources\app | |
[main 12:04:33 PM] args: { _: [], | |
help: false, | |
h: false, | |
version: false, | |
v: false, | |
wait: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def info_table( | |
data: Any, *, headers: Union[str, Sequence[str]] = (), fileobj: FileObj = sys.stdout | |
) -> None: | |
if headers == 'keys': | |
colored_data = dict() | |
plain_data = dict() | |
for row in data: | |
colored_row = list() | |
plain_row = list() | |
for item in data[row]: |
OlderNewer