Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [rename]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
61 views

Windows Server 2019 - renaming files with some naming convention

We received a ton of files from our sponsor and the files are all formatted like this [ABCD] Title - Id - Description [RS][x264][CHKSUM].txt I could manually rename one at a time but there are more ...
user avatar
0 votes
0 answers
19 views

batch folder rename on macos / linux

I have 500+ folders which are named with this pattern: May 2020 The folders contain photos, but for some reason the photos creation date in the meta is wrong, or was overwritten. The correct ...
user avatar
0 votes
1 answer
267 views

Rename folder that contains opened files in a Windows server shared resource

This is a Windows 2012 Cluster with a File server role. I'm trying to rename a folder that contains several files and other folders that are in use by users and the OS says that: Is it possible to ...
user avatar
  • 95
-1 votes
1 answer
56 views

How to rename multiple files by adding word from that file?

I have files : file name: report_2020-10-13-17-11.txt Contain : ... this report was prepared by=John ... file name: report_2020-10-13-17-12.txt Contain : ... this report was prepared by=Doe ... ...
user avatar
0 votes
2 answers
289 views

Replace empty spaces with a zeros in file name

Not a coder but know the logic like understanding a language but not able to speak it. Environment is Windows server 2016. Trying to write a .bat file to replace empty spaces with zeros '0' in a file ...
user avatar
0 votes
1 answer
270 views

Change Domain Name Forest Root

Forest Root Name is abc123.com The only domain in the forest is abc123.com I want to add a new Domain called newxyz.com as a Tree Domain, non-contiguous domain. Using a 2way transitive trust I would ...
user avatar
  • 1
1 vote
1 answer
675 views

Modify Multiple Files Names with PowerShell in same directory

I'm a complete noob when it comes to powershell but I've been struggling with this one all day and not sure why. Each day, I will have a set of files in a directory. The files will be different ...
user avatar
0 votes
2 answers
782 views

Moving files from one folder to another based on specific condition

I have hundreds of thousands of folders of photos. For whatever reason on the export they created several scenarios like this: 2019/01/01 2019/01/01 #2 How do I write a linux command (ideally which ...
user avatar
  • 239
1 vote
0 answers
484 views

Can I rename a Windows failover cluster virtual network name AD object

I have a new Windows 2019 Failover Cluster. I enabled the Automatic Cluster Aware Update feature, and this is functioning correctly. It created a Computer object in AD called CAUBORG6cx. Am I able ...
user avatar
1 vote
2 answers
749 views

Change first character pattern in a file name without changing that same pattern elsewhere in the file name

On a Linux server I have a directory full of files with digits for names. Some of the files start with two zeros such as 00305005. I am writing a bash shell script and one of the steps is to rename ...
user avatar
  • 23
0 votes
1 answer
4k views

Rename a linux user (and their home folder) with Ansible

I have a linux user with various folders and files in their home: User: foo /home/foo/somefolder I want to rename this user and move their home directory to end up with: User: bar /home/bar/...
user avatar
  • 277
1 vote
1 answer
176 views

Rename Files in Folders

I am using windows server 2016 and I am facing a problem. We have been making some changes and I am now in need of having a folder that whenever a file(in this case a specific type (.msg)) is placed ...
user avatar
-1 votes
1 answer
240 views

vsftpd - is it possible to upload local file to FTP server with filename change?

I need to upload a local file from an Ubuntu desktop to an FTP server in a one-liner, while also changing the filename to be unique - by adding a timestamp to the beginning of the filename, for ...
user avatar
  • 1
1 vote
2 answers
2k views

Renaming of domain in Active Directory with Certificate authority

i have domain, washington.example.com on Windows Server 2012 R2. For intergations with office 365, my organization, decided to rename domain name from washington.example.com to example.com. My ...
user avatar
  • 501
1 vote
0 answers
1k views

AD domain rename problems, can't add server of the same name

I have inherited an active directory domain controller, and after adding a number of servers I found that I couldn't add a server with a specific name. I since found out the admin who built the ...
user avatar
  • 1,120
-4 votes
1 answer
86 views

Rename and replace parts with different filenames [closed]

I know there are different questions about this topic but I have found nothing that fits my question: I want to replace a part of a name in a folder but there are different files with different names....
user avatar
0 votes
1 answer
2k views

WMI E_ACCESSDENIED errors when attempting to remotely rename computer via PowerShell

I am trying to run a script to rename remote computers via PowerShell. The problem I'm running into is that I'm getting the following error: Rename-Computer : Cannot establish the WMI connection to ...
user avatar
1 vote
1 answer
2k views

