Questions tagged [rename]

118 questions
0
votes
1 answer

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/somefolder I would do this by hand with sudo usermod…
Worp
  • 287
  • 1
  • 4
  • 15
0
votes
2 answers

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 to recurse into each so that the files in each are…
Richard L
  • 33
  • 5
0
votes
3 answers

How can I recursively change the case of files and folders under bash

I have some files and folders that are all in uppercase that I want to rename to their lowercase equivalent. What would be the best way to go about doing this in bash on a Linux system? As an example I might have: . |-- FOLDER0 | |-- SUBFOLDERA | …
David Dean
  • 441
  • 6
  • 11
0
votes
1 answer

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 here? Update: This problem was attributed to a…
0
votes
1 answer

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 the cases, after restarting the computer is out…
Deitools
  • 101
0
votes
1 answer

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 this would be to create a whole new Rails app with…
Toby 1 Kenobi
  • 247
  • 2
  • 12
0
votes
0 answers

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 lock on log file. Error message: The command…
Abhash786
  • 101
  • 1
0
votes
1 answer

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 renaming files on the share by one system, it can…
glormph
  • 115
  • 4
0
votes
1 answer

Rename active directory account name

I have an existing user account within active directory. I'm using the naming convention "MyApp-dev" for dev, "MyApp-qa" for qa and so forth, up to prod. Our IT services department wanted to rename these accounts to "myapp-dev-service", i.e. all…
David
0
votes
1 answer

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 is: CONTOSO and unchanged). I started to…
Saariko
  • 1,791
  • 13
  • 45
  • 73
0
votes
1 answer

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 controller or promote the new 2012r2 and then…
0
votes
2 answers

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 error could be in the…
psce
  • 1
  • 1
0
votes
1 answer

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" Get-ADGroupMember -identity "$name" -Recursive…
sur4
  • 1
  • 2
0
votes
3 answers

Renaming files - Regex needed

I have 640 files in the following form string02_01.ext, string02_02.ext, string02_03.ext ... I need to rename all of them so that every 40 items it changes pattern, for instance first 40s: a0b0c0.ext, a1b0c0.ext, a2b0c0.ext ... second 40s:…
Mike
0
votes
2 answers

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 an example of the most recent situation. (Win 7…
Crimsonfox
  • 341
  • 1
  • 2
  • 16