Jump to content

MatthewL

Members
  • Posts

    5,627
  • Joined

  • Last visited

Everything posted by MatthewL

  1. Thanks, will try this on Monday. Only looking at around 5k users. The migrated statement is just from the script before or is that built into AD?
  2. So if I change that bit to: $AllADUsers = Get-ADUser -server $ADServer ` -Credential $GetAdminact -searchbase $SearchBase ` -Filter * -Properties * It just seems to hang and nothing happens. When I run it is says supply values for the following parameters: and nothing listed so have to stop it running.
  3. If I add them in it doesn't like them. I'm struggling with this bit at the minute, its not liking it: $AllADUsers = Get-ADUser -server $ADServer ` -Credential $GetAdminact -searchbase $SearchBase ` -Filter * -Properties * | Where-Object {$_.info -NE 'Migrated'} #ensures that updated users are never exported. I want it to find all users in the OU not looking at the .info.
  4. I have been looking at this script, also found here: ########################################################### # AUTHOR : Victor Ashiedu # WEBSITE : iTechguides.com # BLOG : iTechguides.com/blog-2/ # CREATED : 08-08-2014 # UPDATED : 19-09-2014 # COMMENT : This script exports Active Directory users # to a a csv file. v2.1 adds the condition to # ignore all users with the info (Notes) field # found on the Telephones tab containing the # word 'Migrated'. ########################################################### #Define location of my script variable #the -parent switch returns one directory lower from directory defined. #below will return up to ImportADUsers folder #and since my files are located here it will find it. #It failes withpout appending "*.*" at the end $path = Split-Path -parent "E:\powershell scripts\ExportADUsers\*.*" #Create a variable for the date stamp in the log file $LogDate = get-date -f yyyyMMddhhmm #Define CSV and log file location variables #they have to be on the same location as the script $csvfile = $path + "\ALLADUsers_$logDate.csv" #import the ActiveDirectory Module Import-Module ActiveDirectory #Sets the OU to do the base search for all user accounts, change as required. #Simon discovered that some users were missing #I decided to run the report from the root of the domain $SearchBase = "OU=FromCSV,OU=TestUsers,DC=70411Lab,DC=com" #Get Admin accountb credential $GetAdminact = Get-Credential #Define variable for a server with AD web services installed $ADServer = '70411SRV' #Find users that are not disabled #To test, I moved the following users to the OU=ADMigration: #Philip Steventon (kingston.gov.uk/RBK Users/ICT Staff/Philip Steventon) - Disabled account #Joseph Martins (kingston.gov.uk/RBK Users/ICT Staff/Joseph Martins) - Disabled account #may have to get accountb status with another AD object #Define "Account Status" #Added the Where-Object clause on 23/07/2014 #Requested by the project team. This 'flag field' needs #updated in the import script when users fields are updated #The word 'Migrated' is added in the Notes field, on the Telephone tab. #The LDAB object name for Notes is 'info'. $AllADUsers = Get-ADUser -server $ADServer ` -Credential $GetAdminact -searchbase $SearchBase ` -Filter * -Properties * | Where-Object {$_.info -NE 'Migrated'} #ensures that updated users are never exported. $AllADUsers | Select-Object @{Label = "First Name";Expression = {$_.GivenName}}, @{Label = "Last Name";Expression = {$_.Surname}}, @{Label = "Display Name";Expression = {$_.DisplayName}}, @{Label = "Logon Name";Expression = {$_.sAMAccountName}}, @{Label = "Full address";Expression = {$_.StreetAddress}}, @{Label = "City";Expression = {$_.City}}, @{Label = "State";Expression = {$_.st}}, @{Label = "Post Code";Expression = {$_.PostalCode}}, @{Label = "Country/Region";Expression = {if (($_.Country -eq 'GB') ) {'United Kingdom'} Else {''}}}, @{Label = "Job Title";Expression = {$_.Title}}, @{Label = "Company";Expression = {$_.Company}}, @{Label = "Directorate";Expression = {$_.Description}}, @{Label = "Department";Expression = {$_.Department}}, @{Label = "Office";Expression = {$_.OfficeName}}, @{Label = "Phone";Expression = {$_.telephoneNumber}}, @{Label = "Email";Expression = {$_.Mail}}, @{Label = "Manager";Expression = {%{(Get-AdUser $_.Manager -server $ADServer -Properties DisplayName).DisplayName}}}, @{Label = "Account Status";Expression = {if (($_.Enabled -eq 'TRUE') ) {'Enabled'} Else {'Disabled'}}}, # the 'if statement# replaces $_.Enabled @{Label = "Last LogOn Date";Expression = {$_.lastlogondate}} | #Export CSV report Export-Csv -Path $csvfile -NoTypeInformation I want to remove a number of the fields no issue but I want it to export employeeID and employeeNumber which I add in and it fails. I've never used powershell before, I can get it to create the column but when it comes to pulling the data it doesn't want to no. Any recommendations or another way to get this data out?
  5. Can you not call upon a cable contractor who would have a license to pull it for you? Other option weather comes under the same thing can a cable not be run around a perimeter wall rather than digging it up? I know the fibre run would be longer. Other option, more expensive long run, 4G type device, VPN back into main network?
  6. How far is the run? I would be running fibre, yes cutting ethernet is an option but if it gets stuck you've got an issue and it could snap if its been there a while it could be brittle. It I was you either purchase or borrow a set of duct rods (you can get them on a reel for larger lengths like 200m), fish a draw rope through and bring the fibre in, you can buy pre-terminated stuff so if you can access the ducts would be my idea.
  7. MatthewL

    Paper maps

    Totally agree with you @mikeprice we was only discussing this the other day about the following of a sat nav on a driving test, people are too reliant on them and actually don't have a clue where they are. I like to know where I am. When I don't know where I am I do have What3Words installed, has its advantages especially if you ever need to call 999.
  8. MatthewL

    Paper maps

    When travelling across the UK I put my trust Philips UK one in and do have some of the county ones. Car has built in sat nav don't use it, do have a TomTom with traffic but don't rely on it, always know where I'm going, only comes into play if lots of traffic or in towns/cities. Also out in the middle of no where no all places are on sat nav, sometimes no phone signal but generally on a map!
  9. Each video has its own unique link as well as vimeo.com and vimeocdn.com to unblock. We have taken a decision not to allow due to some of the content on there and to white list individual videos its to much admin. Video are to be hosted on the platform that is hosting stuff or we don't allow it.
  10. I managed to get this done yesterday, had to install the GET tool to enable to me to even download the file, though that was standard. After some yum issues manage to extract the file and then run the upgrade. Wasn't as straight forward as it could of been but literally ran the file and then did an inplace upgrade finished off on the web interface. Cannot say I am a fan of CentOS, much prefer other versions of Linux.
  11. Gloves cause more issues than they solve. Regular hand wash, alcohol gel will be enough. Gloves don't need t be worn in general day to day work at all, only should be in use if you are in contact with a human carrying out a procedure on them i.e. health care type person. Wash hands regularly, don't touch face you won't go wrong.
  12. If it was a package it would of been easier to upgrade but its a manual install by the looks of it. I will have a look next week when I am back in.
  13. Currently got a CentOS box that I have inherited and and its running PHPIPAM on it. I need to upgrade to the latest version, instructions as per here. In the instructions: [root@ipam /]# cd /var/www/phpipam [root@ipam /var/www/phpipam]# tar -xvf phpipam-1.4.tar [root@ipam /var/www/phpipam]# cp /backup/location/config.php /var/www Mine appears to be installed at /var/www/html/phpipam. So would I browse to html or phpipam to run this? Also if I am say at /var/www/html and I run wget https://downloads.sourceforge.net/project/phpipam/phpipam-1.4.tar that will download the file to that location? Sorry my Linux isn't great so any assistance would be useful? Normally I would use a different distribution but that is what I have to work with!
  14. I'd recommend either Steve at Expo Data Comms (Cleethorpes) on 01472 811613 or Safe Control (Louth) on 01507 609944. Both have done work for me at local authority and NHS level and both work in schools too. Steve would be my first port of call as he is cheaper but not sure how far he travels the county where as Safe Control generally will go anywhere. Both done small scale odd points to new builds with hundreds of points, suppose it comes down to weather they can and price.
  15. If you add the entries manually do you get the error?
  16. Facebook Portal looks a good option, can use WhatsApp to.
  17. Try just adding one IP range in and see if you get the error. So what you could do is add a pause after each line on the script and run the dcdiag and see which gives you the error. Are you using a 10, 172 or 192 range for your network?
  18. When your adding your IP addresses in what format are you putting them in? For mine for example one would be 172.26.14.0/255.255.254.0 then another maybe 172.16.14.0/255.255.255.0
  19. Can you post a copy of your script that PaperCut generates and a copy of your error logs on the DNS side?
  20. Going to ask the obvious question here but seems to have been over looked. For me an employee purchase programme allows said employee to purchase items such as laptops or other things for use at home, spread the cost and reduce the tax paid. Similar to the bike schemes, they were popular in the 2000's with hardware, TV's you name it. There seems to be a bit of confusion from what I can see in this thread, are you expecting staff to purchase a laptop through this for work purposes or is it for them to use at home and for them to do what they want?
  21. If you disable the Mobility service do the printers not work on your iPad's? If I remember this rightly from when I did my training for Apple devices it broadcasts using the mDNS protocol and Bonjour but the Android and Chromebooks need to do a lookup hence the DNS entries for it to work. In the many installs I've done I've always had a mix of clients but running the script generated never had an issue other than DNS not updating quick enough to pass the tests when you complete.
  22. It's not the subnet your printers are on its the subnet that you client's are on that are going to be using it. What are you clients you are using, Apple, Android, Windows, Chrome?
  23. In the bit where it generates the script, did you select your domain and then how did you present your subnet, if I was at home mine would of been 192.168.20.1/255.255.255.0 but if I was at work I would have multiple /24's added. You will find it is to do with how your IP info has been added in, I copy the script and then run command prompt on the DNS server as admin then paste it and check each line is successful in process and then you will see if there are any errors there.
  24. I use LastPass at home suites me fine, we use KeyPass at work for the few of us that need to, got a file we share with them in.
  25. Not heard anything bad about the Netgear ones, plenty on Broadbandbuyer.co.uk. I've got a Huawei one provided by EE, had it a few years and does me for what I need.
×
×
  • Create New...