how to loop files in folder and rename extension in sftp

Could someone show me how to rename all files extension inside folder in sftp? Example, I have folder "Test" in sftp and inside this folder have few files, such as, test1.tmp, test2.tmp..... and I ...
user avatar
  • 11
0 votes
2 answers
384 views

Recurse into subdirectories and prefix all files with the name of its holding directory

I have files in subdirectories A, B, C Each directory has files of various names, lets say 1.txt 2.txt 3.txt in each although the names are not relevant as such. I want to run a bash shell script ...
user avatar
0 votes
1 answer
345 views

Unable to rename SCCM asset

Simply put, I delete the asset from SCCM but when I go to reimage the machine I cannot rename. After I choose the image the task sequence begins without prompting for a machine name. What am I missing ...
user avatar
2 votes
2 answers
92 views

Find / Rename command not catching the filenames I want it to find

I have these two files in my home directory - hello_newest.txt goodbye_newest.txt I want to rename them so that the "newest" part of the filename is removed completely, so that they would recome ...
user avatar
0 votes
1 answer
303 views

Renaming a computer kicks out of domain

I use a powershell script to rename hostname computer from our domain: Rename-Computer -NewName $computername -DomainCredential $mycreds -Force -PassThru Most of the time it works, but in a low % of ...
user avatar
  • 101
1 vote
1 answer
867 views

What impact would a domain rename have on Azure AD sync?

We have a local AD domain which syncs up to Azure. We recently decided we want to rename this domain and I am unsure what impact this will have on Azure. The domain rename doesn't change the GUID, so ...
user avatar
  • 11
0 votes
1 answer
648 views

Heroku rename and and redirect from old URL

I have a rails app running on Heroku and I want to rename it. This seems easy enough, but I also have users whom I want to redirect to the new URL if the visit the old one. I suppose one way to do ...
user avatar
1 vote
0 answers
2k views

How to set if a computer in AD is assigned to a particular user?

We have computers that are renamed every time a new employee shows up. This causes a lot of work unnecessary work for the IT department. Now while it isn't always true 100% of the time that each ...
user avatar
  • 4,767
0 votes
0 answers
1k views

the file is open in IIS Worker Process

I have a WCF service hosted on IIS7. I am using source control tool (IBM RTC) to manage code base and continuous deployment on our testing server. but my deployment is failing because IIS has acquired ...
user avatar
  • 101
6 votes
2 answers
45k views

Rename files to add date modified to filename with Windows CMD or simple .TXT

I am attempting to rename a large batch of files to incorporate the dates in the "Date Modified" column from File Explorer into each filename in YYYYMMDD format. I was able to generate a ...
user avatar
  • 63
3 votes
1 answer
10k views

Something renames files to filename.ext.suspected

I've experienced a very strange behavior on a Debian server. This server runs a lot of website, most of them CMS, mainly WordPress. And sometimes something renames my files from wp-db.php to wp-db....
user avatar
  • 31
7 votes
2 answers
356 views

AD: Domain migration or renaming?

I've been given the task of listing down important activities with their estimated effort to help choose the best option/solution for the following scenario: The current domain is named "Domain0" and ...
user avatar
  • 181
1 vote
1 answer
539 views

zsh, zmv mass rename sub directories nothing happening on large volume of directories

I've set autoload -U zmv alias mmv='noglob zmv -W' When on sample data (~20 folders with subfolders) I run mmv images/**/advert images/**/notice it just works as expected. But if I run same ...
user avatar
  • 113
2 votes
3 answers
630 views

Regex Replace Append Filename

How can I append characters to a files name in linux, using a regex? I've seen these two posts https://stackoverflow.com/questions/6985873/change-names-of-multiple-files-linux How to rename multiple ...
user avatar
0 votes
1 answer
229 views

NFS delays renames but not writes?

I have some (6) boxes that have an NFS share mounted on which they write files. All run ubuntu 14.01 and the NFS server is a standard nfs-server from ubuntu packages. This works well. However, when ...
user avatar
  • 115
1 vote
1 answer
214 views

Rename NTFS file to eliminate multiple periods via batch

I at wits end trying to rename NTFS files that have technically legal, but problematic multiple periods in my Windows 2012 Server share Files are dropped in a share that look like this: THIS.IS.THE....
user avatar
1 vote
2 answers
127 views

Will a Windows domain rename require new SIDs?

If I rename my local windows domain on my domain controller will all of the user accounts associated with the "old" domain name need to be recreated? Will the user SIDs still be valid and would my ...
user avatar
  • 225
