Skip to main content

Rename Windows Hostname based FileWave Client Name

Description

This Fileset willrenames automaticallya renameWindows computer so its Windows hostname matches the Windows Hostname of your Clients whenever you rename aFileWave Client viaName theshown in FileWave Admin.

With this Fileset associated, the FileWave Client Name will havebecomes the utmostsource precedence.of Fortruth. example, ifIf the Windows Hostnamehostname is changed directly fromin Windows settings,Windows, Active Directory, or anyanother other method,tool, the Fileset willchanges change the hostnameit back to what is listed as the FileWave Client Name.Name the next time the rename workflow runs.

You must provideUse a FileWave Client Name that conforms tofollows the Windows computer naming conventionconventions. Please also avoid usingAvoid spaces, underscores, orapostrophes, anyand othernames speciallonger characters that will not be directly translated inthan the WindowsNetBIOS NETBIOS name.limit. There is no name name-checking logic in thisthese script.scripts.

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 - Renamefor Windows Hostname (No Domain).fileset.zip Windows - Rename Windows Hostname (Domain Joined).fileset.zip

Updated Filesets using PowerShell

Older batch-file versions are still attached for reference, but the PowerShell Filesets are the current examples to start from:

    Windows - Rename Windows Hostname (No Domain).fileset.zip Windows - Rename Windows Hostname (Domain Joined).fileset.zip

    Machines not joined to Active Directory

    1. UnzipDownload, unzip, and Importimport "the Windows - Rename Windows Hostname (No Domain)" PowerShell Fileset into FileWave Admin.
    2. Associate the Fileset towith onethe orWindows alldevices devices.that should follow their FileWave Client Name.
    3. Rename the device viain FileWave Admin.
    4. Update ModelModel.
    5. Wait ~2 minutes (tickle time) for Filesetthe client to activate.check
        in
      1. Futureand namerun changesthe willFileset. applyThe withincluded ~2 minutes. This intervalworkflow is "hardcoded"designed andaround isthe whennormal PreflightFileWave scriptspreflight/tickle will launch.
      timing. A pop-up will notify theThe user ofreceives reboot,a reboot prompt, and the device willreboots reboot in 60 seconds.
        If you want to customizeafter the rebootconfigured 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 timeout. The machineWindows willhostname beis renamedchanged basedto onthe FileWave Client Name uponafter reboot. FileWave Client communication willis not beaffected affected.by the rename.

          Machines joined to Active Directory

          1. UnzipDownload, unzip, and Importimport "the Windows - Rename Windows Hostname (Domain Joined)" PowerShell Fileset into FileWave Admin.
          2. ModifyReview the "rename_hostname_domain.bat"included scriptscripts tobefore deployment and update the domain account placeholders for your environment.
          Test with a small group first. Domain-joined renames depend on Active Directory username/passwordpermissions, inDNS/domain bold:health,
            and echothe $userreboot =completing "DOMAIN\USERNAME" > %~dp0rename.ps1
            echo $pass = ConvertTo-SecureString "PASSWORD_HERE" -AsPlainText -Force >> %~dp0rename.ps1 successfully. Associate the Fileset towith onethe orWindows alldevices devices.that should follow their FileWave Client Name. Rename the device viain FileWave Admin. Update ModelModel. Wait ~2 minutes (tickle time) for Filesetthe client to activate.check
              Future name changes will apply with ~2 minutes. This interval is "hardcoded"in and isrun whenthe Preflight scripts will launch. Fileset. A pop-up will notify theThe user ofreceives reboot,a reboot prompt, and the device willreboots reboot in 60 seconds.
                If you want to customizeafter the rebootconfigured 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 timeout. The machineWindows willhostname beis renamedchanged basedto onthe FileWave Client Name uponafter reboot. FileWave Client communication willis not beaffected affected.by the rename.

                  Sync Computer Name
                  With FileWave 13.2.3+, FileWave will automatically disable "Sync Computer Name" whenWhen a client is manually renamed (right-click>Rename)in viaFileWave Admin, FileWave disables Sync Computer Name for that client. That allows the Fileset to apply the FileWave Admin.Client ThisName Filesetto isWindows made possible by a resultinstead of thishaving change.Windows immediately sync its old computer name back into FileWave.