Jump to content

halbaradkenafin

Members
  • Posts

    1,219
  • Joined

  • Last visited

Everything posted by halbaradkenafin

  1. You can go a step further and make it a onliner if you wanted to Get-ADUser -Searchbase "some ou path" -Filter {Enabled -"False"} -Properties HomeDirectory | Foreach { Move-Item $_.HomeDirectory "\\somewhere else"} But for something that's likely to be run again (probably around the same time each year) then I'd go for a slightly longer and more readable script, perhaps even with some calculation in it for which year group to archive so it can be set as a scheduled task to run on X date each year and just ignored after that (documented somewhere of course).
  2. It's been a slow day for me and I spend way too much time working with Powershell.
  3. Try commenting out the move-item line (# at the start of the line) and then adding in Write-Host $User.homeDirectory and see if it produces what it's supposed to. If it doesn't then wrapping it in $() should work. Edit: Need to add "-Properties HomeDirectory" to the end of the Get-ADUsers query as it doesn't return that by default and so when you try to call it from the Move-Item command it has no value.
  4. Finally got round to watching Oblivion as it was on Netflix, pretty good film overall with very nice visuals and a pretty cool plot. Off to see Mad Max tomorrow, expecting it to be light on plot but I'm going to see it for all the effects, explosions, cars and other staff you get in a Mad Max film.
  5. We have some help videos we've made for various things and remind staff about them every few months and ask for suggestions on more to create. We've ran training sessions in the past on Impero (only 1 attendee but it's intuitive enough that it doesn't need much training) and on using our RDS setup. I'll probably send a few emails out in the next few weeks asking if staff would like help with anything once exams are over as it's probably the only quiet time of year for most of our teachers.
  6. Chrome everywhere as it syncs everything across devices (I know FF will as well but I'm already set up with Chrome). IE and FF when needed for work or testing but that's not often.
  7. I've got a script which does almost exactly that, here's a modification that will do what you want: $Users = Get-ADUser -Filter {Enabled -eq "False" -SearchBase "OU=,OU=SomeParent,OU=Other Parent,DC=Domain,DC=Local" New-Item -Path "\\Server\Destination\Folder\Here" -ItemType Directory -Force -WhatIf Foreach ($User in $Users) { Move-Item -Path $User.HomeDirectory -Destination "\\Server\Destination\Folder\Here" -WhatIf } Update the paths and run it as is first to ensure it's going to do what you want and then remove the -WhatIf and run it again to get it to do it's thing.
  8. So it's like 2048? Could be very addictive game to start playing.
  9. Did it in the holidays when there was only 3 other staff in. I'm sure there was a good reason for trying it but I can't remember now.
  10. Could be a connector on the monitor though. I'd hook up a laptop to it and see if it's the same.
  11. Anyone else doing this sort of thing I'd strongly suggest using an account which doesn't have a profile stored on the server. I managed to kill our file server and DCs by logging in 300+ PCs simultaneously with the same account, I had to shutdown all the clients and reboot the servers to fix it after watching clients struggle to log in for about 30 mins, some would log in normally, others loaded a temporary profile and others just stuck at "Welcome".
  12. I'll echo everything said so far, it's a great piece of kit for classroom management and remote support. We also use it to allow staff to reset pupil passwords which saves both sides time, both for keeping pupils in the lesson and allowing us to get on with more important things (especially after holidays when we could have had 20+ pupils a lesson who didn't know their password). It's ability to send commands to multiple computers using Mimic scripts is pretty awesome as well, I've used it when testing deployments of SCCM updates and packages to force the sccm client to check in with the server, or when I've rebuilt a whole classroom to log in to every PC and run IE to get past the first run dialog (we had an annoying problem from that). If you've got no need for classroom management functionality then it's probably not worth the money, but if you do need a solution to that then all the extra functionality makes it more than worth the cost.
  13. The -force switch was already there which should handle that, the other option would be to run it on the server (as either a domain admin or local admin) it's hosted on and change the path to C:\ or D:\ (or whatever you use). If that doesn't work then it's possible to take control of those folders using a module called NTFS Security and the Set-Owner command.
  14. That was me forgetting to change it between testing it in a console and typing it up here, I should have just used Get-History | clip and just pasted that.
  15. Thanks to this thread I've realised it's been way too long since I had a proper roast beef dinner. I need to either learn to make one myself or drop by my mam's when she is making one, I'll probably go with the later as she is very good at it and it means less dishes for me to do.
  16. Assuming you have all the pupil folders in the same location: $RootFolder = "\\server\path\to\root" $UsersFolders = Get-ChildItem -Path $RootFolder foreach ($Folder in $UsersFolders) { if (Test-Path "$Root\$Folder\rootpathtoremove") { Remove-Item -Path "$Root\$Folder\rootpathtoremove" -force -whatif } } Runs in Powershell, just change the paths for the root directory and the path within each users area. It will first test that the folder exists (to stop it throwing errors basically) and then tell you which folder it's removing, once you're happy that the correct folder is being removed from each user then just change -whatif to -confirm:$false and it will remove the folder and all child items.
  17. You can add to the existing Item Level Targeting to also check the OU or security group that the computer is in and assign printer based on that. This works well if you've got printers that staff should have access to in certain rooms but not pupils in that room. For any printer in a room that everyone should have then I'd go with setting up the printers through GPP on the Computer Settings side (with targeting as normal) as that will set them up at start up rather than login. You can probably just copy/paste them into other side of GPP from the current one so you just have to adjust whatever targeting you have in place.
  18. There are various guides out there for how to set up a chocolatey repository and have oneget use it. I haven't done it myself yet but it's on my list of things to do with my lab I'm setting up.
  19. That assumes pupils can make shortcuts, or even right click in places where shortcuts can be made.
  20. Currently I have the following open: Chrome (about 15 - 20 tabs on average), RDP Client, MMC for RSAT, Impero, Excel (not used much usually), Powershell (2 consoles and 1 ISE), various explorer windows, Email in OWA as Outlook has screwed up it's own install and I haven't bothered reinstalling. I also use Notepad++, Putty and some other applications on occasion but not often enough to have them open all the time.
  21. We've got Impero set up to allow staff to do it. If you don't have that it's possible to do with a custom MMC and delegation of rights in AD.
  22. For some reason I wanted to be a priest for a while, I've never been very religious so I'm not sure what the appeal was. I also had a phase of wanting to be part of the Thunderbirds team but I suspect I was too young to fully realise they weren't real. Towards the end of secondary school I wanted to join the RAF as some form of support staff but never really looked into it properly for some reason.
  23. There is the Internal Note option which doesn't get sent to the user. I've used that before to log more technical information about the ticket that the end user didn't need to know but I wanted to record.
  24. You might be able to do it by setting the default printer to a PDF writer and then selecting a few of the documents and clicking Print in explorer. It should send them to the default printer and you'll just have to click through the Save button to wherever you want them storing, hopefully it will keep the name of the file to make it easier to work with. This obviously assumes that all the documents are in the same folder, if not then you're looking at a more complicated/time consuming solution.
  25. They are also dropping support of http at some point in the future.
×
×
  • Create New...