Questions tagged [rename]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How can I rename sudo user in Mac OSX

In mac I've changed the username via preferences from oldname -> newname However sudo su username remains the same it hasn't changed. How can I change that?
1
vote
1answer
48 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
0answers
28 views

After domain rename, DC still updates the old DNS

After I did a rendom, the DC still updates the old domain with the _msdcs and other RRs. How to check why the old domain is still used by the DC?
0
votes
2answers
148 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
0answers
136 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
2answers
94 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
1answer
1k 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
1answer
60 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
1answer
91 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
2answers
512 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
0answers
482 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
1answer
75 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....
0
votes
1answer
880 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
1answer
904 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
1answer
105 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
1answer
288 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
2answers
89 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
1answer
202 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
1answer
603 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
1answer
550 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
0answers
1k 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
0answers
651 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 ...
3
votes
2answers
30k 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 report from ...
3
votes
1answer
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
2answers
339 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
1answer
373 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
3answers
315 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
1answer
167 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
1answer
206 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
2answers
119 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 ...
5
votes
1answer
4k 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
1answer
65 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
2answers
23k 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
1answer
1k 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
2answers
5k 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
1answer
75 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
1answer
3k 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
2answers
891 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
4answers
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 ...
2
votes
3answers
4k 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
1answer
802 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" ...
3
votes
2answers
4k 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
2answers
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
3answers
3k 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
2answers
188 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 ...
0
votes
1answer
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 ...
7
votes
1answer
5k views

Renaming a TFS Server

Having set-up a TFS server, I subsequently decided to rename the server (it is on a VM so it's been renamed for network purposes). When I now go into TFS Management Console on the server, I'm getting:...
1
vote
2answers
92 views

Rename command mistake, files do not show anymore in windows network drives

I made a mistake with rename command find . -type f -exec rename 's/[^A-Za-z0-9._]//g' {} + After that the files are not under their folders as they used to be and every file has . in front of them. ...
1
vote
0answers
4k views

Cannot rename new folders in a server folder

Windows Server 2008 R2 SP1 - Windows 7 SP1 - Folder located on server, normally accessed via drive letter There is one folder on the network where all users have modify rights. Suddenly people are ...
0
votes
1answer
239 views

Rename subfolder directories Windows 2008 R2

Just trying to work out a way to rename some sub folders and could do with some help. Basically, When our staff write documentation for a proposal, they create a folder with the project name. When ...