Questions tagged [rename]
The rename tag has no usage guidance.
119
questions
0
votes
1
answer
865
views
Why does Azure AD joined account name on local computer not sync after change of UPN in Azure AD?
A user asked me to change his account name in Azure AD, which I did (actually did it through GoDaddy UI but end result is change of user principal name). The account name has changed on his Teams and ...
-1
votes
1
answer
122
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 ...
0
votes
0
answers
21
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 ...
0
votes
1
answer
1k
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 ...
-1
votes
1
answer
62
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
...
...
0
votes
2
answers
472
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 ...
0
votes
1
answer
470
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 ...
1
vote
1
answer
906
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 ...
0
votes
2
answers
1k
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 ...
1
vote
0
answers
785
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 ...
1
vote
2
answers
2k
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 ...
0
votes
1
answer
5k
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/...
1
vote
1
answer
284
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 ...
-1
votes
1
answer
429
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 ...
1
vote
2
answers
3k
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 ...
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 ...
-4
votes
1
answer
92
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....
1
vote
1
answer
3k
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 ...
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 ...
0
votes
2
answers
1k
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 ...
0
votes
1
answer
385
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 ...
2
votes
2
answers
95
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 ...
0
votes
1
answer
388
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
777
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 ...
1
vote
0
answers
3k
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 ...
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 ...
6
votes
2
answers
50k
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 ...
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....
7
votes
2
answers
367
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 ...
1
vote
1
answer
659
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 ...
2
votes
3
answers
839
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 ...
0
votes
2
answers
308
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 ...
1
vote
1
answer
233
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....
1
vote
2
answers
136
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 ...
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 ...
3
votes
1
answer
71
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-...
4
votes
2
answers
27k
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 ...
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 ...
1
vote
2
answers
7k
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 ...
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 ...
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 ...
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 ...
4
votes
4
answers
12k
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 ...
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 ...
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"
...
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 ...
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 ...
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 ...
0
votes
2
answers
213
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 ...