Jump to content

Ulaiphur

Member
  • Posts

    80
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Romania

Everything posted by Ulaiphur

  1. OK, so basically I will need to create a user account as autologin, from that user account run the .hta script above and the do it's thing. The only problem with this is that a user is free to bypass the script and get into windows. Even if the script is launched full screen, If i press alt+tab or windows key it allows me to the the entire OS. I just want the users to be able to use just this script.
  2. The hta file needs to run before the windows login prompt. The idea of the script is to provide users with an UI to be able to select a login option, remote connect to a server using RDP or login locally (default windows login).
  3. I'm trying to create an HTA script that will allow users to select login through RDP or local login. I have edited the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogonand edited with mshta C:\startup.hta Now, startup.hta has two basic commands, LocalLogin which should start the local login window and TSLogin which starts the RDP session. As shown below: <html><head><HTA:Application ApplicationName = "Login Selector" Border = "Thick" BorderStyle = "Dialog" Caption = "Yes" ContextMenu = "False" Scroll = "No" Selection = "False" SingleInstance = "True" SysMenu = "Yes" ShowInTaskBar = "No" MaximizeButton = "No" MinimizeButton = "No" WindowState = "Maximize"><title>Login Selector</title><style></style></head><script language="VBScript">Sub ExitProgram window.close() End SubSub TSLogin()Set objShell = CreateObject("WScript.Shell") objShell.Run("mstsc /f /v:someaddr.somesite.com"), 1, TrueEnd Sub Sub LocalLogin()Set objShell = CreateObject("WScript.Shell") objShell.Run("explorer.exe"), 1, TrueEnd Sub</script></head> <body bgcolor="white"><font face="Arial"><h3>WinLogon</h3><br><br>Please choose login option<br><br><button onclick='vbscript:TSLogin'>Terminal Services</button><br><br><button onclick='vbscript:LocalLogin'>Local Account</button></font></body></html>The problem is that when I try to select LocalLogin it does not launch the windows login screen. How come launching explorer.exe from winlogon works but doesn't when I executed through this script?
  4. No, it is not server related. It all comes down to Windows 10, the updates they release need to perform lots of checking before they are downloaded and installed. Which is why you need 8GB of ram when you update the OS from SP1 because otherwise it'll run out of memory and issue errors. These add stress to the system and an increase in time. The alternatives you mentioned are just like microsoft they do no filtering of any kind, VHDDownloader gets all updates from microsoft while Simplix uses the updates from VHD and package them into an installer. No difference.
  5. @Atari800XL You need to filter some of the useless updates that slowing down windows. You cannot do this on your own, you need either a script or tool. The best sollution that I can give you is to stop using windows updates, disable them in your unattend.xml and use a 3rd party tool like http://download.wsusoffline.net/. Within it you have the possibility of filtering your updates as to exclude the ones you do not want. By default it already excludes quite a bit of useless updates and it works better than windows updates, and faster too.
  6. I'm looking for a way to run a program with my credentials while being able to pass-through UAC, like RunAsSPC. I like RunAsSPC but it also hardcodes the executable name within the encypted file and that makes it hard to use. I just want my username and password encypted in a file and then use that file as a reference in .cmd scripts in order to automatically run an executable as admin. Thank you
  7. Is there a way to get the hostname of a windows 7 installed os from a bootable windows 7 dvd? One possible way would be to load the registry hive off the installation and search it there, but isn't there an easier way to achieve this? Thank you
  8. my bad, I kinda forgot about this parameter.
  9. Could you please consider my request above, about overwriting default values by importing an .ini file? And also consider adding an option of selecting the edition by cmd. It always defaults to the first entry, which is either Home or Basic. Thank you.
  10. What is this recovery? Is it the none parameter?
  11. I was wondering if the compression setting inside imagex (/compress none|fast|maximum) have anything to do with the speed of applying a wim file. Will setting compression to none make the apply operation faster or just the same? Thank you.
  12. Don't think you can do that if those processes are running. I've been asking myself this for so long... If trustedinstaller.exe is an executable how come it is a user? Or only SYSTEM is the user and calls trustedinstaller?
  13. I have a test environment composed of A server 2012 promoted to a domain controller and 2 other machines connected to it. I would like to create a domain user that will have more permissions than built-in admin. I need to be able to replace system files and have full control over the os, which the built-in admin does not provide. Is such a thing possible?
  14. This does not help anybody. The idea of an ini file is to overwrite any existing values. Hence load ini file. A correct way was the program to remember the previous paths used BUT if a .ini file was loaded, it will overwrite the previous used values.
  15. Yes but If I load this inf file it still does not change the folder paths. Is that normal? Please try it and confirm.
  16. My .ini file and it does not work. It will remember the last folder used instead of reading the directories from the .ini. [WinNT5]Source=BootDest=C:TempDest=UxTheme=0SaveDriveletter=0DpBase=0MaxPwAge=0AutoLogon=0ExplorerDetailView=0ShowHidden=0ShowSecurityTab=0ShowQuicklaunch=0ShowFileExt=0ExplorerStatusBar=0ShowCmdContextMenu=0NoHibernate=0RemoveShortCutTo=0RemoveShortCutArrow=0RemoveXPTour=0RemoveOpenWith=0RemoveBallonTips=0NoSecurityWarning4DownloadedFiles=0DisableAutoRebootWAU=0DisableSFC=0NoPagefile=0DisableSystemrestore=0[WinNT6]Source=BootDest=C:TempDest=UxTheme=0SaveDriveletter=0MountInstallationDriveAs=C:NoAutoCheckSelect=0ShowCmdContextMenu=0ShowHidden=0ShowFileExt=0ShowAllTrayIcons=0SmallTaskbarIcons=0XP_TaskbarButton=0ShowQuickLaunch=0RemoveShortCutTo=0RemoveShortCutArrow=0NoSecurityWarning4DownloadedFiles=0NoAeroTrans=0MyCompOnDesktop=0SmallDesktopIcons=0DisableUAC=0DisableOnSoftRemove=0HibernateOFF=0NoPageFile=0NoRebootonBSoD=0DisableSystemrestore=0DisableAutoRebootWAU=0DisableWin8Animation=0DisableWin8LockScreen=0BootToDesktop=0DisableWin10TaskBarIcons=0SourceDir=.\ImagesUnattendDir=.\UnattendOemDir=.\OEM
  17. I created a new WinNTSetup.ini and added as follows but it didn't work. The program remembers the last used data but will not use the paths within the the ini. SourceDir=.\ImagesUnattendDir=.\UnattendOemDir=.\OEMAlso tried it as a parameter like so: -sourcedir:UnattendSo what are these? ini or parameters and why aren't they working?
  18. Excelent, thank you. It is perfect in every way.
  19. I couldn't find any reference online and I am curious what is the difference between <EnableFirewall>false</EnableFirewall>and <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall> <PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall> <PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall></component>I'm interested in disabling the firewall completely, all profiles. Thank you. LE: I figured it out. The first is for PE environment while the other is for the OS.
  20. I second it. Make the prompt close itself.
  21. I'm trying to set up an answerfile that will enter in audit mode, without actually creating any new local users. Below is a snippet of my xml file but it outputs an error: <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><AutoLogon><Password><Value>as</Value> <PlainText>true</PlainText> </Password><Username>Administrator</Username> <Enabled>true</Enabled> <LogonCount>999</LogonCount> </AutoLogon><UserAccounts><AdministratorPassword><Value>as</Value> <PlainText>true</PlainText> </AdministratorPassword></UserAccounts></component>The idea is setup windows, with no accounts and just update the image and sysprep it. Thank you
  22. Could you fix so that the default folder, when selecting an image, OEM etc. is in WinNTSetup dir? And also include a parameter in command-line to set this folder: like -startdir:E:\ or something?
  23. Fine, the skip the automatic selection and instead add the format parameter. Only knowledgeable people use the command line, so it should be there.
  24. Yes, I know, but on simple setups like windows-only setup, you can easily do this.
×
×
  • Create New...