Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delete Administrator folder on reboot

Featured Replies

How can I delete the Administrator folder on reboot

I renamed Administrator account but it is using the old folder - I don't like this

As far as I know, you can only change the name of the Administrator account and its folder through an unattended installation of Windows. You can change the name as many times as you like when in Windows, but the folder will always be named what was defined during installation.

Just run the following batch as the administrator, then the administrator's folder is deleted after the next login. But it would be a piitty, if the next user, who logs in, is the administrator. If you want to make sure, that this isn't happening, you could write a little batch, which only deletes the folder, if the logged in user, isn't the administrator.

@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\070 /VE /D "Delete Administrators folder" /f
REG ADD %KEY%\070 /V 1 /D "rmdir /s /Q \"%USERPROFILE%\" " /f

You also could do the job, without having to run the script as the administrator and having the script run before login, but first thing would be a little more complicated ( would have to get the folder's path out of the registry) and the second thing I'M not quite sure, how to do, would be necessary a little reading.

To change the name of administrator's directory, you've got to change the path in

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID\ProfileImagePath, where for SID you have to enter the administrator's SID.

Hope this helps a little.

Edited by Doc Symbiosis

To change the name of administrator's directory, you've got to change the path in

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\SID\ProfileImagePath, where for SID you have to enter the administrator's SID.

Well... It works. I'd like to know how to get the SID (domain) through a batch file too. The full string always starts with "S-1-5-21-" and always ends in "-500".

Edited by Tomcat76

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.