• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Login Script Desktop icons windows 7, works son some and not others

::Copy link to Desktop
Copy /Y "\\oem1\l\Operations\Admin Policies.lnk" "%allusersprofile%\Desktop\Admin Policies.lnk"


This is an example of one line in the script, it works on some windows 7 machines and not others. If i run the set command the both read allusersprofile to the same place.

This line works on bith 7 and xp, but not all 7 machines.
0
Onyx_Ems
Asked:
Onyx_Ems
  • 10
  • 7
  • 2
  • +1
1 Solution
 
John HurstBusiness Consultant (Owner)Commented:
Make sure the script was created (saved) by the Windows 7 userid that is using the script.

If admin makes and saves the script, it may not work for a different user.

See if that helps.


.... Thinkpads_User
0
 
Onyx_EmsAuthor Commented:
Did not work, it works on most windows 7 machines, both 32 and 64 bit, windows 2003 server
0
 
jvuzCommented:
Try to use Admin Policies.* instead of lnk
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Onyx_EmsAuthor Commented:
* did not work, when I put a pause in the script to see the error i get this.  "system cannot find the path specified"
0
 
John HurstBusiness Consultant (Owner)Commented:
Make sure you have installed Service Pack 1 on all Windows 7 machine. You may need SP1 for this to work.

Are all the Windows 7 machines Pro or better? This may not work on Windows Home.

... Thinkpads_User
0
 
Onyx_EmsAuthor Commented:
Windows 7 pro 64 sp1, login with domain auth, and user has local admin creds
0
 
John HurstBusiness Consultant (Owner)Commented:
Try disabling Anti-Virus on a machine that does not work. There may be a conflict here. Also disable firewalls (Windows and third party) as a test. Disabling these are just tests and you can re-enable later.

.... Thinkpads_User
0
 
NSBConsultingCommented:
Hi Thinkpads_User,

Attempt to add an administrator's user switch and password at the end of the network location that you are referring to. If you are able to get the result that you are looking for, it is most likely a permission issue between the logged-in user and the server that you are attempting to access. Check that the local logged-in user has permission to read from the network location.

Another way to test this is while logged-in as a user, enter the network location in question and if you are prompted for a user-name and password, there is a permissions issue at the network location that needs to be addressed.
0
 
Onyx_EmsAuthor Commented:
Still does not work, no av no firewall, even logged in as domain admin and no luck
0
 
jvuzCommented:
Try to work wit url instead of lnk
0
 
John HurstBusiness Consultant (Owner)Commented:
At this point, I would take one machine that does not work, back it up, delete all partitions, re-install Windows 7.

Update the BIOS (although this should not be a factor), install Windows, update all drivers, especially chipset and video. Install SP1. Now test and see if the script works.  Assuming so, install software and re-testing the script as you go.

You may have installed a piece of software that is conflicting with Windows 7. I use scripts a lot with Windows 7 Pro 64-bit myself and at clients and they work fine.

... Thinkpads_User
0
 
John HurstBusiness Consultant (Owner)Commented:
Hmmmm,   Also try the script with IP address instead of names. Is there an entry in the hosts file? Or do you need an entry there?


.... Thinkpads_User
0
 
Onyx_EmsAuthor Commented:
ok, ya this is what i am trying to avoid,
0
 
John HurstBusiness Consultant (Owner)Commented:
I understand re-imaging is a pain. Try IP addressing first and see if that helps.

.... Thinkpads_User
0
 
Onyx_EmsAuthor Commented:
tried a different adderss already, this is a pretty fresh install, new machine we will be giving users, and this was the first one that i used to make an image, only hasd office 2010, security essntials, fences, vnc, and updates on it, plus drivers,
0
 
NSBConsultingCommented:
It is important, before going any further, that we understand where the share is located. Is this share on a domain-included server, a NAS, a workgroup machine, etc.
0
 
Onyx_EmsAuthor Commented:
The share is off of our main sever, domain controler, dhcp, dns, user auth, etc.  and it is an open share, and the files are open to everone in the company, that are being copied,

I also tried coping the file to the users desktop to try to run it from there and still get the error,
0
 
Onyx_EmsAuthor Commented:
I found the issue, when i did a fresh install on this machine, it did not create a junction between c:\programdata\desktop to c:\users\defaultusers\desktop\

I had to create the juntions via cmd, then the script works
0
 
John HurstBusiness Consultant (Owner)Commented:
Windows 7 does not use Default User the same way as XP did. I am not sure why some of the Windows 7 computers would work, though.
... Thinkpads_User
0
 
Onyx_EmsAuthor Commented:
most of the windows 7 machines i say had this these junctions for a few machines didn't, the ones that didnt had the script issues

mklink /j "C:\ProgramData\Desktop" "C:\Users\Default\Desktop"
mklink /j "C:\ProgramData\Documents" "C:\Users\Default\Documents"
mklink /j "C:\ProgramData\Favorites" "C:\Users\Default\Favorites"
mklink /j "C:\ProgramData\Application Data" "C:\Users\Default\Application Data"
mklink /j "C:\ProgramData\Start Menu" "C:\Users\Default\Start Menu"
pause
0
 
Onyx_EmsAuthor Commented:
With some further testing, I was able to identify the cause of the issue.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 10
  • 7
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now