{"id":20876234,"url":"https://github.com/0x6f677548/shell-utils","last_synced_at":"2025-08-14T21:06:05.648Z","repository":{"id":50455914,"uuid":"519122057","full_name":"0x6f677548/shell-utils","owner":"0x6f677548","description":"Some useful shell scripts for daily tasks","archived":false,"fork":false,"pushed_at":"2025-05-10T07:35:05.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T12:48:08.757Z","etag":null,"topics":["dns","onedrive","powershell","shell","sysadmin","utils"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x6f677548.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-29T07:28:59.000Z","updated_at":"2025-05-10T07:35:08.000Z","dependencies_parsed_at":"2025-07-19T19:23:08.002Z","dependency_job_id":"2892bfb0-9b3b-4c36-9069-25c1ad7d2085","html_url":"https://github.com/0x6f677548/shell-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0x6f677548/shell-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x6f677548%2Fshell-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x6f677548%2Fshell-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x6f677548%2Fshell-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x6f677548%2Fshell-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x6f677548","download_url":"https://codeload.github.com/0x6f677548/shell-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x6f677548%2Fshell-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270482318,"owners_count":24591340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","onedrive","powershell","shell","sysadmin","utils"],"created_at":"2024-11-18T06:50:30.553Z","updated_at":"2025-08-14T21:06:05.622Z","avatar_url":"https://github.com/0x6f677548.png","language":"PowerShell","readme":"# shell-utils\nSome shell utilities for daily tasks, namely around DNS, Wifi, OneDrive, and file management\nWriten for Powershell and Bash\n\n\n## DNS Related scripts\ndnsflood, nrpt rules, dns order, etc. For more details, see [dns](/networking/dns/readme.md)\n\n\n\n## Networking - General\n\n### Get-ActiveConnections\nLists Active TCP Connections, including their PIDs and the process name. Useful to identify which process is using a specific port and to where it is connecting to. Tries to identity the owner of the IP address, country, by using ipinfo.io service.\n\nExample\n```\n$ .\\Get-ActiveConnections.ps1\n\nProcess Name: SearchHost (PID: 10120)\nConnections:\n  0.0.0.0:51143 -\u003e 0.0.0.0:0 (Dest IP: 0.0.0.0)\n    Public IP Info:  ()\n  0.0.0.0:51133 -\u003e 0.0.0.0:0 (Dest IP: 0.0.0.0)\n    Public IP Info:  ()\n  192.168.1.195:51143 -\u003e 23.47.188.105:443 (Dest IP: 23.47.188.105)\n    Public IP Info: Akamai International B.V. (Portugal) (Hostname: a23-47-188-105.deploy.static.akamaitechnologies.com)\nProcess Name: SurfaceAppDt (PID: 11468)\nConnections:\n  0.0.0.0:51962 -\u003e 0.0.0.0:0 (Dest IP: 0.0.0.0)\n    Public IP Info:  ()\nProcess Name: pwsh (PID: 11504)\nConnections:\n  :::52013 -\u003e :::0 (Dest IP: ::)\n  192.168.1.195:52013 -\u003e 52.236.186.216:443 (Dest IP: 52.236.186.216)\n    Public IP Info: Microsoft Corporation (Netherlands)\n```\n\n### Wifi related scripts\n#### Get-WifiProfiles\nDumps all wifi profiles, including their passwords\n\n## File related scripts\n### Move-PartialFolder\nMoves the top $numberOfFolders of child directories of $source to $destination. \nThis is usefull when moving large folders and to be used inside scheduled tasks or onedrive migrations\nExample\n```\n$ .\\Move-PartialFolder -source 'c:\\temp' -destination 'c:\\temp2' -numberOfFolders 2\n```\n\n## OneDrive related scripts\n### Get-OneDriveDeprovisioningQueue\nLists files inside $directory being depromoted to online only inside a loop. Waits $wait millisencods\n\n### Get-OneDriveSyncingQueu\nLists files inside $directory being synched. Waits $wait millisencods\n\n### Move-PartialFolderToOneDrive\nMoves the $numberOfFolders of child directories of $source to $destination, assuming that Destination is a Onedrive folder\nIt waits that each directory syncs, before moving to the next one \nThis is usefull when moving large folders and to be used inside scheduled tasks or onedrive migrations\n\n### Set-OneDriveOnlineOnly\nSets all files in $directory to online-only\n\n### Touch-OneDriveSyncingFiles\nTouches a syncing file inside $directory. Sometimes this is usefull to unblock syncing files. \n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x6f677548%2Fshell-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x6f677548%2Fshell-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x6f677548%2Fshell-utils/lists"}