Skip to content

Commit

Permalink
testtest
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaranionjc committed Feb 1, 2024
1 parent 61f8d44 commit f086f51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jumpcloud-ADMU/Powershell/Tests/Functions.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ Describe 'Functions' {

# Initialize a single user to migrate:
InitUser -UserName $localUser -Password $Password

$protocol = "http"
$fileType = ".txt"
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($fileType)\UserChoice" -force
# Test path
New-Item -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\$($protocol)\UserChoice" -Force
$protocol = "http"
$fileType = ".txt"

Set-FTA "wordpad" $fileType
Set-PTA -Protocol $protocol -ProgId "notepad"

$fta = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($extension)\UserChoice"
$fta = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\$($fileType)\UserChoice"
$pta = Get-ItemProperty "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\$($protocol)\UserChoice"
# Write out the contents of the FTA and PTA
Write-Host "FTA: $($fta)"
Expand Down

0 comments on commit f086f51

Please sign in to comment.