Backup D365WifConfig - d365collaborative/d365fo.tools GitHub Wiki
Backup the wif.config file
Backup-D365WifConfig [[-OutputPath] <String>] [-Force] [<CommonParameters>]
Will backup the wif.config file located in the AOS / IIS folder
Backup-D365WifConfig
Will locate the wif.config file, and back it up. It will look for the file in the AOS / IIS folder. E.g. K:\AosService\WebRoot\wif.config. It will save the file to the default location: "C:\Temp\d365fo.tools\WifConfigBackup".
A result set example:
Filename LastModified File
wif.config 6/29/2021 7:31:04 PM C:\temp\d365fo.tools\WifConfigBackup\wif.config
Backup-D365WifConfig -Force
Will locate the wif.config file, back it up, and overwrite if a previous backup file exists. It will look for the file in the AOS / IIS folder. E.g. K:\AosService\WebRoot\wif.config. It will save the file to the default location: "C:\Temp\d365fo.tools\WifConfigBackup". It will overwrite any file named wif.config in the destination folder.
A result set example:
Filename LastModified File
wif.config 6/29/2021 7:31:04 PM C:\temp\d365fo.tools\WifConfigBackup\wif.config
Path to the folder where you want the web.config file to be persisted
Default is: "C:\Temp\d365fo.tools\WifConfigBackup"
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $(Join-Path $Script:DefaultTempPath "WifConfigBackup")
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to overwrite the destination file if it already exists
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Florian Hopfner (@FH-Inway)