{"id":19186549,"url":"https://github.com/dexterposh/dhcppsdrive","last_synced_at":"2025-07-06T12:35:07.109Z","repository":{"id":76137661,"uuid":"126926554","full_name":"DexterPOSH/DhcpPSDrive","owner":"DexterPOSH","description":"Module written using SHiPS to expose DHCP Servers in a DC as a mapped PSDrive/","archived":false,"fork":false,"pushed_at":"2018-09-03T03:56:33.000Z","size":29,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T05:32:20.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DexterPOSH.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":"2018-03-27T03:59:14.000Z","updated_at":"2018-09-03T03:56:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"2587dabf-0003-4181-bf08-c69ab6662a14","html_url":"https://github.com/DexterPOSH/DhcpPSDrive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2FDhcpPSDrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2FDhcpPSDrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2FDhcpPSDrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DexterPOSH%2FDhcpPSDrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DexterPOSH","download_url":"https://codeload.github.com/DexterPOSH/DhcpPSDrive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252979352,"owners_count":21835037,"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","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":[],"created_at":"2024-11-09T11:15:29.083Z","updated_at":"2025-05-08T01:20:37.674Z","avatar_url":"https://github.com/DexterPOSH.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DhcpPSDrive\n\nThe DhcpPSDrive provider allows easy navigation and discovery of a DHCP Server as a drive.\nIt is based on SHiPS provider and uses DHCP Server PowerShell module present locally to pull the information in current user context.\n\n## Supported Platform\n\n- PowerShell 5.1 (or later), which is shipped in Windows 10, Windows Server 2016, or [WMF 5.1][wmf51]\n\n## Dependencies\n\n[SHiPS](https://github.com/PowerShell/SHiPS) PowerShell module is required.\n\n## Usage\n\n- To start using the functionality of `DhcpPSDrive`, import the `DhcpPSDrive` module and create a PSDrive\n\n    ```powershell\n    Import-Module -Name DhcpPSDrive -Verbose\n    New-PSDrive -Name DhcpServers -PSProvider SHiPS -Root DhcpPSDrive#DhcpRoot\n    ```\n    **By default the DhcpPSDrive will check if the localmachine is a DhcpServer and map it.**\n\n- You will be then able to see the DhcpServer inside the PSDrive. Now navigate it as a PSDrive.\n    ```powershell\n    # Change location to the DhcpServers PSDrive and then list the child items\n    PS C:\\Windows\\system32\u003e Set-Location -Path DHCPServers:/\n\n    \n\n    ```\n\n- Using `dir` or `ls`, you can traverse through the DHCP Server mapped as a Drive.\n\n    ```powershell\n    PS DHCPServers:\\\u003e Get-ChildItem\n\n    Name      IPv4Address\n    ----      -----------\n    dhcp02\n    PS DHCPServers:\\\u003e cd .\\dhcp02\\\n    PS DHCPServers:\\dhcp02\u003e ls\n\n        Directory: DHCPServers:\\dhcp02\n\n    Mode  Name\n    ----  ----\n    +     IPv4\n    +     IPv6\n    ```\n\n- To connect to remote machines, use the `Connect-DHCPServer` command\n    \u003e Note: This command only  works from within the PSDrive created above\n\n    ```powershell\n\n    PS DHCPServers:\\\u003e Connect-DHCPServer -ComputerName dhcp01 -Credential (Get-Credential)\n    PS DHCPServers:\\\u003e ls # Now since the PSDrive caches the connected DHCP servers, this does not reflect the new machine\n\n    Name      IPv4Address\n    ----      -----------\n    dhcp02\n\n    PS DHCPServers:\\\u003e ls -Force # Pass -Force switch to reflect the new machine connected\n\n    Name       IPv4Address\n    ----       -----------\n    dhcp02\n    dhcp01\n\n    ```\n- Use `Disconnect-DhcpServer` command to disconnect from the remote DHCP Server\n    \u003e Note: This command only works from within the PSDrive created above\n\n## Installing DhcpPSDrive\n\n- `git clone` https://github.com/DexterPOSH/DhcpPSDrive.git\n\n## Developing and Contributing\n\nPull Requests are welcome or raise any issues.\n\n## Legal and Licensing\n\nDhcpPSDrive is under the [MIT license][license].\n\n[license]: LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterposh%2Fdhcppsdrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexterposh%2Fdhcppsdrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterposh%2Fdhcppsdrive/lists"}