This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}| def format_timedelta_to_HHMMSS(td): | |
| td_in_seconds = td.total_seconds() | |
| hours, remainder = divmod(td_in_seconds, 3600) | |
| minutes, seconds = divmod(remainder, 60) | |
| hours = int(hours) | |
| minutes = int(minutes) | |
| seconds = int(seconds) | |
| if minutes < 10: | |
| minutes = "0{}".format(minutes) | |
| if seconds < 10: |
| <html> | |
| <head> | |
| <style> | |
| h1 { | |
| font-family: Calibri; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> |
| [EditionID] | |
| Professional | |
| [Channel] | |
| Retail |
| function Restore-Ownership { | |
| <# | |
| .SYNOPSIS | |
| Restores file/folder ownership for the current user or the Administrators group. | |
| .DESCRIPTION | |
| The `Restore-Ownership` cmdlet restores ownership of files and/or folders | |
| for the current Windows user (default), or the BUILTIN\Administrators group. | |
| This is accomplished using `takeown.exe` to take ownership of the file or | |
| folder, followed by `Set-Acl` to add a `System.Security.AccessControl.FileSystemAccessRule` |