Sunday, May 21, 2017

Shutdown.exe won't run on Limited User account

Win XP SP3 Stand alone PC


My Username has always been an Administrator but for security, I decided to create another Admin account and change my own account type to Limited. Now, using MY account, several problems including shutdown.exe won't work at all. I can turn off the computer using Start>Turnoff Computer>Turnoff but not using the shortcut button to shutdown.exe on my desktop.


What can I do to use shutdown.exe OR can I create a shortcut to "Turnoff"?


Thank you.

How to clear current “read-only” state on a USB flash drive I setup with Rufus?

Three weeks ago I used Rufus 2.2 to install Windows 10 on my machine, and it has write-protected my flash drive.
I’ve tried diskpart:



diskpart

att disk clear readonly
clean
create partition primary
format fs=fat32 quick


And it kinda worked, it removed the image off the USB, but now it’s showing:



Current Read-only State : Yes
Read-only : No

Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No


And I can’t format it or write on it.



The drive is a a Kingston DataTraveler G4 32GB model, without physical switches. How would I restore it back to normal (rw) state?

windows - Running a .bat file uploading image files, want to know what files are new?

I've got a .bat file that I created, which uploads new files to my company's server.  It works great, but after it runs, I have no idea what files are new vs same.  When the batch file runs, I can see when it pops up as new and when it pops up as same, but I want to create a log file that shows what files are new, excluding the files that weren't uploaded.


Currently, this is my .bat file:


robocopy "C:\HUSAPOGDATA\Product_Library" "\\NOAMSNYW024.noam.heiway.net\NationalAccounts\Category Management\Space Planning Images\Product_Library" beer.mdb
robocopy "C:\HUSAPOGDATA\Product_Library" "\\NOAMSNYW024.noam.heiway.net\NationalAccounts\Category Management\Space Planning Images\Product_Library" SMSB_Library.mdb
robocopy "C:\Pog Images\Images\Beer" "\\NOAMSNYW024.noam.heiway.net\NationalAccounts\Category Management\Space Planning Images\Pog Images\Images\Beer" /E *.1 *.2 *.3 *.7 *.8 *.9 /MIR /S /V /NP /ZB

I use the below command to log the data,


fromlocal2network_productlibrary_new.bat > C:\Merch\log.txt

but I don't want all of the command output, since the file gets huge from thousands of files being uploaded.  Is there a way to separate out the new files from the old in the log file?

Saturday, May 20, 2017

Closing RT windows in Windows 8.1

I used to be able to close RT apps (Reader, Mail, Settings etc) on my Windows 8.1 laptop by hovering to the top of the screen. A black bar slides in with on the right side a red cross. This closes the app as usual.



Now somehow (I am not aware of any updates) I can't close the apps this way anymore. I am using Alt + Tab to get out of the fullscreen apps which gets quite annoying.




With my fingers I can drag the app to the bottom of the screen and the app closes, returning to the Windows 8 Start screen. This on contrary to the red close button, which returned to the previously opened app (I much more like that behaviour). Also working with a mouse in a desktop setting, this doesn't work.



How am I able to return the red cross for RT apps?



/edit:



I now notice the whole active borders are gone. Sticking to the left, the previous apps don't appear. Sticking to the right, the blue bar with settings etc doesn't appear. Swiping my finger from the right border inwards does still work. It doesn't matter if I am using an external mouse or the trackpad.

Disabled automatic login in Windows 10 does not work anymore




