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
    
  
  
    
  | $folder = "C:\folder" | |
| $cmd = "powershell.exe " | |
| $args = "-NoLogo -NonInteractive -WindowStyle Maximized -File script.ps1" | |
| $user = "username-to-run-as" | |
| $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).Date -RepetitionInterval (New-TimeSpan -Minutes 1) | |
| $action = New-ScheduledTaskAction -WorkingDirectory $folder -Execute $cmd -Argument $args | |
| $settings = New-ScheduledTaskSettingsSet -StartWhenAvailable -MultipleInstances IgnoreNew -RestartInterval (New-TimeSpan -Minutes 1) -RestartCount 999 -ExecutionTimeLimit (New-TimeSpan -Seconds 0) | |
| $principal = New-ScheduledTaskPrincipal -UserId $user -LogonType Interactive | |
| $task = New-ScheduledTask -Principal $principal -Action $action -Settings $settings -Trigger $trigger | 
  
    
      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
    
  
  
    
  | # configure | |
| $cert = New-SelfSignedCertificate -CertstoreLocation Cert:\LocalMachine\My -DnsName $env:COMPUTERNAME | |
| Enable-PSRemoting -SkipNetworkProfileCheck -Force | |
| New-Item -Path WSMan:\LocalHost\Listener -Transport HTTPS -Address * -CertificateThumbPrint $cert.Thumbprint –Force | |
| New-NetFirewallRule -DisplayName "Windows Remote Management (HTTPS-In)" -Name "Windows Remote Management (HTTPS-In)" -Profile Any -LocalPort 5986 -Protocol TCP | |
| # connect | |
| Enter-PSSession -ComputerName {X.X.X.X} -Credential (Get-Credential) -SessionOption (New-PsSessionOption -SkipCACheck -SkipCNCheck) -UseSSL | 
  
    
      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
    
  
  
    
  | # Test Report: Pester Results on Windows using Windows PowerShell 5.1 | |
| * Date: 2022-02-12 | |
| * Time: 15:33:54 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
  
    
      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
    
  
  
    
  | # Registry locations for installed software | |
| $paths = | |
| # all users x64 | |
| 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # all users x86 | |
| 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # current user x64 | |
| 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # current user x86 | |
| 'HKCU:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | 
  
    
      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
    
  
  
    
  | # list of registry locations where installed software is stored | |
| $paths = | |
| # all users x64 | |
| 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # all users x86 | |
| 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # current user x64 | |
| 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*', | |
| # current user x86 | 
  
    
      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
    
  
  
    
  | # Test Report: Pester Results on Windows using Windows PowerShell 5.1 | |
| * Date: 2020-11-20 | |
| * Time: 09:16:07 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
  
    
      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
    
  
  
    
  | # Test Report: Pester Results on Windows | |
| * Date: 2022-02-12 | |
| * Time: 15:34:05 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
  
    
      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
    
  
  
    
  | # Test Report: Pester Results on macOS | |
| * Date: 2022-02-12 | |
| * Time: 15:33:51 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
  
    
      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
    
  
  
    
  | # Test Report: Pester Results on Linux | |
| * Date: 2022-02-12 | |
| * Time: 15:33:43 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
  
    
      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
    
  
  
    
  | # Test Report: PSLiteDB Tests | |
| * Date: 2020-11-19 | |
| * Time: 12:47:50 | |
| Expand the following summaries for more details: | |
| <details> | |
| <summary> Environment: | 
NewerOlder