Jump to content

halbaradkenafin

Members
  • Posts

    1,219
  • Joined

  • Last visited

Everything posted by halbaradkenafin

  1. Slap a 100mn mwd on the orca and you'll warp in about 10s (from gates and other standing starts, not from stations unfortunately). It's a simple click warp/jump in overview and activate then deactivate mwd for 1 cycle and away you go.
  2. If you'd sysprep'd the machine before capture then the best thing to do would be to look up the log files for the failed start up. They should be stored on the local machine but I can't remember exactly where, you can also grab the unattend.xml file from the machine and run it through a checker (I believe there is an online tool for it or as part of the deployment toolkit) and it will tell you of any problems with that,which is possibly causing the error.
  3. You're on the right track, depending on the nature of the network failure then the emails are either sitting on the server waiting to be sent (which should have happened when connectivity was restored) or sitting in the client waiting to be sent to the server. If the user is getting angry about this then approaching it calmly and stating that you'll need to check their machine for any issues with Outlook, should only take a few minutes and if the emails are that important then I'm sure they can spare that much time. If the user hasn't received or sent emails since then it's possible that a quick test of the outlook connectivity will fix it, hold Ctrl and right click the Outlook icon in the system tray and you'll get an option for it. A reboot is probably needed as well just to be sure.
  4. Could be in the Outbox waiting to be sent.
  5. I'm playing most nights, got a monk and wizard at 70 and levelling a crusader (gem of ease op). I'd be up for some grouping up and doing higher torment content as I'm mostly doing t2 and t3 at the moment for blood shards and loot.
  6. Decided to watch a random film on Netflix yesterday and found "He Who Dares: Downing Street Siege" and despite numerous plot holes and terrible decisions by the characters it falls into the "so bad it's actually sort of good" category, mostly due to the lead villain being kind of amusing and not taking things seriously. If you've got a spare 90mins then I'd probably find something else to watch unless you are really bored.
  7. The built in permissions cmdlets aren't too bad either but the module makes it even easier.
  8. Grab the NTFS Security Module and it makes that super easy. Edit: Code would look something like this: Add-Ace -Path "\\someserver\somefolder" -Account Everyone -AccessRights FullControl Get-childitem -path "\\someserver\somefolder" -Recurse | Enable-Inheritance
  9. As requested by @Garacesh here is the script I've got for creating VMs. Need to update the help for it but I'll get to that next week. Some minor things about the script: 1) It can accept input from the pipeline, so you can do things like Import-CSV -Path "C:\folder\file.csv" | .\Create-VM.ps1 and it will create all the VMs for you (see CSV format at the bottom for what I use currently) 2) Invoke-Expression is bad and I should feel bad, but it works for setting the RAM size and VHD size and I feel a little better about it by using the ValidateRange option for the parameter so you can only enter numbers in that range. 3) I'm wanting to add in some better validation of the $OS option using ValidateScript but I haven't played around with that yet and I wanted to keep it reasonably simple for a simple test environment, if I ever get a SAN/NAS set up to host my VMs and ISOs then I'll rework that but it's easy enough to change. <# .Synopsis Script for creating VMs and configuring their settings. .DESCRIPTION Script will create VMs and configure the settings for it, including create VHD, mount the VHD and ISO (if needed). Script takes input from the pipeline such as from Import-Csv. .EXAMPLE Example of how to use this cmdlet .EXAMPLE Another example of how to use this cmdlet #> [CmdletBinding()] [Alias()] [OutputType([int])] Param ( # Name of VM to create [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName, Position=0)] [string]$Name, # Startup Memory for VM [Parameter(ValueFromPipelineByPropertyName)] [validaterange(512,3096)] $Memory = 512, #Generation of VM to create [Parameter(ValueFromPipelineByPropertyName)] [ValidateSet(1,2)] [int]$Generation = 2, #Switch to connect VM [Parameter(ValueFromPipelineByPropertyName)] [string]$Switch = "HyperVSwitch", #VHD Size [parameter(ValueFromPipelineByPropertyName)] [validateRange(10,40)] $VHDSize = 15, #OS iso to mount [parameter(ValueFromPipelineByPropertyName)] [string]$OS ) Process { If (Get-VM -Name $Name -ErrorAction SilentlyContinue) { Write-Error "Can't create VM as one already exists with the name $Name" } else { #Try creating the VM using basic settings try { $Memory = Invoke-Expression -command "$($Memory)MB" New-VM -Name $Name -MemoryStartupBytes $Memory -BootDevice CD -NoVHD -SwitchName $Switch -Path "C:\ProgramData\Microsoft\Windows\Hyper-V" -Generation $Generation } catch [system.Exception] { Write-Error "Error creating VM due to $($_.Exception.Message)" exit } #Try to set up VHD try { $VHDPath = "c:\Users\Public\Documents\Hyper-v\Virtual Hard Disks\$name.vhdx" if ((Test-Path $VHDPath) -ne $true) { $VHDSize = Invoke-Expression -Command "$($VHDSize)GB" New-VHD -Path $VHDPath -SizeBytes $VHDSize -Dynamic } if ($Generation -eq 1) { add-VMHardDiskDrive -VMName $Name -Path "C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\$Name.vhdx" } else { add-VMHardDiskDrive -VMName $Name -Path "C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\$Name.vhdx" } } catch [system.exception] { Write-Error "Error creating VHD or assigning it to VM due to $($_.Exception.Message)" exit } #try to set up DVD drive for iso try { if ($OS -eq "Win8") { Set-VMDvdDrive -VMName $Name -Path "C:\Users\Halbarad\Desktop\Windows 8.1\win8.ISO" } elseif ($OS -eq "Server") { Set -VMDvdDrive -VMName $Name -Path "C:\Users\Halbarad\Desktop\Server 2012 R2\Server.ISO" } else { if ($OS -match "*.iso") { Add-VMDvdDrive -VMName $Name -Path $OS } else { Throw "$OS not a valid ISO file." } } } catch [system.exception] { Write-Error "Error adding VM DVD Drive for VM $name caused by $($_.Exception.Message)" exit } } } And the csv format I'm using: name,memory,generation,switch,vhdsize,os dc01,1024,2,hypervswitch,25,Server fs01,1024,2,hypervswitch,25,Server win8,1024,2,hypervswitch,15,Win8
  10. Just wait till you cross train to Amarr and Minmatar. FLY ALL OF THE THINGS!
  11. I'd like to say I fly whatever is most effective for the job I'm doing but that's rarely the case, I usually fly the ship which looks nicest while doing the job I want to do or which would be more interesting to fly.
  12. I should stop reading this thread, it's tempting to me to resub (again) but I know if I do then I won't actually play much and would end up queueing up a big list of skills to cover me for the next year or two (damn BS 5 taking over a month each).
  13. Had a good session last night as Capoeira, my coordination needs work but it wasn't too bad. Legs and arms are aching a bit today (stairs aren't my friend) but it's not as bad as I'd feared, looking forward to next weeks session.
  14. "NO I DON'T! YOU CAN'T TELL ME WHAT I KNOW YOU MEAN!"
  15. I believe there are classes for both in my area so I'll definitely give them a shot. Got Capoeira tonight and I've been told bring water and an open mind so that should be interesting.
  16. Sounds like you need an LDAP query, it's not something I've dealt with outside of Powershell but this Technet article describes it reasonably well from what I can see. I'm guessing you're doing some sort of machine deployment to need this, what are you using that requires this?
  17. I've been slowly working up towards the couch25k base line and making good progress over the last few weeks and planning on starting the proper routine later this week to see if I can do it. I'm also going to be starting some martial art, not sure which yet but there are lots of options available for me in the area so just going to try them all out and see which one I like most, first up is Capoeira this week and Karate next week. I've heard good things about capoeira so that should be fun (though exhausting) and I haven't done Karate in about 20 years, though when I think about it more of it comes back to me so that should be easy enough to pick up again.
  18. They should be available on \\domain.tld, should be a folder called SYSVOL and they'll be in there, organised by GUID.
  19. We've got some guys who play Warmachine/Hordes, some interest in Malifaux and Dropzone Commander and various historical games. Personally I'm pretty happy just playing Mordheim at the moment and I may get some Warmachine in the future but I'm not too impressed with the warjacks and warbeast models to want to paint them.
  20. Your Searchbase should be: "OU=Year9,OU=Students,DC=Schooldomain,DC=sch,DC=uk" But other than that it's fine.
  21. [color=#333333]$Password = ConvertTo-SecureString 'Password' -AsPlainText -Force [/color] Sets a variable to the password you want in a secure format that AD will accept. [color=#333333]Get-ADUser -Filter * -SearchBase "The DN of the OU in question" | Set-ADAccountPassword -NewPassword $Password -Reset:$true -Server:yourdc First it Gets all the users in an OU of your choice (in the format "ou=users,ou=somewhere,dc=domain,dc=local"), it then passes that information to another command to Set the password to what you specified earlier. The second command he listed does the same but also specifies that all the accounts then have to change their password at login.[/color]
  22. Hashtables are @{}, and I'm finding that I use them for more than I'd expected as they've got some neat tricks that work well.
  23. You're probably thinking of @() which is for declaring arrays (empty or otherwise) That's the great thing about Powershell, there are plenty of ways to handle a problem and you go with what works for you and your environment.
  24. As the SearchBase is a string you can wrap the Get-Date in $() to make it evaluate as a variable first so you could do: Get-ADuser -Searchbase "OU=Y$((Get-Date).AddYears(-5)),OU=Path,DC=Domain,DC=Local" -Filter {Enabled -eq "False"} =Proprties HomeDirectory
  25. The best I've had is when I send out an email to all staff about something, usually some new development we've implemented for staff to use, and then get an email back from a few people saying "by the way X is broken, been meaning to report it for weeks". I've also had a few staff always report things by replying to an email from a few years ago as it was the only one they kept for just that purpose, it's quite confusing sometimes when you just look at the subject before reading the content. I wonder if Pastoral or Office staff have the same problem when they email all staff and get "joe bloggs did y in my class 2 weeks ago and I want him punished"
×
×
  • Create New...