Certified Secure Software Lifecycle Professional (CSSLP)
I have passed the exam and endorsement process and officially CSSLP certified now!
I have passed the exam and endorsement process and officially CSSLP certified now!
There are many ways to execute PowerShell in Windows scheduled tasks:
Program/Script: PowerShell.exe
Add arguments (optional): -command "& {& 'C:\path\to\script.ps1'}"
Start in (optional): C:\path\to\
Program/Script: PowerShell.exe
Add arguments (optional): -NonInteractive -Noprofile -File "C:\path\to\script.ps1"
Start in (optional): C:\path\to\
Option #1 allows me to have the script to connect to the Internet (server is located behind corporate proxy).
It is official! after passing AZ-303 today, I am now a Microsoft Certified Azure Solutions Architect Expert.
I need to "tail" in PowerShell to view the log and found the following command interesting:
> Get-Content C:\mylog.txt -Wait
If you want to get the latest file and tail it:
> Get-Content ( Get-ChildItem C:\Folder\ | Sort-Object LastWriteTime | Select-Object -Last 1) -Wait
Use the following Powershell to get all the GPO dumped to HTML files
#> Get-GPO -All -Domain mydomain.tld | % { Get-GPOReport -Guid $_.Id -ReportType Html -Domain mydomain.tld | Set-Content C:\Reports\$($_.DisplayName).html }