Windows 10: Administration

Discus and support Administration in Windows 10 Customization to solve the problem; By mistake i removed myself as admin and now its just default admin and no other admin in the pc.so now i cant run any setups can anyone help with how... Discussion in 'Windows 10 Customization' started by vikasSekarreddy, Sep 22, 2019.

  1. Administration


    By mistake i removed myself as admin and now its just default admin and no other admin in the pc.so now i cant run any setups can anyone help with how to gain back the admin right.

    :)
     
    vikasSekarreddy, Sep 22, 2019
    #1
  2. angus Win User

    Settings can't be opened using the built-in administrator account


    Hello,
    Unfortunately I have the same issue as Dabz from upgrading win7 to win10.
    I've tried opening settings using all the suggested methods and it will not load using my account with Administrator access nor the built-in Administrator profile. I also tried other methods not listed such as using Run. Control panel is just a stepping stone to add users in Settings.
    I'm also having explorer.exe issues, which I believe is preventing Settings from loading.
    Using cmd (Admin) I successfully created a new user profile [and granted admin access also using cmd (Admin)], however win10 will not allow this account to log on. win10 does not list this new user within control panel but it does in the start menu. win10 will not allow to log in or switch to the new account via the start menu either.
    I can access settings in Safe Mode but this will not allow me to create a new account.
    Any help/suggestions will be greatly appreciated.
    Cheers
     
    angus, Sep 22, 2019
    #2
  3. Marby Rey Win User
    no administrator permission

    Hi Ryan,

    Let us assist you to have an Administrator permission. To start, follow the steps below to enable the Windows Super Administrator Account.

    • Type CMD on the search box.
    • CMD will appear at top.
    • Right click on it, then choose Run as administrator.
    • Type this command & hit Enter: Net user administrator /active:yes.
    • After you enable the Super Administrator account, log out on your existing account then log into Super Administrator account.
    • On the Super Administrator account, you can now create an Administrator account or give Administrator permission on the existing account.

    After you created an Administrator account, we suggest that you disable the Super Administrator account by following the same steps and using this command:
    Net user administrator /active:no.

    Let us know how it goes.
     
    Marby Rey, Sep 22, 2019
    #3
  4. ddelo Win User

    Administration

    Export All Administrative Events to Excel


    To analyze events, from the Windows Event Viewer, there is a simple way to export all Administrative Events to Excel, with PowerShell.

    Exporting all Administrative Events to Excel is a simple two Step process, as described here:

    Step 1 - Create the Administrative Events View .xml file
    1. Open Eventviewer (%windir%\system32\eventvwr.msc)
    2. Navigate to: Event Viewer (Local) > Custom Views > Administrative Events
    3. In the “Actions” pane select “Filter Current Custom View”.
    4. Select the the XML tab.
    5. Press Ctrl+A to select all the XML code of the Custom View.
    6. Open a notepad, paste the selected code and save the file to your Desktop as AdmEvtView.xml


    Step 2 - Create the csv file with the events
    1. Download the ExportEvtCSV.zip file, which contains the script ExportEvtCSV.ps1 and unzip it, on your Desktop.
      It's not a fancy script, just basic PowerShell commands to create a csv file on the Desktop.
    2. In Windows Search, type “ISE” (without the quotes) to open “Windows PowerShell ISE” and Run as administrator
    3. To allow running the script, change the ExecutionPolicy, for this session. To do that, in the Console pane type:
      Code:
      Code:
      Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -force
    4. In the Windows PowerShell ISE, open and run the script: ExportEvtCSV.ps1
      The script will create a csv file with a name YYYYMMDD.HHMM.csv on the Desktop
    5. When done, open the newly created .csv file, format the columns as needed and optionally save it as .xlsx, if you wish.
    That’s it! You now have all the Administrative Events in Excel for filtering and further analysis. Administration :)

    Now to the more technical hard stuff... *Confused

    There is a reason for running the script from within PowerShell ISE!

    It would be great if everything was also working perfectly, when running the script from an elevated PowerShell too.

    We can run it from an elevated PowerShell, which means that you just follow the Step 1, as above but for the Step 2 instead of the ISE you run the script from an elevated PowerShell.

    The problem is that it will work only for anybody who has en-US format for the dates. Everyone else, who has another format (i.e. en-GB, fr-FR, el-GR etc.), the dates are not translated properly by Excel (although the script uses the –UseCulture switch) and remain as text in the en-US format.

    I'm not sure if this a bug of the "export-csv" cmdlet, but although it runs the way it supposed to from within the ISE, from PowerShell there is a problem with the dates format.
    As I haven’t found a way to overcome this obstacle, any suggestion from the PowerShell gurus of the forum (like my good friend Shawn @Brink, for instance), is welcome.
     
    ddelo, Sep 22, 2019
    #4
