 |
|
 |

 |
| |
 |
 |
 |
 |
|
 |
 |
Contrast and compare: Programmatically adding an email alias on Linux: echo newalias: mylinuxaccount>> /etc/aliasesProgrammatically adding an email alias to Exchange on Windows: - Realise there's no simple file to edit. Figure out how to do it using Windows Powershell.
- Put the commands in a file. For some reason it's refusing to run. Oh, scripts have to be signed now. Look through that faff. Realise that you can just tell Windows that it doesn't need scripts to be signed. Do that. It now runs.
- However, when you put the commands in a file, it doesn't work. Realise that you were using the Exchange powershell, but that's not available as a command. Finally manage to google that you need to load the Exchange add-in using a command in the script; now it works!
- Proceed to research a way to get the command to be run from Linux. Try various methods, but all seem to result in various dead-ends due to Windows new 'security' contexts, which despite the fact I've logged in fine, Exchange doesn't like the credentials I was using. Foiled.
- Through googling I realise I can run the task as a scheduled task, if I request it on demand! Win! I suppose I can output the results to a file (as scheduled tasks aren't interactive) and just pick them up afterwards. Ah, foiled, I can't pass arbitrary parameters to a scheduled task. Oh, win again - I can just run a batch file which runs another batch file I've created that contains the actual commands I want running (with parameters) and then collect the output from a file afterwards.
So, in pseudocode: - Log in remotely and write commands to batch file.
- Run scheduled task on demand, which manages to run in the correct security context for the commands I want to perform, by running a batch file which calls my batch file I've just written with the commands in.
- This in turn runs a powershell script, which I've disabled the check for signed scripts on, which actually performs the addition of the alias within Exchange.
- The output of this all gets dumped into a file (because I'm running a scheduled task non-interactively), which my script reads and passes back to the calling Linux program.
Now all I've got to do is wrap that all in a web interface to allow easy changing of email aliases... Windows - despite improvements to allow scripting and the like, you still truly suck in terms of being easy and logical to understand and automate. Current Mood: aggravated
|
 |
 |
 |
 |
|
 |
 |








 |
| |
 |
 |
 |
 |
|
 |
 |
So I decide to call up Dell, to see if I can purchase a graphics card from them. Turns out that even though it's out of warranty, because I haven't called them before they'll offer to either have the laptop picked up tomorrow by courier for repair, which will take 10 days or so, or send an engineer out tomorrow with a replacement motherboard and graphics card.. but that would require me to buy an extended warranty, minimum cost £110 for 1 year. I did enquire into upgrades, but there's a 2-3 month waiting list for the upgraded part - nVidia 8200GTX instead of 7900GTX, and it would cost £325, so I decided against that. I've opted to have it picked up at no cost tomorrow for repair back at the factory. So I'm slightly flabbergasted, in a good way. I think it's because it's an XPS model - a top of the range one that they made a lot of fuss about being reliable and having good support etc. There was even a premium support line number to call on Dell's site. So now I feel a little stupid for my wasted trip to Oxford today, but happy that it's going to get fixed :) Current Mood: flabbergasted
|
 |
 |
 |
 |
|
 |
 |


 |
| |
 |
 |
 |
 |
|
 |
 |
I doubt many of you know, but recently I discovered my Dell XPS M1710 that I bought a little over 3 years ago developed a fault with the graphics card which is causing graphical glitches and worst, crashes when you try to do anything sufficiently demanding. It's interesting that it's a little over 3 years, as this was the length of the 'standard' warranty Dell wanted me to fork out for, which I decided against. I'm quite pleased I didn't now.. However, I discovered a place in Oxfordshire that say they can fix the laptop for me, which is good. I don't fancy all the hassle with posting, waiting, etc. Today they're a bit short-staffed due to snow, so tomorrow (weather permitting) will be a road trip to them to get it fixed. I think I shall do my "Christmas shopping" while I wait. With any luck, £99 later plus fuel costs I will have a fixed laptop again :) This will make me and sessifet25 happy :) Other road trips in the near future are to my Mum's for Christmas day and Boxing day (2.5 hours), then up to see sessifet25 which turns out to be close to a 4 hour drive from my Mum's :S Yesterday - awesome midwinter's feast with kissycat1000 and family, but felt grim in the evening. Today - films and bumming around with jinx_lbc :) Current Mood: good
|
 |
 |
 |
 |
|
 |
 |

|
 |