PaulBM Posted May 19, 2008 Posted May 19, 2008 here is a vbscript to automate this. strComputer = "." Set WSHNetwork = CreateObject("WScript.Network") Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_Environment Where Name = 'TMP'") For Each objItem in colItems If objItem.UserName = "[iNSERT DOMAIN HERE]\" & WSHNetwork.UserName then objItem.Delete_ End if Next Msgbox "Timetable Printing Now Avaliable.",vbokonly,"IT Services" just insert the netbios domain name and the script is ready to go. The user need to be logged out of sims when run. Thanks a lot... this has calmed down all our staff. Good work Penfold. Now perhaps SIMS can catch up. I'm still totally amazed that after all this time they can fall foul of the space in a path name problem, I thought all Windows programmer knew of the potential problem by now.
glensc Posted May 20, 2008 Posted May 20, 2008 Please read the notes on the May Re-release from Capita below, if you have already applied the May release and are experiencing any of the problems below please re-run SOLUS after Close of Business on Wednesday the 21st May: ------------------------------------------------------------------------------- SIMS 2008 May Re-Release. 21/05/08 2) The Document Management Server does not work for some users after applying the May Release. When using SIMS .net with a non-Microsoft authenticating proxy server or a Microsoft proxy server with a user account in a different domain you may encounter problems accessing your document management server. To correct this problem open Internet Explorer and go to the Connections tab. Click the LAN Settings button and in the Window that appears ensure the the “Bypass proxy server for local addresses” button is checked. Now click the Advanced button and in the Exceptions area of the new Window enter the name of your proxy server. Entries should be separated with a semi-colon. On restarting SIMS .net you should now be able to access your document management server. Please refer to KB79774 for further details. Jonathan Wood Product Manager (Technical and Releases) I'd best post this on this thread too.Bypassing the proxy server to use the proxy server? Surely that should be Now click the Advanced button and in the Exceptions area of the new Window enter the name of your Document Server
new-2-this Posted May 20, 2008 Posted May 20, 2008 Hi What error are you getting? Have you inserted your domain name? Its the NETBIOS domain not the DNS domain. The script need to be run as the user on there work station. I don't get an error, I just don't see any change in the path for the temp variables and SIMS doesn't register the change either. I am using the correct Netbios Domain name. Any further help would be more than welcomed...
penfold_99 Posted May 20, 2008 Posted May 20, 2008 I don't get an error, I just don't see any change in the path for the temp variables and SIMS doesn't register the change either. I am using the correct Netbios Domain name. Any further help would be more than welcomed... Hi whats your netbios name? then i willl edit the script for you. you need to be logged out of sims when you make the change. 1
Heebeejeebee Posted May 20, 2008 Posted May 20, 2008 Hi whats your netbios name? then i willl edit the script for you. you need to be logged out of sims when you make the change. Make sure the Netbios name is in CAPS. HBJB 1
new-2-this Posted May 20, 2008 Posted May 20, 2008 Cheers Penfold, as HeeBeeJeeBee suggested I needed the domain name in caps. I apologise for blaming your script...
penfold_99 Posted May 20, 2008 Posted May 20, 2008 Cheers Penfold, as HeeBeeJeeBee suggested I needed the domain name in caps. I apologise for blaming your script... Hi No worries, my fault as i couldn't be bothered to write a million lines of vb script to get the netbios name. Will do next time.
mortstar Posted May 20, 2008 Posted May 20, 2008 (edited) I've got a problem with the DocumentServer and people trying to run reports. I use a proxy.pac file to redirect staff to the proxy or not depending on different circumstances. This means that I cannot add the exception the proxy server, as we don't explicitly set the proxy in LAN Connections. Here is the IF statement from the pac file to return (or not) the proxy server:- function FindProxyForURL(url, host) { // variables for returning proxy or no proxy var proxy_yes = "PROXY 10.250.[i](DELETED)[/i]:3128" var proxy_no = "DIRECT" // machine is NOT on school network OR address is in local domain OR SIMS fix - NO Proxy if ((!isInNet(myIpAddress(), "10.250.0.0", "255.255.0.0")) || dnsDomainIs(host, ".curriculum.com") || isInNet(host, "10.250.[i](DELETED)[/i]", "255.255.255.255")) {return proxy_no;} else return proxy_yes; } the "isInNet" string 10.250..... matches the proxy address What I need to know is how SIMS is sending a request when looking for the document server, is it using IP/hostname of the SIMS server etc. etc? Or another way of editing the proxy file so that it creates the same fix as the Capita suggested solution. I'm going to keep playing as well. Thanks Edited May 20, 2008 by mortstar
penfold_99 Posted May 20, 2008 Posted May 20, 2008 I've got a problem with the DocumentServer and people trying to run reports. I use a proxy.pac file to redirect staff to the proxy or not depending on different circumstances. This means that I cannot add the exception the proxy server, as we don't explicitly set the proxy in LAN Connections. Here is the IF statement from the pac file to return (or not) the proxy server:- function FindProxyForURL(url, host) { // variables for returning proxy or no proxy var proxy_yes = "PROXY 10.250.[i](DELETED)[/i]:3128" var proxy_no = "DIRECT" // machine is NOT on school network OR address is in local domain OR SIMS fix - NO Proxy if ((!isInNet(myIpAddress(), "10.250.0.0", "255.255.0.0")) || dnsDomainIs(host, ".curriculum.com") || isInNet(host, "10.250.194.20", "255.255.255.255")) {return proxy_no;} else return proxy_yes; } What I need to know is how SIMS is sending a request when looking for the document server, is it using IP/hostname of the SIMS server etc. etc? Thanks I would say it was using that was defined in the Document Server Setup, which is more than likely the host name.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now