Thema:

Administration

Loading...
  1. Administration - Similar Threads - Administration

  2. unable to remove MS account from Windows 11 administrator account

    in Windows 10 Software and Apps
    unable to remove MS account from Windows 11 administrator account: I have tried so many ways and getting mad. At the end I decided to open a question: mine was an "administrator" normal account. Then I logged into Edge with MS account and now my local windows account is linked to it. no way to remove. There is no REMOVE link from - accounts...
  3. unable to remove MS account from Windows 11 administrator account

    in Windows 10 Gaming
    unable to remove MS account from Windows 11 administrator account: I have tried so many ways and getting mad. At the end I decided to open a question: mine was an "administrator" normal account. Then I logged into Edge with MS account and now my local windows account is linked to it. no way to remove. There is no REMOVE link from - accounts...
  4. Demo mode on new pc. Ask for Administrator password

    in Windows 10 Customization
    Demo mode on new pc. Ask for Administrator password: Demo mode on new pc. I followed the instructions, but it asks for Administrator password . I have tried trs10, but that does not work. this is a windows 11 hp all in one computer...
  5. Demo mode on new pc. Ask for Administrator password

    in Windows 10 Gaming
    Demo mode on new pc. Ask for Administrator password: Demo mode on new pc. I followed the instructions, but it asks for Administrator password . I have tried trs10, but that does not work. this is a windows 11 hp all in one computer...
  6. Demo mode on new pc. Ask for Administrator password

    in Windows 10 Software and Apps
    Demo mode on new pc. Ask for Administrator password: Demo mode on new pc. I followed the instructions, but it asks for Administrator password . I have tried trs10, but that does not work. this is a windows 11 hp all in one computer...
  7. How can I reset my administrator password on Windows 10?

    in Windows 10 Gaming
    How can I reset my administrator password on Windows 10?: I have tried the hold shift go to restart and enter troubleshooting on start up, I select save my files and then I am prompted to enter the administrator password that I forgot. I don't get to the next screen to select reinstall windows from the cloud or from this device....
  8. How can I reset my administrator password on Windows 10?

    in Windows 10 Software and Apps
    How can I reset my administrator password on Windows 10?: I have tried the hold shift go to restart and enter troubleshooting on start up, I select save my files and then I am prompted to enter the administrator password that I forgot. I don't get to the next screen to select reinstall windows from the cloud or from this device....
  9. How can I reset my administrator password on Windows 10?

    in Windows Hello & Lockscreen
    How can I reset my administrator password on Windows 10?: I have tried the hold shift go to restart and enter troubleshooting on start up, I select save my files and then I am prompted to enter the administrator password that I forgot. I don't get to the next screen to select reinstall windows from the cloud or from this device....
  10. Need to be able to use administrator rights when connected using quick assist. Is there a way?

    in Windows 10 Software and Apps
    Need to be able to use administrator rights when connected using quick assist. Is there a way?: I am hoping someone can provide some help here.I have a few companies I provide IT for, with 70 employees each. I have been using Quick Assist to provide remote support but I'm encountering a problem.All my users are Standard users on their machines by default, so for...