-
Posts
5,590 -
Joined
Content Type
Forums
News
20th
EduGeek EDIT Conference
Blogs
Everything posted by ChrisH
-
You may be able to get one image to fit all, it depends on the mass storage drivers. Even if they are different you can get them all to play nicely together with a bit of work. For building images I always suggest using MDT as i t makes life easier in the long run. You would use WDS to pxe boot your MDT boot images and then go from there. For Windows update just set them to the Microsoft site or implement a WSUS server. For deploying software you can deploy it via a GPO as an MSI. You should be used to MSI if you come from a RM background. That's not to say all the software will come as an MSI and you may feel that you want to put a lot of the software on the base image.
-
Assuming the order of the config is the same in every file I would read the each line into an array and reference it that way Package_location=\\server\packages SYSusername=sysbob SYSpassword=654321 DBlocation=DBserver DBUsername=dbbob SYSpassword=123456 Dim myArray(6) Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile _ ("c:\scripts\name and value.txt", ForReading) j = 0 Do Until objTextFile.AtEndOfStream strNextLine = objTextFile.Readline j = j + 1 arrServiceList = Split(strNextLine , "=") Wscript.Echo "name: " & arrServiceList(0) For i = 1 to Ubound(arrServiceList) Wscript.Echo "value: " & arrServiceList(i) myarray(j) = arrServiceList(1) Next Loop For i = 1 to Ubound(myarray) do something with myarray(i) next
-
Folder structure of user's home folders on the servers
ChrisH replied to Bruce123's topic in Windows Server 2000/2003
I use the same sort of method as ricki for my folder organisation. For sorting user permissions you can just script something like subinacl or use NTFSFIX from wisesoft which is easy to use. The only issue I found with NTFSFIX is you can't change the owner on the folder as well which you will need to do for quotas etc. I have scripted the windows version of chown before and I am just about to look at subinacl to do a quick 3 line batch script as well. I have done 2 scripts recently that dealt with moving home folders. I did one last night that dealt with moving from one folder structure to another using robocopy, so this could maybe be altered for your need and the addition of the code for the permissions could be added as well. I have a Powershell Script to set the owner of the folder to the name of the folder but you need to install the powershell community extensions then run a few commands just to give the permission to change the owner to someone who is not the current user or an administrator. It does work after that though honest -
One thing I will say is use a DFS name space so then you can move your data around, to whatever server you want and all you need to do is update the target and not change server names etc in other configurations/scripts.
-
I wasn't happy with just using the copy function so here is a version that will use robocopy. This will preserve the NTFS permissions as well. Please run it from an elevated cmd prompt or it will not work: cscript CopyFilesRobo.vbs Here is the new script Set FSO = CreateObject("Scripting.FileSystemObject") Const ORIGINAL_ROOT = "D:\Test" ' Source folder Const DEST_ROOT = "D:\Test2" ' Destination folder Set objFolder = FSO.GetFolder(ORIGINAL_ROOT) Set objShell = CreateObject("WScript.Shell") strCmdLine = "" strCurrentFolder = "" Const ROBO_OPTIONS = "/e /zb /copyall /r:3 /w:15" ' Change these robocopy switches to what you want For Each Subfolder in objFolder.SubFolders strCurrentFolder = subfolder.path 'Wscript.Echo "Currently looking at: " & Subfolder.Path & VbCrLf ' For testing to show which folder strCmdLine = "Robocopy " & Chr(34) & Subfolder.Path & "\My Documents" & Chr(34) & " " & DEST_ROOT & "\" & subfolder.name & " " & ROBO_OPTIONS' to build the cmd line that will run 'Wscript.echo strCmdLine ' to show the cmd line that will run ObjShell.Run StrCmdLine,1,True 'run robocopy Next
-
I have never done it, but maybe there is a way to refer to the device name eg and use that as the path somewhere.
-
I was going to do it in Powershell then I remembered I did a similar script for someone last week so I just modified that one. Save the code as MoveFiles.vbs or something like that. It might not be to robust but I told it to continue on error ie file in use etc. Not sure how well it will work. You need the edit the ORIGINAL_ROOT and DEST_ROOT. Please try it on a small test elsewhere first eg copy a few users folders elsewhere and point it at them first. USE AT YOUR OWN RISK!!!!!!!!! On Error Resume Next Set FSO = CreateObject("Scripting.FileSystemObject") Const ORIGINAL_ROOT = "D:\Test" ' Source folder Const DEST_ROOT = "D:\Test2" ' Destination folder Set objFolder = FSO.GetFolder(ORIGINAL_ROOT) strCurrentFolder = "" For Each Subfolder in objFolder.SubFolders strCurrentFolder = subfolder.path ' Wscript.Echo "Currently looking at: " & Subfolder.Path & VbCrLf ' For testing to show which folder FSO.CopyFile strCurrentFolder & "\My Documents\*.*", DEST_ROOT & "\" & Subfolder.Name 'Copy all files in the root FSO.CopyFolder strCurrentFolder & "\My Documents\*.*", DEST_ROOT & "\" & Subfolder.Name ' Copy all folders in the root 'Wscript.Echo "Copy line=" & strCurrentFolder & "\My Documents\*.* " & DEST_ROOT & "\" & Subfolder.Name Next
-
What os will you run this on?
-
Is the my documents folder always in the root of the Old users folder?
-
What Teejay says is ringing some bells for me. That's why I ended up doing it a different way.
-
The USMT or the command line versions just work on their own so you could do as many as you wanted provided your network was up to it etc. You can script the scan state and load state and tools like MDT have this as part of their process as well. There are options to store the profiles elsewhere in the case of a "swing migration" so this is something I might be tempted to do, providing you have the storage space. I have personally only used the tools on a small scale but they seemed pretty good.
-
There will be a specific reset procedure for it which may involve taking a panel off and resetting a jumper or some other method. What make and model is it?
-
Check the window update log on the clients, this will usually give you a good idea of what is going on.
-
Cheers @Ric_ I could do with one at least for a spare, If you could post it to the normal address @SYNACK the connection is currently sent across a VLAN but I want a direct feed for other reasons and the Fibre has been put in place anyway.
-
I have need of an RJ45 to Fibre converter due to the way our Internet connection comes in at one side of the building and the server room is on the other side of the site. The run is over 100m so it will have to be fibre. Our switches are all HP and this will be running into a 5406. I can't seem to find any particular HP ones as they seem to have startech.com ones on their website for which I have asked for prices from my suppliers. Does anyone have any experience with any particular brands (especially with HP switches) or are they something I don't need to worry about too much as they are relatively simple little boxes? Cheers ChrisH
-
Nice job I did the level 2 ABC certificate in welding last year in MIG, TIG and MMA to learn welding for my various projects. I must admit I haven't used it much this year but I will be firing up the MIG tomorrow to weld together some shelves and brackets together for some heavy duty shelves in the garage to hold some of my storage boxes. I was making a large/rack to put above the garage door but it ends up that the door swings up so far at one point the space left would have been useless!
-
I have bought a QNAP TS-412 for home but I cant decide what RAID level to use. It will be used for all my archiving and large files as well as my virtual set up for what ever I have going at the time. The virtual set up will not be taxing though. I wanted redundancy and I was willing to have a hot spare so here were my thoughts: Originally I thought RAID 5 1 hot spare which would give me 2 disks worth of space. Then I though hmm why not play it safer and use RAID 6 and sacrifice a little performance for more redundancy and still have the same amount of space. Then I thought RAID 10 ..... If I am correct I will still get 2 disks worth of space with RAID 10? The only thing that puts me off this is from what I read about my QNAP, it might not be a true 4 channel board, instead it maybe 2 with some kind of splitting going on. Thoughts?
-
Details boy details!!!!
-
I have my backup server on the other side of the site as well.
-
I'm using DPM on a cheap server with 2 gig disks in it. I would prefer a qnap box or something like that for the storage but it does the job. DPM creates replicas of the volumes you tell it to protect and updates these to your schedule. It does this updating by only syncing the changed blocks. You can then also set recovery points (snapshots) as well. After that you can define the retention period for these recovery points. This is for the disk based backups. Long term backups go to tape and this will work well with an autoloader. So this means short backup times and the ability for off site backups. It will do SQL and exchange with no extra costs and will spit out an image file for you to use with bare metal restore for disaster recovery.
-
To undo most cisco commands you usually do the same command but put "no " in front.
-
The ip address is the address of that vlan eg the ones all the clients on that vlan will use as their default gateway. So you shouldn't need to change it unless your completely changing ranges.
-
My 5406 routes without that in the configuration.
-
[wds] "The Task Sequence Has Been Suspended" - Lenovo x120e Netbook
ChrisH replied to scottpowers82's topic in O/S Deployment
It thinks there is already a task, that hasn't been completed so it wont let you start another one. Just drop to the command prompt or boot from the generic LT image and use diskpart to clean the drive eg select disk, clean. -
They should be automatically syncing with the dc and the server that holds the PDC emulator role is the master time source
