Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Where is the location for the windows logon script?

11 Feb 2015   #1
tomcolgan

Windows 7 Enterprise 64bit
 
 
Where is the location for the windows logon script?

I am looking for the location for the windows logon script file. I need to compare two script files
The issue that I am having is that one laptop is not automatically mapping network drives even though the user is in the correct active directory group.
Another user is in the same group and has the network drive mapped, so I need to compare both logon scripts from both laptops.
Maybe these scripts can be read or edited in notepad but I need the location if anybody can help?


My System SpecsSystem Spec
.
11 Feb 2015   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Hello Tomcolgan,

To find the location of a user's logon script, while logged in as the user, run the command:
net user "%USERNAME%" | find "Logon script"
or for a domain user,
net user "%USERNAME%" /domain | find "Logon script"
My System SpecsSystem Spec
11 Feb 2015   #3
tomcolgan

Windows 7 Enterprise 64bit
 
 

Thanks for your reply but can you check my screenshot it doesn't seem to work

in the username part am I to use only LDAP or full email address for domain user

also in the domain part do I put in my domain or leave it as domain


Attached Images
Where is the location for the windows logon script?-capture.png 
My System SpecsSystem Spec
.

11 Feb 2015   #4
Tookeri

Windows 7 Pro 32
 
 

You should use the exact command as Pyprohly suggested in bold. Copy and paste it
My System SpecsSystem Spec
11 Feb 2015   #5
tomcolgan

Windows 7 Enterprise 64bit
 
 

Okay thanks I'll give this a try in work tomorrow! And I will revert back
My System SpecsSystem Spec
12 Feb 2015   #6
tomcolgan

Windows 7 Enterprise 64bit
 
 

Okay so I copied and pasted it in and nothing came back only the words Logon Script


Attached Images
Where is the location for the windows logon script?-capture7.png 
My System SpecsSystem Spec
12 Feb 2015   #7
Yard Dog

Win 7 Home Premium SP1 32 bit
 
 

Hello.. have you looked at this to make sure all is good ? : Internet Troubleshooting Guide
My System SpecsSystem Spec
12 Feb 2015   #8
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by tomcolgan View Post
Okay so I copied and pasted it in and nothing came back only the words Logon Script
Then there is no logon script assigned to the user. However, this logon script feature isn't the only method one can go about for executing a script during logon.

Every user has a Startup folder. Each item in this Startup folder is invoked during a user's logon phase. It's rather informal for a domain administrator to setup user accounts this way, but it does get the job done.

The location of a user's Startup folder is
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or the Startup folder for all users on the machine,
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Try checking those locations for the logon script.
My System SpecsSystem Spec
12 Feb 2015   #9
tomcolgan

Windows 7 Enterprise 64bit
 
 

Quote   Quote: Originally Posted by Pyprohly View Post
Quote   Quote: Originally Posted by tomcolgan View Post
Okay so I copied and pasted it in and nothing came back only the words Logon Script
Then there is no logon script assigned to the user. However, this logon script feature isn't the only method one can go about for executing a script during logon.

Every user has a Startup folder. Each item in this Startup folder is invoked during a user's logon phase. It's rather informal for a domain administrator to setup user accounts this way, but it does get the job done.

The location of a user's Startup folder is
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or the Startup folder for all users on the machine,
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Try checking those locations for the logon script.

Found nothing, would you know what the script file is? e.g .bat .exe .ini
My System SpecsSystem Spec
12 Feb 2015   #10
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

Can you run the commands Pyprohly gave you for the PC/user that does work correctly ?
If you find the working script, can you copy it to the PC/user (same location) that doesn't work?
Maybe that will help ???
My System SpecsSystem Spec
Reply

 Where is the location for the windows logon script?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Script to change the location of Documents folder in Windows 7
Hi! I currently inherited a Windows 7 image that has the default location for the users' My Documents folder configured incorrectly. When a domain or local user account logs in to the machine for the first time the Documents directory, which by default should be located on %userprofile%\Documents...
General Discussion
change location windows 7 password box on logon screen
I there a way to change the location of the password box on the Windows 7 logon Screen. I managed to remove the Picture Frame on the login screen using instruction found on this forum months ago, but now, I am an assassin's creed fan, and I have changed the background screen to the Assassin's...
Customization
Logon script not running on Win 7
Hi all, new here. Have a little experience with Win 7, a lot with Win XP. So here's my situation. I'm trying to create a login script for use on my work's PCs. Most all of our boxes are running XP. Putting this login script into the Starup folder works fine, the script runs on startup and...
General Discussion
Logon script issue...
Hi, I work in a fairly large company and we use a logon script (pushed thru GPO) utilizing "NET USE" to access shared drives. In XP, the system simply skips those drives which user has no access rights to and goes back straight to the C:\drive prompt. This effectively puts an end to the script...
Network & Sharing
PowerShell logon script
Ok, so this doesn't necessarily have to do with Windows 7, but I originally wanted to reply to a post on Vista forums and somehow I ended up here. Anyway... I actually tried all of this on Windows Server 2008 - set policies, scripts and logged on there. Here's one way that actually works. 1)...
Network & Sharing
Logon Script
I like to create small websites, just doing fun stuff with HTML and such. I thought it'd be easier to share the htdocs folder(I'm using XAMPP - that's where are all HTML etc files are) and edit those files / create new files from any comp in my network. So... I wanted to run a script (net use...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 22:13.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App