Jump to content

HPlum78

Members
  • Posts

    1,530
  • Joined

  • Last visited

Everything posted by HPlum78

  1. I have a daughter that does that! but I don't think its related to your laptop issue, although like her your issue could be hardware related.
  2. ah yes did not think about the comment you are adding to the output.
  3. Hi Randle, I have just done the following in PS to see what I get out $adComputers = Get-ADComputer -filter {operatingSystem -like "Windows Server*"} $ScriptBlock = {ipconfig /all} ForEach ($Computer in $adComputers) { Invoke-Command -ScriptBlock $ScriptBlock write-host $Computer.DNSHostName } and this give me the following out Ethernet adapter Ethernet: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : vmxnet3 Ethernet Adapter Physical Address. . . . . . . . . : 00-50-56-BD-59-0D DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::48c1:c944:db74:d3e%12(Preferred) IPv4 Address. . . . . . . . . . . : 143.210.19.210(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 143.210.19.1 DHCPv6 IAID . . . . . . . . . . . : 302010454 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-5F-20-FE-00-50-56-BD-59-0D DNS Servers . . . . . . . . . . . : 143.210.19.11 143.210.19.12 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{8E4FDA31-5DA9-4875-A4CF-F58B4C5B5144}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes TIV-2K12R2WEBDV.Domain.sch.ac.uk as you can see this outs the name of the server (FQDN) So the questions are I suppose what version of PS/ WMF are you using and where are you putting the write-host/ write-output commands? If you put the write- outside of the for loop then this is why you would only get the last input in the loop (think that makes sense!) that's the only thing that spring to mind of the bat. Hope that helps H
  4. Yeah I would be tempted to look at a site to site VPN rather than uploading to a file share and the likes! you could probably do this via the network hardware directly or throw up a couple of whatever flavour O/S you like and do it via that.
  5. best I can point you at is this Dustin C. Hatch, Enable PowerShell Remoting with CredSSP using... see if it help.
  6. Anyhow the reason I asked is because Dell took them over and changed it to this Active Directory User Management | Dell Software
  7. Why do you need the quest AD cmdlets these days?
  8. I thought that you could only install the proxy (Web Application Proxy) on a server that was not the Federation Server (ADFS server)? if that is indeed what you are attempting to do. Needs to be two separate boxes if my memory serves me correctly.... but I could be wrong as I have not looked at the ADFS 2.0 docs for a while.
  9. If you already have the data you probably do not need to put another hop in your network, if you want some really good data tools I would say kibana see here -> https://www.elastic.co/products/kibana this is a really powerful tool if used correctly and has a lot of uses.
  10. I have been in IT........ well lets say a long time! and until I moved from the small/ med size networks of schools and colleges I had not seen it but when I started looking to move to large environments in universities that's when I came across it. Although I had not sat an exam it was useful to have picked up a book and got the broad strokes of it before rocking up to an interview!. This helped in my move to the uni where I am now, from there they have since sent me on the foundation ITIL course as they do with all IT Services staff here. It is useful for getting an understanding in to how larger environments are run and I would recommend it if that's what you are looking at doing right now, if I had known about it before I would have used some of its principals on the smaller environments that I was in charge of in the past.
  11. Get-EventLog is not the quickest of cats, I would be tempted to use Get-WinEvent with the -FilterHashTable so something like what I have done in the past: Get-WinEvent -FilterHashtable @{Logname='System'; StartTime=$date} -ErrorAction SilentlyContinue -ComputerName $_.Name | Select-Object * | ? {$_.ID -eq '1001' -and $_.ProviderName -eq 'Microsoft-Windows-WER-SystemErrorReporting'} For the date you would have something like this: $date = (Get-Date) - (New-TimeSpan -day 30) and the filter well I was looking for servers that had bugchecked but you can dispense of that where clause or if you are looking for something then make your own. and the last thing is to output it somewhere so a | on the end with export-csv -NoTypeInformation -Path c:\local\scripts\out or \\yourlogserver\scripts\wineventsearch\$SrvName.csv you get the picture I am sure. If you want to see the difference in speed between get-eventlog and get-winevent put it inside of measure-command and see what you get. Hope this is useful. H
  12. R Pi connected to a mobile phone, a bit of PowerShell and some SQL Select statements to get the data and format the mail and then throw it at the R Pi SMS gateway.
  13. https://azure.microsoft.com/en-gb/documentation/articles/backup-configure-vault/ https://azure.microsoft.com/en-us/blog/azure-egress-fee-waiver-for-the-academic-community/ Take a look at the above
  14. What is this server doing? and what do you use for a backup solution? I have just done this on a few servers as they don't like taking a bath by all account (who would have known!) It's not such a massive deal, I would be tempted to test a bare metal restore if possible and mark up the disks when you take them out just in case you need to put them back! as for disks on that server I could not tell you without looking in to it.
  15. This has been simplified in later versions of PS so it can now look like this :- $PSEmailServer = 'yourSMTPServer.yourdom.le.ac.uk' $strMailB = 'Use this to build the body of your mail' $strMailSub = 'Build the subject of your mail here' $strMailAttach = 'Path to any attachment' Send-MailMessage -To "your-GroupName <[email protected]>" -From "<[email protected]>" -Subject $strMailSub -Body $strMailB -Attachments $strMailAttch
  16. SCVMM would be what I would go for, but its been some time since I have had to get involved!
  17. Are these the transaction logs?
  18. You should not have to be in a union or have to argue with network users while trying to implement industry best practice! You secure local system drives not because you are trying to be a barrier to users working it’s because when you come in to work in the morning you and the users have a useable network likewise when you go to bed at night. This is a prime example of the tail wagging the dog, and the cost to the organization of allowing this kind of access needs to be impressed upon the management and users. Ask them to walk into any enterprise and ask for access to the local system drive they would get a policy handed to them and that would be that.
  19. I am a server admin at a university and have my own laptop, my privledged account lets me manage every aspect of the Windows Server Enviroment and any other systems that I am allowed to manage as part of my role. What I do not get is access to the local C drive on my laptop (or any end user Windows device) this is the same for all 200 approx IT Services staff as we don't need access for one and the end user device team don't need us or the other 4K staff on their help desk because we have that access! Also information security says that it a really bad idea to allow access to the system drive. Don't hide the drive lock it down properly and in doing so you will probably save a whole load of pain. If they cannot access the drive most nasties cannot! And that means you have a more stable network/ more stable laptop and desktop environments and your data stays in tact.
  20. $PSEmailServer = 'your.mailserver.co.uk' $strDate=Get-Date-Formatdd-MM-yy-HH_mm_ss Send-MailMessage -To '[email protected]' -From '[email protected]' -Subject "The following user" $env:USERNAME "has logged on to" $env:COMPUTERNAME -Body "The following user" $env:USERNAME "has logged on to" $env:COMPUTERNAME "@" $strDate something like the above in powershell.
  21. I have just done an ITIL course and although is not required off the bat to get a job in HE most if not all ask for it, I just moved to a uni and as a first they put me on an ITIL course run by QA.
  22. Go hyperconverged. Or cloud. Or whatever. You won't save on hardware • The Register That's not to say using cloudy based solution's should not be considered as I think that the cloud has its advantages used in the right way but if you need compute and storage on mass the cloud may be just as costly as hosting your own!
  23. Indeed you are correct best practice does say that code being shared in the code repository should not use the alias name to make them readable. But for internal use stuff that is well commented there is no issue with their use. I automate using PS for a living and churn out scripts and functions for various tasks daily just trying to share some PS Love. oh this little tool can help
  24. I suppose if you don't code much and don't comment your code foreach would be easier. A bit like where-object and ? if you like typing you use the first if you code for a living you use the latter! :-P
  25. Did you know you can use short hand ForEach in ps so instead of:- ForEach ($row in $rows) { you can use the following:- $rows | %{ Hope this helps (or at least saves you guys some key presses!)
×
×
  • Create New...