Rename Windows Hostname based FileWave Client Name
Description
This Fileset will automatically rename the Windows Hostname of your Clients whenever you rename a Client via the FileWave Admin.
With this Fileset associated, the FileWave Client Name will have the utmost precedence. For example, if the Windows Hostname is changed directly from Windows settings, Active Directory, or any other method, the Fileset will change the hostname back to what is listed as the FileWave Client Name.
You must provide a FileWave Client Name that conforms to the Windows naming convention. Please also avoid using spaces, underscores, or any other special characters that will not be directly translated in the Windows NETBIOS name. There is no name checking logic in this script.
Good name examples:
- FILEWAVE-PC
- TCE-3453234
- PRINT-SRV
Bad name examples:
- Jerry's Desktop Computer
- GO_BEARS!
- THISNAMEISMUCHLONGERTHAN15CHARACTERS
Ingredients
- FileWave Client 13.2.3+
- Windows - Rename Windows Hostname (No Domain).fileset.zip
- Windows - Rename Windows Hostname (Domain Joined).fileset.zip
Machines not joined to Active Directory
- Unzip and Import "Windows - Rename Windows Hostname (No Domain)" Fileset into FileWave Admin.
- Associate Fileset to one or all devices.
- Rename the device via FileWave Admin.
- Update Model
- Wait ~2 minutes (tickle time) for Fileset to activate.
- Future name changes will apply with ~2 minutes. This interval is "hardcoded" and is when Preflight scripts will launch.
- A pop-up will notify the user of reboot, and the device will reboot in 60 seconds.
- If you want to customize the reboot prompt or timeout, edit the following bold text in the "rename_windows_hostname_nodomain.bat" script:
- %windir%\System32\shutdown.exe /r /t 60 /c "Computer renamed to %fwClientName%. Rebooting in 60 seconds." /f /d p:4:1
- If you want to customize the reboot prompt or timeout, edit the following bold text in the "rename_windows_hostname_nodomain.bat" script:
- The machine will be renamed based on FileWave Client Name upon reboot.
- FileWave Client communication will not be affected.
Machines joined to Active Directory
- Unzip and Import "Windows - Rename Windows Hostname (Domain Joined)" Fileset into FileWave Admin.
- Modify the "rename_hostname_domain.bat" script to update Active Directory username/password in bold:
- echo $user = "DOMAIN\USERNAME" > %~dp0rename.ps1
- echo $pass = ConvertTo-SecureString "PASSWORD_HERE" -AsPlainText -Force >> %~dp0rename.ps1
- Associate Fileset to one or all devices.
- Rename the device via FileWave Admin.
- Update Model
- Wait ~2 minutes (tickle time) for Fileset to activate.
- Future name changes will apply with ~2 minutes. This interval is "hardcoded" and is when Preflight scripts will launch.
- A pop-up will notify the user of reboot, and the device will reboot in 60 seconds.
- If you want to customize the reboot prompt or timeout, edit the following bold text in the "rename_windows_hostname.bat" script:
- %windir%\System32\shutdown.exe /r /t 60 /c "Computer renamed to %fwClientName%. Rebooting in 60 seconds." /f /d p:4:1
- If you want to customize the reboot prompt or timeout, edit the following bold text in the "rename_windows_hostname.bat" script:
- The machine will be renamed based on FileWave Client Name upon reboot.
- FileWave Client communication will not be affected.
Sync Computer Name
With FileWave 13.2.3+, FileWave will automatically disable "Sync Computer Name" when a client is manually renamed (right-click>Rename) via the FileWave Admin. This Fileset is made possible by a result of this change.