6 votes
1 answer
5k views

Rename Junk folder in dovecot IMAP server

Being English, I find the terms "Trash" and "Junk" confusing because they mean essentially the same thing. I want to rename these folders on my Dovecot IMAP server to "Deleted" and "Spam" respectively ...
user avatar
3 votes
1 answer
69 views

Renaming files recursively and moving them inside one single directory

I have a project with 500k users in CentOS. The picture file/directory structure was setup like this (yeah... i know): user/0070/ this is the user ID / 1000, so that all users in the range of [70000-...
user avatar
4 votes
2 answers
26k views

How to clone, disjoin & rename a Windows 2008 R2 VM offline, then rejoin domain online

I have a Windows 2008 R2 domain joined server, which should be cloned as test server in the same domain! There is an MSSQL 2012 instance and Team Foundation Server 2013 installed, but this shouldn't ...
user avatar
  • 125
0 votes
1 answer
2k views

GPO's filtered out - wrong domain name reported by BGinfo

I am trying to locate a group policy deployment issue I have. The problem is that domain related GPO's are filtered out. We renamed our domain lately from: CONTOSO to: lan.CONTOSO.com (Netbios name ...
user avatar
  • 1,791
1 vote
2 answers
6k views

After Domain Rename - gpfixup warning - Error 80070057

We run a simple AD (1 DC Server 2012) We had to rename our domain name from a single label domain to: lan.domain.com Following the step by step, all went well, until the last step (that worked ...
user avatar
  • 1,791
0 votes
1 answer
77 views

Best OS to rename Windows Domain

I have a Windows Server 2003 with a domain name of: test.testdomain.com I want to replace this DC with a new 2012r2 but want to know if I should rename the domain first and then promote a new domain ...
user avatar
  • 324
5 votes
1 answer
4k views

After domain rename - will I need to rejoin all users to the new domain?

I am running a Windows Server 2012R2 Domain Server (ADDS). The domain is historically from a 2003 server, and is a single Label Domain: e.g.: Contoso I want to rename it to: Contoso.local (using ...
user avatar
  • 1,791
0 votes
2 answers
1k views

Run Bash Script Another Server

I want to run command one by one, for change the names of the directories on the server. When I run script, directories renamed in server 1. But, directories are not found in server 2. What the ...
user avatar
  • 1
4 votes
4 answers
11k views

AWS - Script to create EC2 snapshots and automatically rename them

I'm currently trying to setup a script (using AWS CLI from an Ubuntu server) that will do the following: Create a snapshot of every existing volume. Those volumes already have a NAME tag (Like ...
user avatar
  • 53
2 votes
3 answers
5k views

Add additional name to a Domain Controller

I am looking to rename a Domain Controller. Functional level and everything else means I can use netdom to carry out the process. Looking a the technet article on the subject I can see the first ...
user avatar
0 votes
1 answer
1k views

PowerShell won't rename an export .csv file

I am trying to rename the file export.csv to the $name but with a .csv extension instead of .file. The output is still $name.file. Import-Module ActiveDirectory $name = Read-Host "Enter Group Name" ...
user avatar
  • 1
4 votes
2 answers
5k views

Batch rename directories with regex via command line on Linux

I have a folder on the server that contains directories that are created daily and are named by date, like so: 07-06-14 08-06-14 09-06-14 etc. At some point I decided that a preferred naming would ...
user avatar
  • 145
0 votes
2 answers
1k views

Best Practice/Workflow for bulk renaming domain PC's

So I've had to deal with renaming whole rooms of PC's before due to them being swapped out and incorrectly named or generally being moved around but I've never settled on a decent workflow. I'll give ...
user avatar
2 votes
3 answers
4k views

Batch rename files that end in a dot

I have a large unix fileserver, with a single large SMB share. It serves to Mac, Linux and windows clients. A large portion of the files on this box have been migrated there from a Mac Xserve. One ...
user avatar
0 votes
2 answers
205 views

I accidently gave all my project files a .gz format, how to revert it?

So I've accidently gave all my files, php, js, html, css files a .gz ending, so they look like: .bowerrc.gz index.php.gz main.css.gz etc... Using Centos 6.4, how can I revert back all the files? I ...
user avatar
  • 143
1 vote
1 answer
1k views

Find and rename files removing suffix

I'm using the following command to move all files (non-recursively) ended in _128.jpg into the 128x160 subdir. This works great. find . -iname '*_128.jpg' | xargs -I '{}' mv {} 128x160 But I also ...
user avatar
  • 709