Jump to content

ThomL

Members
  • Posts

    388
  • Joined

  • Last visited

Everything posted by ThomL

  1. Any chance you can upload up the xml file you're trying to import?
  2. Something like this might work? Get-ADUser -SearchBase "OU=Users,OU=Org,OU=Root,DC=domain,DC=org,DC=uk" -Filter * -Properties EmailAddress, EmployeeID, EmployeeNumber, Surname, GivenName, Title, sAMAccountName | where { $_.DistinguishedName -notlike "*OU=exclude,OU=Users,OU=Org,OU=Root,DC=domain,DC=org,DC=uk" } |
  3. Any chance you can get them using Photopea?
  4. If you do want to go with the idea in my last post, I think this should work: Save this as a script and then run with PowerShell and it will prompt you for credentials - enter the creds you want to use to connect to the server and initiate the sync - this must be run from the users computer/session because of encryption of the file I believe: #harvest creds from user input $creds = Get-Credential #save creds to file $creds | Export-CliXml -Path $PSScriptRoot\cred.xml This should be the script to connect to the server and start the sync that you will launch with a scheduled task using the creds from above: #Get creds from file $Credential = Import-CliXml -Path "C:\pathHere\cred.xml" #Connect to server with saved creds Enter-PSSession -ComputerName serverName -Credential $Credential #Start sync Start-ADSyncSyncCycle-PolicyType Delta #Exit remote session Exit-PSSession #Alert user that sync is complete Write-Host "`n`n***Office 365 Sync Initiated***" Read-Host -Prompt "******Press Enter to exit******" Then create a schedule task that launches the above script on demand and then create a shortcut on the users desktop and use this as the program to launch: C:\Windows\System32\schtasks.exe /run /tn "TaskNameHere"
  5. you could: Enter-PSSession -ComputerName servername from the users session and then try the: Start-ADSyncSyncCycle-PolicyType Delta See if the user has the permissions needed, if not you can create a credentials file pretty easy that powershell can use with Enter-pssesion to use an account that can open a remote session/start the sync. You could then set this up as a schedule task that users can trigger and then place shortcut on the users desktop that the user can double click that will start the scheduled task, which will launch the script and initiate the sync?
  6. Can you restore the folder from a backup of the server?
  7. ThomL

    Door bells

    Not sure if meets all requirements, but this might be worth a review? https://store.ui.com/collections/unifi-protect-cameras/products/uvc-g4-doorbell
  8. Has the user set a default papersize or paper type that the printers can't handle but papercut believes to be auto negotiated? Bit of a reached but I've seen papercut report jobs printed to some Canon MFDs but the device itself bins the job and gives an error code hidden away on the devices onboard print log - after some poking about the Canon error code I had related to paper type... I think. This was a few years a go now though, so this might not be helpful at all! If you print the same document from another user and have a successful print, can you then see if page size/type and driver used all match between the failed job and successful job in the printed job log from papercut. This is where I'd start, that and looking at the devices own logs if it has them for errors.
  9. Anything good in the event logs? Client and server.
  10. not complicated from what I remember - you just have to forward the Radius accounting to the smoothwall from the unift controller so it can identify the users with their radius creds (again.... from what I remember - It's been a while.) Smoothwall: You need to add the unifi controller as an Authorized RADIUS Client: Services > BYOD & see the Authorized RADIUS Clients section I think this is where you add the details of the Unifi controller to the smoothwall so it will accept the radius accounting - I believe you will need a shared secret that will be configure here in the smoothwall and again later on the Unifi controller to enable trust. Unifi: Settings > Configuration Profiles > Radius Here you should be able to configure the controller to forward accounting to the smoothwall. We forward accounting and authentication to an NPS server and then the NPS server forwards the accounting to the smoothwall - so not as described above - but i think the above would still work?
  11. Were you using multi core CPU/s and/or assigned multiple cores if deployed to VM? The only time I've experienced lagfest with Server 2019 is when VMs have only been given single cores, upping to 2 cores immediately fixed the lag isue.
  12. IF you tweak the part thats selecting your data for export to this does it help: $AllADUsers | Select-Object @{Label = "First Name";Expression = {$_.GivenName}}, @{Label = "Last Name";Expression = {$_.Surname}}, @{Label = "Employee ID";Expression = {$_.EmployeeID}}, @{Label = "Employee Number";Expression = {$_.EmployeeNumber}}, @{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}} |
  13. I've used this method in this situation and we had maybe 1 license failure a week per room, closing and reopen the office application fixed most/all of those that had an error. But this was 4 years or so a go maybe it's not so good any more...
  14. We had this recently too, contacted Microsoft support - you have to turn off the new admin center and complete this step in the old admin center as this hasn't been ported to the new interface. It took closer to 48 hours for the change to kick in for us too :/
  15. Add a step to execute a powershell script and then run a script coded as needed maybe? I use this in a script that runs from DCs to alert on user account lock out: # Email sent from this address (built with constructor so we can specify display name: new-object System.Net.Mail.MailAddress("Email Address", "Display Name") $emailFrom = new-object System.Net.Mail.MailAddress("$env:[email protected]".ToLower(), "$((Get-Culture).TextInfo.ToTitleCase($env:COMPUTERNAME.ToLower())) - User Account Locked") # Email sent to this address $emailTo = "[email protected]" # Email subject $emailSubject = "$($event.username) User Account Locked out" # Email body (converts the event harvested to HTML) $emailBody = $event | ConvertTo-Html -PreContent "$($event.username) is locked in Active Directory" | Out-String # SMTP server to proccess the email $smtpSrv = "domain.mail.protection.outlook.com" # SMTP Server port $smtpPort = 25 #send email populated from the above variables Send-MailMessage -From $emailFrom -To $emailTo -Subject $emailSubject -Body $emailBody -BodyAsHtml -SmtpServer $smtpSrv -Port $smtpPort What I'm really saying is it might be worth looking into the PowerShell cmdlet: Send-MailMessage
  16. What are you doing with strokesplus at the moment - backward and forwards in browsers shouldn't be too hard in AHK if this is all strokesplus is doing? What keybinds have you tied to the forward/backwards? A quick google turns up this: ~LButton & RButton::Send {Browser_forward} RButton & LButton::Send {Browser_back} RButton::Send {RButton} Adding this the AHK allows you to hold the left mouse button and click the right to move forwards and hold the right mouse button and click the left to move backwards in a browser from my testing.
  17. I've got it working with AutoHotKey: Change amount of lines scrolled by mouse wheel to 1 line at an OS level with the Windows settings app Install AutoHotKey Create AutoHotkey.ahk save here: C:\Program Files\AutoHotkey Add this code to AutoHotkey.ahk and save the file: WheelUp::Send {WheelUp 3} WheelDown::Send {WheelDown 3} #WheelUp::Send {WheelUp 1} #WheelDown::Send {WheelDown 1} Run AutoHotKey, now holding the Windows key while scrolling should scroll a single line and scrolling normally should scroll 3 lines
  18. My outlook always feel laggy tbh, slowest in the office to receive mail but still - hope this helps
  19. I did notice when watching the folding action the screen appears to float, I'm not sure this is the best design choice: surely dirt will find its way behind the screen. I think it creates a weakness with an already fragile part of the phone and we may see the same issues seen with the first batch of Galaxy Folds released. I'm interested to look at and try the phone, after looking at a member of staffs Galaxy Fold for 5/10 mins i started to no notice any creases or issues when the screen was in use.
  20. I feel like we are looking at different things... what part looks damaged? I think its good for first gen, I agree slightly gimmicky but the smaller form factor when closed it a great idea imho.
  21. When the concept images were shared I thought this was a great use of the foldable display technology and with an ageing Galaxy S4 as my daily driver I thought this might be my new phone... But now I think that's very unlikely - although cheaper than the Galaxy Fold at this price point its just not viable for something I use as little as a phone. I still think its a great use of the foldable display, maybe I should start thinking about getting a new contract rather than purchasing the device.
  22. Changed my mind, the way I posted is creating an array of multiple hash tables... not sure why - too late in the day to fix that code, so here is attempt number 2! $CSVLoc = "CSV Path" $Totals = @{} Import-CSV $CSVLoc | Group-Object -Property Produce | ForEach { $Totals.Add($_.Name, ($_.Group | Measure-Object -Property Units -Sum).Sum) } Write-Host "`nRaw totals:" $Totals Write-Host "`nSorted (name) Totals:" $Totals.GetEnumerator() | Sort-Object -Property Name Write-Host "`nSorted (Value) Totals:" $Totals.GetEnumerator() | Sort-Object -Property Value -Descending Write-Host "`nTotal 'Carrots'" $Totals["Carrots"] Write-Host "`nTotal 'Potatoes'" $Totals["Potatoes"] Write-Host "`nTotal 'Apples'" $Totals["Apples"] Write-Host "`nDynamic:" foreach ($key in $Totals.Keys){ Write-Host "`nTotal '$key'" $Totals[$key] } As you can see there are a load of write-hosts that aren't needed just to show the referencing working. You can now reference items with $Totals["Apples"] for example. Actual code needed: $CSVLoc = "CSV Path" $Totals = @{} Import-CSV $CSVLoc | Group-Object -Property Produce | ForEach { $Totals.Add($_.Name, ($_.Group | Measure-Object -Property Units -Sum).Sum) } OR this if you want to lose a line but have more horizontal space used? $Totals = @{} Import-CSV "CSV Path" | Group-Object -Property Produce | ForEach { $Totals.Add($_.Name, ($_.Group | Measure-Object -Property Units -Sum).Sum) } Any good?
  23. How about this? $CSVLoc = "Location" $ProduceList = Import-CSV $CSVLoc $Totals = $ProduceList | Group-Object -Property Produce | ForEach { New-Object PSObject -Property @{ Produce = $_.Name Units = ($_.Group | Measure-Object -Property Units -Sum).Sum } } $Totals *EDIT, Tweaked slightly - fewer lines/tidier $CSVLoc = "Location" $Totals = Import-CSV $CSVLoc | Group-Object -Property Produce | ForEach { New-Object PSObject -Property @{ Produce = $_.Name; Units = ($_.Group | Measure-Object -Property Units -Sum).Sum} } $Totals
  24. This has a lot of merit - I think it's the way I would go. Previously I've picked up an edgeswitch 16 xg just to act as a dedicated S2D cluster switch and I believe it cost less than £300 at the time. ....£300 for 16 * 10 GbE.... - crazy. Although from my reading the switch is saturated at 50% capacity, but thats still a lot of switch for the money.
  25. A quick google search leads to talks of corrupt registry entries, advice given to stop rds service then backup and delete keys followed by rds service restart to re-gen keys - HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations worth trying?
×
×
  • Create New...