Create a .zip using 7z by cmd in Windows

After to install the 7z in our windows workstation/server then we need to create our evironment variables to call the function from the cmd [1]. Then the command below will guide you to zip a simple file: 7z a -r [myzip] [example.txt] [myzip] - the zip name file [example.txt] file used for the example To zip a folder 7z a [myzip] [folder] Docu based thx to the information seen from: [1] GlobalEnviroment

2019-06-11

Output IPCONFIG report to HTML by PowerShell

$file = "C:\Users\jcr\a.html" $ipconfig=ipconfig /all |%{"$_<br/>"} $body=@" <html> <head> <title>Network Report</title> </head> <body> <h1>IPConfig /All</h1> <pre>$ipconfig</pre> </body> </html> "@ $body | Out-File $file . $file

2019-04-25