LocalSystem is the Computer account itself. Every computer on the domain has an account. My testing machine is named NAS-CR4737 -- it's domain account name is NAS-CR4737$.
If you grant the "Domain Computers" group permissions to files on a server, then my VBScript -- running as the LocalSystem account -- can access them just fine. It authenticates as "[DOMAIN]\NAS-CR4737$"
The computer accounts even have their own passwords that they automatically renew every 30 days. So the LocalSystem account is perfectly capable of authenticating across the network -- SQL seems to be the only thing that doesn't recognize it.
I prefer not to store a username and password in clear text in my script if I can help it - but I do realize that's an option.
Thanks
Main Topics
Browse All Topics





by: NightmanPosted on 2009-04-03 at 11:55:37ID: 24063106
The reason is that LocalSystem is local to the machine on which it is running, and not a domain account. You either need to run it as a domain account (e.g. create a service account specifically for this purpose) or connect as a SQL user.
al Catalog=SystemsInventory;U ser Id=myUsername;Password=myP assword;
To do this, you would need to create an SQL login on the server, give it access to the database, and then persist the login credentials in your connection string:
Provider=SQLOLEDB.1;Data Source=NAS-LCLSYDB01;Initi