PoshCode Archive  Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

60 check-ins using file Xml-Module.ps1 version b7c6beef13

2018-06-10
13:27
This is a VERY simple Powershell Function to test if the SCCM 2007 Agent is installed on a machine or not. check-in: a59be25842 user: Sean Kearney tags: trunk
13:27
A function to facilitate use of background runspaces in Powershell. check-in: 95db35bd32 user: Josh Feierman tags: trunk
13:27
This clock is digital. No fancy sweeping movements and animations here, but you do get to see the date and day of the week, and you can easily play with fonts and colors to suit your desktop … check-in: a4719dea5a user: Joel Bennett tags: trunk
13:27
This is a sample profile to explain profiles on my blog. Please check out: http://www.ntsystems.it/post/My-PowerShell-Profile.aspx if you have any idea/hint/question check-in: d5e08d4017 user: thomas torggler tags: trunk
13:27
A ShowUI function for generating Mailboxes with a quick form check-in: e4a89f4b73 user: Joel Bennett tags: trunk
13:27
a WMI driven script to set IP Configuration from remote check-in: 6525a51b0d user: chriskenis tags: trunk
13:27
user home drive migration script (in progress but nearly complete) check-in: 414158ae99 user: chriskenis tags: trunk
13:27
user home drive migration script (in progress but nearly complete) check-in: cbb0bd56d9 user: chriskenis tags: trunk
13:27
Invoke the specified command (with parameters) in cmd.exe, and import any environment variable changes back to PowerShell check-in: fb117a5b7b user: Joel Bennett tags: trunk
13:27
ConvertFrom-PropertyString 3.0 can convert ini files, property files, and other flat key-value data strings into PSObjects. check-in: e39fed5cfe user: Joel Bennett tags: trunk
13:27
IronPython script for retrieving MS products. There is how to get Windows key in following example. check-in: f9cb97bacb user: greg zakharov tags: trunk
13:27
a WMI driven script to set IP Configuration from remote check-in: 94edb2936f user: chriskenis tags: trunk
13:27
Content of the Get-PingStatus-Help.xml file uploaded for Kirk for troubleshooting reasons check-in: f69afba9b0 user: Andreas tags: trunk
13:27
Add directory to Environment PATH variable permanently. Apply changes immediately without requiring reboot. check-in: a5c69e2866 user: mnaoumov tags: trunk
13:27
Creates a SQL Server table from a DataTable using SMO. check-in: 9a2be276e7 user: Chad Miller tags: trunk
13:27
Creates a DataTable for an object, based on script by Marc van Orsouw check-in: 671bc3e861 user: Chad Miller tags: trunk
13:27
Hello check-in: fac0114a95 user: Brandon Murphy tags: trunk
13:27
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better in every way than the built-in Get-Credential ;) check-in: 84cc739e6d user: Joel Bennett tags: trunk
13:27
Replaces Get-Credential, with options to set the dialog title and message, as well as defaulting the domain and username, and offering the option to prompt in-line in the console, and to get generic (non-domain) credentials (without a leading “\”). Better in every way than the built-in Get-Credential ;) check-in: a23c0d575a user: Joel Bennett tags: trunk
13:27
This code allows for the secure storing of an active directory password and then using it for connecting to exchange or active directory. This snippet will prompt the administrator for a username only, collect the password from the securely stored file, and then assemble a powershell credential object for use. check-in: bc818c1049 user: Lubinski tags: trunk
13:27
This code allows for the secure storing of an active directory password and then using it for connecting to exchange or active directory. This snippet will prompt the administrator for a username only, collect the password from the securely stored file, and then assemble a powershell credential object for use. check-in: 6dd5ad9bd6 user: Lubinski tags: trunk
13:27
Calculates the Gregorian Easter date for a given year. check-in: edcaaf78f8 user: michaelvdnest tags: trunk
13:27
Calculates the Julian Easter date in the Julian calendar for a given year. check-in: 5471048556 user: michaelvdnest tags: trunk
13:27
Requires mGet-DatastoreList.ps1 check-in: 57dbd74b9a user: monahancj tags: trunk
13:27
A version of the VMware Get-Datastore cmdlet that filters out datastore we don’t want to put VMs on. It filters by type of datastore and our naming conventions for the datastore naming indicating what kind of data is on the datastore. Line 9 will have to be updated for your own environment. check-in: efee04ebc2 user: monahancj tags: trunk
13:26
Function to import security certificates. check-in: 9f4f5a5f66 user: anti121 tags: trunk
13:26
Function to import security certificates. check-in: c36d638731 user: anti121 tags: trunk
13:26
Compare the ACLs for two users for a folder tree check-in: dd0d96baa9 user: Joel Bennett tags: trunk
13:26
IMCEAEX-_O=CONTOSO_OU=First+20Administrative+20Group_cn=Recipients_cn=john+5Fjacob+2Esmith@contoso.com check-in: e189cb9f10 user: Test1 tags: trunk
13:26
Print the hostname of the system. Complete with v2 comment-based help, but works fine on v1. check-in: 4c784d478c user: halr9000 tags: trunk
13:26
Performs a binary rotate right operation on an unsigned 32 or 64-bit value. check-in: 1bfed5b501 user: Matthew Graeber tags: trunk
13:26
Simple script to bulk-create printers on a print-server. Printers are imported from a csv-file. check-in: 8ab8c5bdf3 user: navadavuluri tags: trunk
13:26
The script requires an input file, supplied as an argument to the script. The first line of this file contains an email address, subsequent lines contain VM names, one per line. The script connects to vCenter, queries for given performance stats (get-stat) and then generates a HTML report, which is then emailed to the recipient. The script can be scheduled via scheduled tasks (when supplied with a credential file for vCenter created with http://poshcode.org/3487) or run interactively. check-in: f11dee136d user: Samuel Mulhearn tags: trunk
13:26
Get DeviceID of all ActiveSync Devices for all Mailboxes with an ActiveSync partnership, then set the Mailboxes ActiveSyncAllowedDeviceIDs to the retrieved DeviceID. check-in: 59784c7271 user: thomas torggler tags: trunk
13:26
Get DeviceID of all ActiveSync Devices for all Mailboxes with an ActiveSync partnership, then set the Mailboxes ActiveSyncAllowedDeviceIDs to the retrieved DeviceID. check-in: 0023bf94e6 user: thomas torggler tags: trunk
13:26
With this function I can switch between IE and Firefox as default browser. It is just a start. There might be some more registry keys to be changed check-in: 388cd2cdc9 user: Bernd Kriszio tags: trunk
13:26
Script for total resize of all pictures in one or multiple directories. check-in: ac82becfa1 user: Oleg Medvedev tags: trunk
13:26
**Modified line 49 to output the log information in tab delimited format for export to a CSV file. check-in: e61ad5494b user: Pat Richard tags: trunk
13:26
Quest – Dynamic Group 005 – Convert Normal Group to a Dynamic Group check-in: 7bdfca1c37 user: Vidrine tags: trunk
13:26
Quest – Dynamic Group 004 – Display a Dynamic Group’s Queries (membership rules) check-in: 7438fc5391 user: Vidrine tags: trunk
13:26
Quest – Dynamic Group 003 – Modify a Query (membership rule) in a Dynamic Group check-in: f3181b36da user: Vidrine tags: trunk
13:26
Quest – Dynamic Group 002 – Add a Query (membership rule) to a Dynamic Group check-in: 870b15f4f5 user: Vidrine tags: trunk
13:26
Quest – Dynamic Group 001 – Convert Normal Group to a Dynamic Group check-in: 2904e00e3d user: Vidrine tags: trunk
13:26
This script takes a list of Active Directory security group membership from XML, checks a baseline, and emails results. Code can be taken from this to create the baseline XML as well. Thanks to Koldkutspecial for fixing empty group membership bug. check-in: 186c23d9ce user: Steve Jarvi tags: trunk
13:26
The function hex2sid will convert HEX-represented SID string like 010500000000000515000000358A021A75B9755407E53B2B1EF10108 to SID string (also known as SSDL) check-in: f9dc73f554 user: Dormidont tags: trunk
13:26
The script requires an input file, supplied as an argument to the script. The first line of this file contains an email address, subsequent lines contain VM names, one per line. The script connects to vCenter, queries for given performance stats (get-stat) and then generates a HTML report, which is then emailed to the recipient. The script can be scheduled via scheduled tasks (when supplied with a credential file for vCenter created with http://poshcode.org/3487) or run interactively. check-in: e969913d92 user: Samuel Mulhearn tags: trunk
13:26
The script saves a username and password, encrypted with a custom key to to a file. The key is coded into the script but can be changed if required. The key allows the password to be decrypted by any user who has the key, on any machine. If the key parameter is omitted from ConvertFrom-SecureString, only the user who generated the file on the computer that generated the file can decrypt the password. check-in: 4d24959588 user: Samuel Mulhearn tags: trunk
13:26
The script saves a username and password, encrypted with a custom key to to a file. The key is coded into the script but can be changed if required. The key allows the password to be decrypted by any user who has the key, on any machine. If the key parameter is omitted from ConvertFrom-SecureString, only the user who generated the file on the computer that generated the file can decrypt the password. check-in: 4079a44a52 user: Samuel Mulhearn tags: trunk
13:26
The script saves a username and password, encrypted with a custom key to to a file. The key is coded into the script but can be changed if required. The key allows the password to be decrypted by any user who has the key, on any machine. If the key parameter is omitted from ConvertFrom-SecureString, only the user who generated the file on the computer that generated the file can decrypt the password. check-in: 527f097916 user: Samuel Mulhearn tags: trunk
13:26
The script saves a username and password, encrypted with a custom key to to a file. The key is coded into the script but can be changed if required. The key allows the password to be decrypted by any user who has the key, on any machine. If the key parameter is omitted from ConvertFrom-SecureString, only the user who generated the file on the computer that generated the file can decrypt the password. check-in: c627d3e4c1 user: Samuel Mulhearn tags: trunk
13:26
This script will disable all Active Directory User accounts that have not logged in within the number of days specified by the $NumDays variable. All accounts that are disabled are logged in the “Disabled-User-Accounts.log” file created in the local directory. The formatting of the log file is very basic, but effective. check-in: 3fc6b8ff78 user: AlphaSun tags: trunk
13:26
A function to set an IP Address check-in: d5ae11d894 user: Andy Schneider tags: trunk
13:26
This function is prepared for Hyper-V 3.0 since we don’t have a native cmdlet in the module. check-in: ad7e23bc4b user: Huajun Gu tags: trunk
13:26
Gets stuff from SharePoint lists and turns it into objects. check-in: 774196cef6 user: Joel Bennett tags: trunk
13:26
A quick little script to get members of a Distribution Group to sync with MailChimp instead of using Active Directory. check-in: 8932cff6db user: Tozzi June 2012 tags: trunk
13:26
From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes check-in: 0523156306 user: Lee Holmes tags: trunk
13:26
My replacement of Copy-Item addresses 3 problems. 1) if $dest doesn’t exist, it creates a directory 2) $exclude works on all levels 3) It handles wildcards in $src (in the filepart, this extends the solution to 2) in http://stackoverflow.com/questions/731752/exclude-list-in-powershell-copy-item-does-not-appear-to-be-working. Wildcards in the directory part of $dest are supported, but I do not recommend this use. This is a workaround for my personal needs, it does not try to use include. Note this solves the defect of Get-Childitem which doesn’t return the relative path and the object simultaneously in case of wildcards in $path. check-in: d6d2ebe7d5 user: Bernd Kriszio tags: trunk
13:26
This script will list all User objects in the current Active Directory domain. The data gathered includes Display Name, Username, Last Logon Date, and Disabled Status. All data is exported to a CSV file. check-in: 25427a51c1 user: malay tags: trunk
13:26
Check if PowerShell version 3 or higher is installed check-in: e8ffec08a6 user: Adam Mendoza tags: trunk
13:26
A complete set of XML functionality (especially if you don’t have PSCX), including reading and writing xml files (import-xml, export-xml), selecting (via xpath), updating, transforming and creating new xml documents. check-in: 0ea7298389 user: Joel Bennett tags: trunk