In my Windows 10 Pro 64bit I have several accounts without passwords (I won't need it at home, I just want to let each one have his profile) and after following some hacks which involve registry and policy edits I managed to have a solution where the list of my users would show after start without showing the lock screen and without automatically login the last active user.



Now after the last major update it seems to be the case that something changed and the hack does not work again. I could prevent the lock screen, but the system would login no matter what I try.



Did anyone manage to do it very recently without having to set a password for each one?






Things I tried:




Can I disable auto logon on windows 10 home



How to prevent automatic login of the last user in Windows 10?



Windows 8: how to stop auto login


Answer



Since Windows 8, Microsoft have been making it very difficult to retain the classic logon sequence - where Windows stops during startup and displays the list of available accounts. This is only an issue when you want to use multiple accounts without any passwords (eg on a family home computer)



The first fix was a simple registry change to the following registry entry:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\UserSwitch

Enabled = 1 (default is 0 - where Windows auto starts the last account used)



Windows 10 disabled that fix by resetting the "Enabled" value back to "0" during bootup. Windows 10 Pro users were able to setup a Logon script (using Local Group Policy Editor) - which reset the "Enabled" value back to "1" before Windows checked and used it's value. See this thread: How-to-prevent-automatic-login....



The most recent change has been made in Windows 10 Fall Creators Update (1709)
- where Microsoft have disabled the Logon Script fix. See this thread:
Stop_automatic_login....



Currently there is no working fix to restore the classic "Pause at User Account List" option, and so far I have not been able to prove the exact failure mode of the Logon script hack.




The two possibilities seem to be that after the 1709 update:




  1. Windows no longer checks the "Enabled" switch value and just uses a default logon behaviour

  2. Windows has change the timing of the logon steps


    • and the GPEdit logon script now runs either too early or too late to prevent the unwanted auto logon.





Any potential new fix will depend on exactly what Microsoft have changed.


windows - How to prevent opening same program on terminal server by the "same user" with command prompt?


I have several users that use Remote Desktop App (Server 2008) and when they open the .BAT file I have created, it opens up two programs...however, I need to prevent the same program (in this case Outlook) from opening up multiple times...


I created this line in my .BAT file...


tasklist /nh /fi "imagename eq outlook.exe" | find /i "Outlook.exe" > nul ||(start /min Outlook.exe)

It works fine...except, I have multiple users logging on to this "terminal server" and running the same .BAT file...so what happens is when "User 2" logs on, they don't get Outlook started because it already shows as running in the task mananger under "USER 1"...


I need to be able to distinguish the "imagename" and "username"...well the "username" would be %USERPROFILE%


Answer




How to prevent opening same program on terminal server by the “same user” with command prompt?


I have multiple users logging on to this "terminal server" and running
the same .BAT file...so what happens is when "User 2" logs on, they
don't get Outlook started because it already shows as running in the
task manager under "USER 1"



Give the below logic a shot as it'll use the %Username% environmental variable to only get the current TASKLIST entry for the Username of the user account profile that runs that command. . .


TASKLIST COMMANDS TO GET PROCESS FOR ONLY THE USER RUNNING IT


TASKLIST /NH /FI "USERNAME eq %Username%" /FI "imagename eq outlook.exe"

USING WITH YOUR EXAMPLE LOGIC


TASKLIST /NH /FI "USERNAME eq %Username%" /FI "imagename eq outlook.exe" | find /i "Outlook.exe" > nul ||(start /min Outlook.exe)



Additional Reading and Resources


memory - is this iMac RAM compatible with my T530 Lenovo Lunchbox?

I'm looking to upgrade the RAM on my laptop from 8gb to 16gb. It seems that 8gb just doesn't cut it any more and I often find my RAM usage maxed out just by having a couple of tabs open on Firefox and Chrome.



I'm shopping around for laptop RAM and I stumbled across this:



http://www.msy.com.au/pc-components/9692-patriot-imac-so-dimm-16gb-kit8gx2-ddr3-1333-notebook-ram-psa316g1333sk.html




Patriot iMac SO-DIMM 16GB Kit(8Gx2) DDR3 1333 Notebook RAM

PSA316G1333SK



PC3-10600 (1333MHz) Data Rate



204-Pin Dual in-line memory module



Non-ECC Unbuffered SODIMM



2 Rank Double-sided module




7.8US Refresh Interval (8192 CYCLES/64MS)



1.5V Power Requirement



Auto and self refresh capability



PCB height: 1181 (mil)



Serial Presence-Detect (SPD)




100% tested



RoHS Compliant




It sounds good, but I'm no hardware expert. I was wondering if this RAM is only compatible with apple iMacs (seeing as it says "iMac" in the description)? Or would it be compatible with my Lenovo "Lunchbox" T530?

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...