Topic: After Switch to Admin, whoami -> nt authority\system ?  (Read 2226 times)

After Switch to Admin, whoami -> nt authority\system ?
« on: November 20, 2013, 09:57:13 PM »

whorled

  • Apprentice
  • *
  • Date Registered: Nov 2013
  • Posts: 9
& echo %username% -> MINWINPC$

Is this expected behavior?  unattend.log says 'Rename the Administrator account to Admin', shouldn't I be seeing Admin somewhere in whoami or echo %username% ?


[optional tldr]
I am trying to install some dx9 components in a thinapp and it is complaining that "Current logon user doesn't have the Admin privilege.  Please logon again as an Administrator".  I realize this is winpe, & I am working inside a thinapp sandbox, so that might not be the whole story, but this is where I am starting, since the switcher feature is a convenient component of winbuilder.

I waited for the network to finish loading before using the Switch User to Admin shortcut.  Actually well after, I have a script of my own that waits for it to finish before mapping & relabeling drives, and mounting some truecrypt diskfiles from the nas.  It also runs speedfan and my pstart which has menu items that are on the truecrypt disks.  After that I am manually running the hwpnp to load all the dism integrated drivers, except for the nvidia gtx 770 which for the moment I am installing manually in the dm.  The nvidia driver isn't installing properly yet if it is integrated, but Updating it in the dm does work, using 331.65, no reboot necessary.  All that is working fine.  After that, I am trying to switch to the admin account.

I looked thru SwitchUser.cmd, alogon.cmd, & psexec.cmd to try and see where in the process things might not be working for me.

Everything in unattend.log says completed successfully

If I look in hklm\software\Microsoft\Windows NT\CurrentVersion\Winlogon, all the values set by alogon.cmd are there.

After using the Switch User to Admin shortcut, the screen blanks out, the default windows logon bmp appears, & when the desktop comes back the programs that were running in the system tray are gone, so it seems that

tskill explorer
psexec -i -d -s explorer

did happen too.  But the desktop is still the same one in the system/default user desktop folder, and with my same custom background.

tskmgr shows uxsms is running, net stop and net start uxsms reports stopped & started successfully, nothing changes.

The X:\Users\Administrator folder is empty, & an Explorer window still shows SYSTEM at the top of the tree under Desktop.  But ctrl alt del brings up the normal windows 'lock computer/switch user/change password/log off/task manager' screen, instead of the winpe shell switcher.

Any thoughts or ideas?  I presume this must work for others, is it working for me too & I just can't tell?  Everything else works for me now, except the iscsi which for some reason is breaking netbt, but that isn't on the top of my short list atm.

I have only been working with Win7pe SE for a few days, but I have learned how to make a couple .scripts to install drivers now, for truecrypt & speedfan, and have all my hardware installing painlessly.  This is such an amazing project, I am so grateful for all the work that has been put into it.  Been reading old posts on msfn & reboot.pro trying to catch up a little, still a lot to go but it is taking up *all* my time  ;)  Very very nice work.  thnx muchly to all

 

Powered by EzPortal