< Back

Remove-HPEOSPWindowsUnattend

Tue Jan 14, 2020 1:50 am

NAME Remove-HPEOSPWindowsUnattend



SYNOPSIS

The Remove-HPEOSPWindowsUnattend cmdlet deletes the unattended answer file from Windows ISO file.





SYNTAX

Remove-HPEOSPWindowsUnattend [-ImageFile] <String> [-OutputFile <String>] [<CommonParameters>]





DESCRIPTION

The Remove-HPEOSPWindowsUnattend cmdlet deletes the unattended answer file from Windows ISO file. This cmdlet will

either create a new ISO file in OutputFile path or overwrite the input ISO file by deleting the unattended answer

file. By default, this overwrites the input ISO file with unattended answer file.





PARAMETERS

-ImageFile <String>

Specifies the Windows ISO file as input. The value must be the Windows local full path.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-OutputFile [<String>]

Specifies the output file to create a new Windows ISO after deleting the unattended answer file. The value

must be Windows local full path.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

System.Management.Automation.SwitchParameter







OUTPUTS

None

When the cmdlet does not execute correctly, output with the error message is produced. Otherwise, this cmdlet

does not generate any output.





NOTES





???? Not supplying OutputFile overwrites the input ISO file.

???? This cmdlet only supports Windows Server 2012 R2 or Windows Server 2016 ISO.



EXAMPLE 1



PS C:\\> Remove-HPEOSPWindowsUnattend -ImageFile C:\\TestFolder\\WindowsServer2012R2.iso



PS C:\\>



This example shows how to delete unattended answer file from input ISO and overwrites the input image file.

EXAMPLE 2



PS C:\\> Remove-HPEOSPWindowsUnattend -ImageFile C:\\TestFolder\\WindowsServer2016.iso -OutputFile

C:\\TestFolder\\NewWindowsServer2016.iso



PS C:\\>



This example shows how to delete unattended answer file from input ISO and creates a new ISO without unattended

answer file in output path.



RELATED LINKS

http://www.hpe.com/servers/powershell

Edit-HPEOSPWindowsUnattend

Get-HPEOSPWindowsUnattendInfo

Use-HPEOSPWindowsUnattend