Jump to content

p_ern

Members
  • Content Count

    30
  • Joined

  • Last visited

  • Days Won

    2

p_ern last won the day on January 11

p_ern had the most liked content!

Community Reputation

4 Neutral

My Information

  • Agent Count
    < 500 Agents

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Go to System -> Users -> John Doe -> Permissions -> Select User Class -> The cog wheel -> Plugin ->ConnectWise Control Plugin -> Check the box Transfer Files in Session Changed path to correct edit of User Class on user
  2. I think it was an imported Dataview . If I remember correctly it is this one: It was from this topic:
  3. Hi , try this. Check Automation -> DataViews ->Inventory -> Computer Audit Rightclick to choose fields to display , add filters and export as Excel. Open exported file and then remove information you don´t need to have in the spreadsheet.
  4. p_ern

    Detect public RDP?

    Hi , try to use this one: https://www.yougetsignal.com/tools/open-ports/
  5. p_ern

    Grafana and Labtech

    @bschmiedlin https://github.com/PatrikErn/Grafana_Labtech I got a repository with alot of manual queries , where you can se how they look , including timeseries.
  6. p_ern

    Grafana and Labtech

    Hi , I am not really sure , it needs to be able to connect to your database in some way.Check your documentation on how to connect with connectors to your hosted enviroment.
  7. p_ern

    Beginner

    Start here for all the documentation . Requires a login. https://docs.connectwise.com/ConnectWise_Automate I havent tried their new university program , but that should be a good starting point for a more focused learning regime: https://university.connectwise.com/University/CourseWork.aspx
  8. p_ern

    Script to debloat win10

    I am using this code with some apps whitelisted. It wouldn't be too hard to add a All Users Scope on it. We are also using a startmenu Layout xml and a script to mount it on all new users. If you have Office 2016 installed it will add those to the pinned list. File added also for the layout Import-StartLayout -LayoutPath "C:\Windows\startlayout-W10-1709.xml" -MountPath C:/ Decrapify Windows 10 - Dynamic. # Functions function Write-LogEntry { param( [parameter(Mandatory=$true, HelpMessage="Value added to the RemovedApps.log file.")] [ValidateNotNullOrEmpty()] [string]$Value, [parameter(Mandatory=$false, HelpMessage="Name of the log file that the entry will written to.")] [ValidateNotNullOrEmpty()] [string]$FileName = "RemovedApps.log" ) # Determine log file location $LogFilePath = Join-Path -Path $env:windir -ChildPath "Temp\$($FileName)" # Add value to log file try { Out-File -InputObject $Value -Append -NoClobber -Encoding Default -FilePath $LogFilePath -ErrorAction Stop } catch [System.Exception] { Write-Warning -Message "Unable to append log entry to RemovedApps.log file" } } # Get a list of all apps Write-LogEntry -Value "Starting built-in AppxPackage, AppxProvisioningPackage and Feature on Demand V2 removal process" $AppArrayList = Get-AppxPackage -PackageTypeFilter Bundle -AllUsers | Select-Object -Property Name, PackageFullName | Sort-Object -Property Name # White list of appx packages to keep installed $WhiteListedApps = @( "Microsoft.DesktopAppInstaller", "Microsoft.Messaging", "Microsoft.MSPaint", "Microsoft.Windows.Photos", "Microsoft.StorePurchaseApp", "Microsoft.MicrosoftStickyNotes", "Microsoft.WindowsAlarms", "Microsoft.WindowsCalculator", "Microsoft.WindowsSoundRecorder", "Microsoft.WindowsStore", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.WindowsMaps" ) # Loop through the list of appx packages foreach ($App in $AppArrayList) { # If application name not in appx package white list, remove AppxPackage and AppxProvisioningPackage if (($App.Name -in $WhiteListedApps)) { Write-LogEntry -Value "Skipping excluded application package: $($App.Name)" } else { # Gather package names $AppPackageFullName = Get-AppxPackage -Name $App.Name | Select-Object -ExpandProperty PackageFullName -First 1 $AppProvisioningPackageName = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -like $App.Name } | Select-Object -ExpandProperty PackageName -First 1 # Attempt to remove AppxPackage if ($AppPackageFullName -ne $null) { try { Write-LogEntry -Value "Removing AppxPackage: $($AppPackageFullName)" Remove-AppxPackage -Package $AppPackageFullName -ErrorAction Stop | Out-Null } catch [System.Exception] { Write-LogEntry -Value "Removing AppxPackage '$($AppPackageFullName)' failed: $($_.Exception.Message)" } } else { Write-LogEntry -Value "Unable to locate AppxPackage: $($AppPackageFullName)" } # Attempt to remove AppxProvisioningPackage if ($AppProvisioningPackageName -ne $null) { try { Write-LogEntry -Value "Removing AppxProvisioningPackage: $($AppProvisioningPackageName)" Remove-AppxProvisionedPackage -PackageName $AppProvisioningPackageName -Online -ErrorAction Stop | Out-Null } catch [System.Exception] { Write-LogEntry -Value "Removing AppxProvisioningPackage '$($AppProvisioningPackageName)' failed: $($_.Exception.Message)" } } else { Write-LogEntry -Value "Unable to locate AppxProvisioningPackage: $($AppProvisioningPackageName)" } } } # White list of Features On Demand V2 packages Write-LogEntry -Value "Starting Features on Demand V2 removal process" $WhiteListOnDemand = "NetFX3|Tools.Graphics.DirectX|Tools.DeveloperMode.Core|Language|Browser.InternetExplorer|ContactSupport|OneCoreUAP|Media.WindowsMediaPlayer" # Get Features On Demand that should be removed try { $OSBuildNumber = Get-WmiObject -Class "Win32_OperatingSystem" | Select-Object -ExpandProperty BuildNumber # Handle cmdlet limitations for older OS builds if ($OSBuildNumber -le "16299") { $OnDemandFeatures = Get-WindowsCapability -Online -ErrorAction Stop | Where-Object { $_.Name -notmatch $WhiteListOnDemand -and $_.State -like "Installed"} | Select-Object -ExpandProperty Name } else { $OnDemandFeatures = Get-WindowsCapability -Online -LimitAccess -ErrorAction Stop | Where-Object { $_.Name -notmatch $WhiteListOnDemand -and $_.State -like "Installed"} | Select-Object -ExpandProperty Name } foreach ($Feature in $OnDemandFeatures) { try { Write-LogEntry -Value "Removing Feature on Demand V2 package: $($Feature)" # Handle cmdlet limitations for older OS builds if ($OSBuildNumber -le "16299") { Get-WindowsCapability -Online -ErrorAction Stop | Where-Object { $_.Name -like $Feature } | Remove-WindowsCapability -Online -ErrorAction Stop | Out-Null } else { Get-WindowsCapability -Online -LimitAccess -ErrorAction Stop | Where-Object { $_.Name -like $Feature } | Remove-WindowsCapability -Online -ErrorAction Stop | Out-Null } } catch [System.Exception] { Write-LogEntry -Value "Removing Feature on Demand V2 package failed: $($_.Exception.Message)" } } } catch [System.Exception] { Write-LogEntry -Value "Attempting to list Feature on Demand V2 packages failed: $($_.Exception.Message)" } # Complete Write-LogEntry -Value "Completed built-in AppxPackage, AppxProvisioningPackage and Feature on Demand V2 removal process" startlayout-W10-1709.xml
  9. p_ern

    Script to debloat win10

    Mgreen is correct on that issue. Its per user sadly.
  10. p_ern

    Automate: New Network Map???

    @RDeBok Thanks for the info
  11. p_ern

    Automate: New Network Map???

    Sounds awesome, any screenshots we might be able too see? Or some footage of the demo?
  12. p_ern

    Scripted Diagram

    New script added: https://github.com/PatrikErn/Labtech_Diagram/tree/master/NetworkDrives Takes exported csv from plugin Map Drives . Makes a diagram on it , to troubleshoot or whatever your fancy is. Test it out.
  13. p_ern

    Show Group Memberships

    Hi , it is still there Try Automation ( COG) -> Effective Policy. You can also search "groups" if you press Begin , and you will see it as a result in Datatiles : Effetcive Policy ->Groups
  14. You can run it once on a agent, or make it a monitor. If you check the built in monitors, under configuration , for example the "DRV - Free Space Remaining < 10% Total Size" - monitor you can set the interval and target. Running a script on specific agents, right click and find your script. There you can set it to run once and with intervals. See if that get you near your result. If you can, read up on the documentation on how to make monitors, run scripts and schedule them. https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/070/240/030 Hope that helps.
×