Jump to content

ThomL

Members
  • Posts

    388
  • Joined

  • Last visited

Everything posted by ThomL

  1. :S odd. with the androds i've been testing i cannot hit internal servers without a FQDN. Making a papercut setup a bit harder...
  2. Do you have a local DNS entry for http://name/name? and are your DHCP settings configured to have an internal DNS server as the primary? Firewall settings on the server maybe? -edit - Just tested a local site from my S4, via IP i can hit the site but it then gets grumpy, something incorrect with DNS for me - works from mac/pc/ipad though... -edit 2- After some more testing appears to be a know android issue. have you tried using the FQDN? using this i was able to hit the site i'm testing with.
  3. This setup with the last tasks to be setting IP and joining the domain would work? The MAC address integration is something I've just been told about and not really looked into - with your setup do you need to input the Machine name at the begging of the build so MDT/WDS can assign a task from that point? If thats the case and OP doesn't need a fully automatic deployment system this sound like the solution to me - a task executing a .ps or .vbs from a central location to change network adapter setting based on machine name at the end of the build. Then modify/maintain script as things progress? or is there a better way to do this as well?
  4. But to handle the static IP/DHCP/comp. name stuff you might have to look at some sort of lite touch/unattend.xml/scripts/task sequences we run WDS+MDT here and I think the things you want are achievable
  5. After a quick google it does seem to be achievable with IP Helpers and/or some DHCP options (60,66,67). Good Luck! -edit- browser just updated with you're last reply, I remember a a contractor we had in a while ago speaking of modifying AD so that Machine account hold info such as the client MAC addresses and using litetouch to fully automate a build: lite touch launches picks up predefined comp name from AD, then installs OS setting comp name from AD, then a separate task within the task sequence sets the static IP from a in-house pre-configured script. that way it would run DHCP address through build and then assign static at the end of build or something similar to that? :S -edit 2- would it be a case with litetouch to pick up the MAC address reference that - pick up machine name and then from there pick up ip address then deploy the OS so that these values are applied before joining a domain and not messing up DNS -edit 3 - ..... am I thinking about MDT and not WDS :S I am feeling confused!
  6. For this to work wouldn't the server IP have to be accessible on all subnets? or would it be a case of the DHCP server for that subnet broadcasting the address of the server for PXE? ...or the need for multiple NICs on the deployment server accessible on all subnets so that the DHCP of that subnet can broadcast an IP that is accessible.. I don't have a test bench to check any of this, just thinking aloud....
  7. You're welcome This is a slightly optimised version of the above: $user = $_POST['user']; $pass = $_POST['password']; $host = $_POST['host']; $days = $_POST['lifetime_days']; //retrieve days from user submission $hours = $_POST['lifetime_hours']; //retrieve hours from user submission $mins = $_POST['lifetime_mins']; //retrieve mins from user submission $sec = 0; //set seconds - stops loops from throwing error but also used for validation $arr = array($user); $arr2 = array($pass); foreach($arr as $value) { $index = 0; while($index < strlen($value)) { $ascii .= '.' . ord($value[$index]); $dot_separated = implode(".", $value)." "; $index++; } echo $ascii." "; } foreach($arr2 as $value) { $index = 0; while($index < strlen($value)) { $ascii2 .= '.' . ord($value[$index]); $dot_separated = implode(".", $value)." "; $index++; } echo $ascii2." "; } echo $host." "; if(is_numeric($days) || is_numeric($hours) || is_numeric($mins)) { //checks foruser submitted numeric values... $sec = ((86400*$days)+(3600*$hours)+(60*$mins)); // conversion to seconds echo $sec." "; //echo used to display converted data } else { //if invalid or no user submitted numeric values... echo "User did not input a time value "; //alerts invalid or no user submitted numeric values } ?>
  8. This should work with your current html page and provide some echos to show it is working: $user = $_POST['user']; $pass = $_POST['password']; $host = $_POST['host']; $days = $_POST['lifetime_days']; //retrieve days from user submission $hours = $_POST['lifetime_hours']; //retrieve hours from user submission $mins = $_POST['lifetime_mins']; //retrieve mins from user submission $sec = 0; //set seconds - stops loops from throwing error but also used for validation $arr = array($user); $arr2 = array($pass); foreach($arr as $value) { $index = 0; while($index < strlen($value)) { $ascii .= '.' . ord($value[$index]); $dot_separated = implode(".", $value)." "; $index++; } echo $ascii." "; } foreach($arr2 as $value) { $index = 0; while($index < strlen($value)) { $ascii2 .= '.' . ord($value[$index]); $dot_separated = implode(".", $value)." "; $index++; } echo $ascii2." "; } echo $host." "; if(is_numeric($days)) { //if users submitted days... $sec += 86400*$days; //convert users submitted value from days to seconds, add resulting value to current total of seconds } if(is_numeric($hours)) { //if users submitted hours... $sec += 3600*$hours; //convert users submitted value from days to seconds, add resulting value to current total of seconds } if(is_numeric($mins)) { //if users submitted mins... $sec += 60*$mins; //convert users submitted value from days to seconds, add resulting value to current total of seconds } if($sec>0){ //If values received from html and converted... echo $sec." "; } else { //if no values were received from html... echo "User did not input a time value "; } ?> The conditions on the if statements only work with numeric vales so you may want to add some validation for this.
  9. this little function i've just coded and tested, it works for in my test environment: function convert_to_sec($days,$hours,$mins) { $sec = 0; if(is_numeric($days)) { $sec += 86400*$days; } if(is_numeric($hours)) { $sec += 3600*$hours; } if(is_numeric($mins)) { $sec += 60*$mins; } return $sec; } ?> so if you call the function and then pass it the days, hours, mins to be converted it will return the correct value in seconds from my testing. This is very simple though, no error trapping and probably a better way to do this but its what I've quickly come up with. Will look at a better way to do it shortly.
  10. Can you just pass the input values to a php function to return the value in seconds? is this what you're looking to achieve? the user enters days hours mins and then you want this returned as how many seconds this is? Its early i need more coffee!
  11. Does anyone have any ideas with this? I thought I had a fix with a registry key but that doesn't seem to be working...
  12. Any permissions you set will get inheritance, you would have to set it explicitly per user. Breaking inheritance changing ownership to an admin and then allowing the user modify but denying delete - for each user. you may be able to put the file in the users home area then using GPO/batch files set the permissions as they log in or once a year or something to achieve the above... could you not place a link on students desktop/home area to shared storage that has the files in? that way you could set permissions with deny student delete inheritance? and once set at the folder level the sub folders/files would inherit the correct permissions? much in the same way home drives should be set up with a "this folder subfolder and files" as you mention?
  13. screen shot of how you have the permissions currently set? i'd target a security group that contains all students as members and then set the deny, making sure that there is no inheritance etc.
  14. I read an article a while ago on this site: Duolingo | Learn Spanish, French, German, Portuguese, Italian and English for free comparing it to rosetta stone, i used it for a while and thought it was very good - and free!
  15. ah that sucks, forgot that part of the spec.
  16. any good? KFA2 MDT X4 GT 610 1GB DDR3 Dual DMS59 to 4 x DVI.. | Ebuyer.com
  17. It is worth mentioning that if you are using Roaming profiles this will not work very well, especially if you are redirecting app data, or deleting profiles when users log off of machines. Users will suddenly lose anything they have pinned as it doesn't sit within the normal areas of the appdata that get redirected. The way that i have overcome this is by using a logon/logoff script to backup the users pinned items and to restore them when they log on. Logon Script DEL /F /S /Q /A "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\*" copy /y "\\nas01\%username%\TaskbarPinnedItems" "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" REG DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband /F REG IMPORT \\nas01\%username%\TaskbarPinnedItems\Taskbar-Pinned-Items-Backup.reg log off script mkdir "\\nas01\%username%\TaskbarPinnedItems" copy /y "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" "\\nas01\%username%\TaskbarPinnedItems" REG EXPORT HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband \\nas01\%username%\TaskbarPinnedItems\Taskbar-Pinned-Items-Backup.reg /y Any one using this will have to update the script to work in their environment, if someone has a better solution please comment and let me know!
×
×
  • Create New...