{"id":25666423,"url":"https://github.com/georgeleithead/powershell.library","last_synced_at":"2026-06-11T22:31:27.058Z","repository":{"id":130380405,"uuid":"297961097","full_name":"GeorgeLeithead/PowerShell.Library","owner":"GeorgeLeithead","description":"A PowerShell module library that is deployed to provide a single, comprehensive library to support and enhance your other PowerShell libraries.","archived":false,"fork":false,"pushed_at":"2020-09-23T14:33:49.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T08:37:09.017Z","etag":null,"topics":["powershell","sccm"],"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/GeorgeLeithead.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}},"created_at":"2020-09-23T12:22:39.000Z","updated_at":"2021-03-22T17:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"29025bb5-b388-4321-a48d-760724a4dfc2","html_url":"https://github.com/GeorgeLeithead/PowerShell.Library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GeorgeLeithead/PowerShell.Library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeLeithead%2FPowerShell.Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeLeithead%2FPowerShell.Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeLeithead%2FPowerShell.Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeLeithead%2FPowerShell.Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeorgeLeithead","download_url":"https://codeload.github.com/GeorgeLeithead/PowerShell.Library/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeorgeLeithead%2FPowerShell.Library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34221150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["powershell","sccm"],"created_at":"2025-02-24T08:30:02.889Z","updated_at":"2026-06-11T22:31:27.047Z","avatar_url":"https://github.com/GeorgeLeithead.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell.Library\n## Overview\nA PowerShell module library that is deployed to provide a single, comprehensive library to support and enhance your other PowerShell libraries.\n## Usage\nThis is a PowerShell module that is expected to be deployed on a device to one of the paths defined in `$ENV:PSModulePath` (usually `C:\\Program Files\\WindowsPowerShell\\Modules`).  It is then imported in scripts using `IMPORT-MODULE -Name PowerShell.Library`.\n\n## Functions\n### Core\nA usefull collection of generic core functions.\n#### Add-HostName\nAdd a host name to the HOSTS file on the current computer.\n#### ConvertFrom-EncryptedString\nFunction to decrypt an obscured string.\n#### ConvertTo-EncryptedString\nFunction to encrypt a string.\n#### Get-AccessMaskFromPermission\nGet the access mask from permissions.\n#### Get-CallerPreference\nScript module functions do not automatically inherit their caller's variables, but they can be obtained through the $PSCmdlet variable in Advanced Functions.  This function is a helper function for any script module Advanced Function; by passing in the values of $ExecutionContext.SessionState and $PSCmdlet, Get-CallerPreference will set the caller's preference variables locally.\n#### Get-DeviceRam\nGet the total physical RAM installed on the device.\n#### Invoke-BalloonTip\nDisplay a user-defined message as a balloon pop-up in the system tray.\n#### Invoke-LogInAsAnotherUser\nDisable automatic log on, and then log off to get the user to the Logon screen.\n#### Pop-LogFile\nFunction to reset the LogFile variable to its previous value.\n#### Pop-WindowTitle\nFunction to reset the window title.\n#### Push-LogFile\nSet the LogFile variable to a new value, and push the old value in a stack to be recalled later using the Pop-LogFile command.\n#### Push-WindowTitle\nSet the window title to a new value, and push the old value in a stack to be recalled later using the Pop-WindowTitle command.\n#### Request-Ownership\nFor the current user take ACL ownership of a registry sub key.\n#### Set-ForegroundWindow\nBring any process window into the foreground.\n#### Set-ServiceStartMode\nSets a named Service to either disabled or automatic.\n#### Set-ServiceStart\nStart or stop a named Service.\n#### Set-TokenPrivilege\nSets a token privilege required for management tasks.  A user account may or may not have the token privilege by default.\n#### Set-Window\nSets the window size (height,width) and coordinates (x,y) of a process window.\n#### Set-WMINamespaceSecurity\nModify the current security descriptor of a WMI name space. \n#### Test-IPAddress\nTest the validity of a supplied IP address.\n#### Test-MACAddress\nTest the validity of a supplied MAC Address.\n#### Watch-Process\nWatch for a process to be started.\n### SCCM\nGeneric SCCM functions to deal with devices, collections, policy retrieval, discovery inventory and program update.\n#### Add-SCCMDeviceToCollection\nAdd a device to a SCCM collection.\n#### Get-SCCMCollection\nGet a collection or collections from SCCM.\n#### Get-SCCMDevice\nGet from SCCM the unique resource for the device.\n#### Get-SCCMDeviceCollections\nGet from SCCM the collections that the device is an evaluated member.\n#### Get-SCCMSiteCode\nGet the SCCM default site code for a provider location.\n#### Install-SCCMProgramUpdate\nForce install/uninstall of available software in software centre through CIM/WMI.\n#### Remove-SCCMDeviceFromCollection\nRemove a device from a SCCM collection.\n#### Update-SCCMDiscoveryInventory\nTrigger an update schedule for the Discovery Inventory.\n#### Update-SCCMPolicyRetrieval.psm1\nTrigger an update schedule for policy retrieval.\n\n## Version history\n### 1.0.0\nInitial build.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgeleithead%2Fpowershell.library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgeleithead%2Fpowershell.library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgeleithead%2Fpowershell.library/lists"}