-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Commit of Major Changes (some changes in other commits)
- Handled Auto add aliases on build #9 so added aliases are available to users. - Implemented Add foghost name tab completion #8 - Added github actions for testing build and releasing versions - Fixed issue with getting fog inventory in 1.6 - Implemented #16 for getting and setting fog global settings in fog 1.6 - Implemented #14 for getting the fog version - Implemented #13 for invoking wol task for a host - Added basic pipeline functionality for foghost objects in all applicable functions. - Made it possible to send multiple specified snapins in a single start-fogsnapin call - Added tab completion of server specific host names and snapin names in various functions like get-foghost, start-fogsnapin. set-fogsnapins, remove-usbmac - removed advanced function begin/end blocks where they weren't being used as such, kept things in process block - implemented Add https option to fog server settings #15 by making it so you can put http://fogserver or https://fogserver or fogserver as the fogserver property in settings to implement that change with minimal issues with existing setting configs. Added an enable-FogApiHTTPS funcction as well as a disable to easily enable that. - Implemented Add function for attempting to set windows machine to boot to pxe from within windows #17
- Loading branch information
1 parent
a3ea3bc
commit 03d4daa
Showing
67 changed files
with
2,725 additions
and
412 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
function Disable-FogApiHTTPS { | ||
<# | ||
.SYNOPSIS | ||
Enforce http in the url used in all api calls | ||
.DESCRIPTION | ||
Prepends http to the fogserver property of fog server settings | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
|
||
) | ||
|
||
process { | ||
$fogServer = (Get-FogServerSettings).fogserver; | ||
if ($fogServer -notlike "http://*") { | ||
if ($fogServer -like "https://*") { | ||
$fogServer = $fogServer.replace("https://","http://") | ||
} else { | ||
$fogServer = "http://$fogserver" | ||
} | ||
$result = Set-FogServerSettings -fogServer $fogServer; | ||
Write-Verbose "result is $($result | out-string)"; | ||
} else { | ||
Write-Verbose "Http already enabled!" | ||
# $result = $true; | ||
} | ||
return $fogserver; | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
function Dismount-WinEfi { | ||
<# | ||
.SYNOPSIS | ||
Dismounts the EFI system partition if it is currently mounted | ||
.DESCRIPTION | ||
Gets the efi partition mount letter and dismounts it with the mountvol tool | ||
#> | ||
|
||
[CmdletBinding()] | ||
param () | ||
|
||
process { | ||
$mountLtr=(Get-EfiMountLetter) | ||
if ($null -eq $mountLtr) { | ||
Write-Debug "EFI Partition is not mounted"; | ||
return $null | ||
} else { | ||
$mountVol = "C:\Windows\System32\mountvol.exe"; | ||
return Start-Process -FilePath $mountVol -Wait -NoNewWindow -ArgumentList @($mountLtr, '/D'); | ||
} | ||
} | ||
|
||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
function Enable-FogApiHTTPS { | ||
<# | ||
.SYNOPSIS | ||
Enforce https in the url used in all api calls | ||
.DESCRIPTION | ||
Prepends https to the fogserver property of fog server settings | ||
#> | ||
[CmdletBinding()] | ||
param ( | ||
|
||
) | ||
|
||
process { | ||
$fogServer = (Get-FogServerSettings).fogserver; | ||
if ($fogServer -notlike "https://*") { | ||
if ($fogServer -like "http://*") { | ||
$fogServer = $fogServer.replace("http://","https://") | ||
} else { | ||
$fogServer = "https://$fogserver" | ||
} | ||
$result = Set-FogServerSettings -fogServer $fogServer; | ||
Write-Verbose "result is $($result | out-string)"; | ||
} else { | ||
Write-Verbose "Https already enabled!" | ||
# $result = $true; | ||
} | ||
return $fogserver; | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.